Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001729/0.001729, allocations: 108.8 kB / 21.22 MB, free: 0.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002074/0.002074, allocations: 187.8 kB / 24.5 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.398/1.398, allocations: 225.7 MB / 253.3 MB, free: 13.05 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001433/0.001433, allocations: 47.92 kB / 371.2 MB, free: 9.871 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2708/0.2722, allocations: 52.19 MB / 423.4 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample): time 0.002886/0.2751, allocations: 1.606 MB / 425 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008388/0.276, allocations: 494.7 kB / 425.5 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.849e-05/0.276, allocations: 7.938 kB / 425.5 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.333e-05/0.2761, allocations: 3.938 kB / 425.5 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001242/0.2762, allocations: 15.88 kB / 425.5 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002463/0.2764, allocations: 47.83 kB / 425.6 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001072/0.2766, allocations: 55.78 kB / 425.6 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.282e-05/0.2766, allocations: 12.17 kB / 425.7 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.714e-05/0.2767, allocations: 19.92 kB / 425.7 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.589e-05/0.2768, allocations: 23.86 kB / 425.7 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.402e-05/0.2768, allocations: 0 / 425.7 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.165e-05/0.2768, allocations: 4 kB / 425.7 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.04e-05/0.2769, allocations: 19.92 kB / 425.7 MB, free: 12.31 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.727e-05/0.2769, allocations: 27.81 kB / 425.7 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001153/0.277, allocations: 56.52 kB / 425.8 MB, free: 12.23 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.135e-06/0.277, allocations: 0 / 425.8 MB, free: 12.23 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.277, allocations: 0 / 425.8 MB, free: 12.23 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.859e-06/0.277, allocations: 0 / 425.8 MB, free: 12.23 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004321/0.2775, allocations: 306 kB / 426.1 MB, free: 11.91 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.662e-05/0.2775, allocations: 12.03 kB / 426.1 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.527e-05/0.2775, allocations: 4.172 kB / 426.1 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.728e-05/0.2775, allocations: 38.75 kB / 426.2 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.004e-05/0.2776, allocations: 12.88 kB / 426.2 MB, free: 11.83 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002326/0.2778, allocations: 149.4 kB / 426.3 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.145e-06/0.2778, allocations: 384 / 426.3 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.301e-05/0.2778, allocations: 12.06 kB / 426.3 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000268/0.2781, allocations: 121.8 kB / 426.4 MB, free: 11.51 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.585e-06/0.2781, allocations: 0 / 426.4 MB, free: 11.51 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.019e-05/0.2781, allocations: 4 kB / 426.4 MB, free: 11.51 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.2781, allocations: 0 / 426.4 MB, free: 11.51 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.679e-05/0.2782, allocations: 27.91 kB / 426.5 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003066/0.2785, allocations: 245.6 kB / 426.7 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001164/0.2786, allocations: 63.86 kB / 426.8 MB, free: 11.1 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.797e-05/0.2787, allocations: 34.56 kB / 426.8 MB, free: 11.06 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.57e-05/0.2787, allocations: 8 kB / 426.8 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.295e-05/0.2787, allocations: 30.56 kB / 426.8 MB, free: 11.01 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.002e-06/0.2787, allocations: 0 / 426.8 MB, free: 11.01 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.000261/0.279, allocations: 85.55 kB / 426.9 MB, free: 10.92 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.68e-05/0.2791, allocations: 115.1 kB / 427 MB, free: 10.79 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001284/0.2792, allocations: 137.8 kB / 427.2 MB, free: 10.64 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.818e-05/0.2792, allocations: 25.7 kB / 427.2 MB, free: 10.61 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.367e-05/0.2793, allocations: 100.1 kB / 427.3 MB, free: 10.51 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.411e-05/0.2793, allocations: 3.953 kB / 427.3 MB, free: 10.5 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.399e-05/0.2793, allocations: 13.72 kB / 427.3 MB, free: 10.48 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.2795, allocations: 322.8 kB / 427.6 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.19e-05/0.2795, allocations: 16 kB / 427.6 MB, free: 10.14 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.136e-05/0.2796, allocations: 31.42 kB / 427.7 MB, free: 10.1 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.514e-05/0.2797, allocations: 51.36 kB / 427.7 MB, free: 10.04 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.2797, allocations: 0 / 427.7 MB, free: 10.04 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001397/0.2798, allocations: 69.56 kB / 427.8 MB, free: 9.965 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.2798, allocations: 8 kB / 427.8 MB, free: 9.957 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.117e-06/0.2798, allocations: 0 / 427.8 MB, free: 9.957 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.136e-05/0.2798, allocations: 0 / 427.8 MB, free: 9.957 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.363e-05/0.2799, allocations: 11.94 kB / 427.8 MB, free: 9.945 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.815e-06/0.2799, allocations: 3.984 kB / 427.8 MB, free: 9.941 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.904e-05/0.28, allocations: 8.125 kB / 427.8 MB, free: 9.934 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.465e-06/0.28, allocations: 4 kB / 427.8 MB, free: 9.93 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.48e-05/0.2801, allocations: 117.8 kB / 427.9 MB, free: 9.805 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.176e-05/0.2801, allocations: 53.58 kB / 428 MB, free: 9.746 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.095e-05/0.2802, allocations: 11.97 kB / 428 MB, free: 9.73 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.2802, allocations: 4 kB / 428 MB, free: 9.727 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.2802, allocations: 0 / 428 MB, free: 9.727 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.622e-06/0.2802, allocations: 11.92 kB / 428 MB, free: 9.715 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001665/0.2804, allocations: 152.7 kB / 428.2 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.2804, allocations: 0 / 428.2 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.621e-05/0.2804, allocations: 8 kB / 428.2 MB, free: 9.516 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.2804, allocations: 0 / 428.2 MB, free: 9.516 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.383e-05/0.2804, allocations: 15.92 kB / 428.2 MB, free: 9.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.2804, allocations: 0 / 428.2 MB, free: 9.5 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.2804, allocations: 0 / 428.2 MB, free: 9.5 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001974/0.2806, allocations: 181.1 kB / 428.4 MB, free: 9.301 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.886e-05/0.2807, allocations: 19.94 kB / 428.4 MB, free: 9.281 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.466e-05/0.2807, allocations: 0 / 428.4 MB, free: 9.281 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.388e-05/0.2808, allocations: 4 kB / 428.4 MB, free: 9.277 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.583e-05/0.2808, allocations: 0 / 428.4 MB, free: 9.277 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.637e-06/0.2808, allocations: 0 / 428.4 MB, free: 9.277 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.711e-05/0.2809, allocations: 114.2 kB / 428.5 MB, free: 9.168 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2809, allocations: 0 / 428.5 MB, free: 9.168 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002344/0.2811, allocations: 12 kB / 428.5 MB, free: 9.156 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006302/0.2817, allocations: 0.7063 MB / 429.2 MB, free: 8.418 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001384/0.2819, allocations: 39.95 kB / 429.3 MB, free: 8.379 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.2819, allocations: 0 / 429.3 MB, free: 8.379 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.437e-05/0.2819, allocations: 4 kB / 429.3 MB, free: 8.375 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003454/0.2823, allocations: 35.44 kB / 429.3 MB, free: 8.344 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001385/0.2836, allocations: 1.391 MB / 430.7 MB, free: 6.844 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003116/0.284, allocations: 0.7078 MB / 431.4 MB, free: 6.109 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.873e-05/0.284, allocations: 0 / 431.4 MB, free: 6.109 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.191e-05/0.284, allocations: 15.44 kB / 431.4 MB, free: 6.094 MB / 334.1 MB Notification: Performance of SimCode: time 3.2e-07/0.284, allocations: 0 / 431.4 MB, free: 6.094 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0212/0.3052, allocations: 1.861 MB / 433.3 MB, free: 4.383 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.39/10.7, allocations: 8.047 kB / 433.3 MB, free: 4.375 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79319e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,sample1.y,shiftSample1.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,sample1.u,sample1.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.u,shiftSample1.y,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time [Calling sys.exit(0), Time elapsed: 13.148906374990474]