Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002509/0.002509, allocations: 116.9 kB / 18.49 MB, free: 4.559 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00371/0.00371, allocations: 212.7 kB / 21.46 MB, free: 1.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.892/1.892, allocations: 230.5 MB / 254.7 MB, free: 15.2 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002075/0.002075, allocations: 67.88 kB / 373.7 MB, free: 10.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1633/0.1654, allocations: 53.37 MB / 427.1 MB, free: 4.641 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample): time 0.003403/0.1688, allocations: 1.597 MB / 428.7 MB, free: 3.039 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001339/0.1701, allocations: 0.5648 MB / 429.2 MB, free: 2.469 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001182/0.1702, allocations: 0 / 429.2 MB, free: 2.469 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.756e-05/0.1703, allocations: 7.922 kB / 429.2 MB, free: 2.461 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001631/0.1705, allocations: 19.86 kB / 429.3 MB, free: 2.441 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000382/0.1709, allocations: 63.75 kB / 429.3 MB, free: 2.379 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001355/0.171, allocations: 43.86 kB / 429.4 MB, free: 2.336 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001163/0.1711, allocations: 12.17 kB / 429.4 MB, free: 2.324 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001467/0.1713, allocations: 31.84 kB / 429.4 MB, free: 2.293 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.752e-05/0.1713, allocations: 19.86 kB / 429.4 MB, free: 2.273 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.229e-05/0.1714, allocations: 4 kB / 429.4 MB, free: 2.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.839e-05/0.1714, allocations: 12 kB / 429.4 MB, free: 2.258 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.346e-05/0.1715, allocations: 19.92 kB / 429.5 MB, free: 2.238 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.105e-05/0.1715, allocations: 19.81 kB / 429.5 MB, free: 2.219 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001985/0.1717, allocations: 63.67 kB / 429.5 MB, free: 2.156 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/0.1717, allocations: 0 / 429.5 MB, free: 2.156 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1717, allocations: 0 / 429.5 MB, free: 2.156 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.645e-06/0.1717, allocations: 3.938 kB / 429.5 MB, free: 2.152 MB / 350.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.0005717/0.1723, allocations: 383 kB / 429.9 MB, free: 1.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.185e-05/0.1723, allocations: 12.03 kB / 429.9 MB, free: 1.719 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.517e-05/0.1723, allocations: 12.11 kB / 429.9 MB, free: 1.707 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.577e-05/0.1724, allocations: 34.75 kB / 430 MB, free: 1.664 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001724/0.1726, allocations: 20.88 kB / 430 MB, free: 1.645 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003098/0.1729, allocations: 199.2 kB / 430.2 MB, free: 1.414 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.852e-05/0.1729, allocations: 7.938 kB / 430.2 MB, free: 1.406 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.015e-05/0.1729, allocations: 0 / 430.2 MB, free: 1.406 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003471/0.1732, allocations: 121.9 kB / 430.3 MB, free: 1.266 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.321e-05/0.1733, allocations: 0 / 430.3 MB, free: 1.266 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.222e-05/0.1733, allocations: 3.938 kB / 430.3 MB, free: 1.262 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.205e-06/0.1733, allocations: 4 kB / 430.3 MB, free: 1.258 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.959e-05/0.1734, allocations: 19.98 kB / 430.3 MB, free: 1.238 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004944/0.1739, allocations: 278.5 kB / 430.6 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001643/0.174, allocations: 67.8 kB / 430.7 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.089e-05/0.1741, allocations: 34.62 kB / 430.7 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.097e-05/0.1742, allocations: 4 kB / 430.7 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.731e-05/0.1742, allocations: 34.55 kB / 430.8 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 1.262e-06/0.1742, allocations: 0 / 430.8 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003656/0.1746, allocations: 93.69 kB / 430.8 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000108/0.1747, allocations: 114.7 kB / 431 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001797/0.1749, allocations: 148.8 kB / 431.1 MB, free: 348 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.023e-05/0.1749, allocations: 25.7 kB / 431.1 MB, free: 316 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.255e-05/0.1749, allocations: 92.14 kB / 431.2 MB, free: 220 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.606e-05/0.175, allocations: 0 / 431.2 MB, free: 220 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.195e-05/0.175, allocations: 21.86 kB / 431.2 MB, free: 192 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000186/0.1752, allocations: 322.8 kB / 431.6 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.119e-05/0.1753, allocations: 8 kB / 431.6 MB, free: 15.86 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.585e-05/0.1753, allocations: 31.42 kB / 431.6 MB, free: 15.81 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001115/0.1754, allocations: 51.36 kB / 431.6 MB, free: 15.75 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.1754, allocations: 7.938 kB / 431.7 MB, free: 15.74 MB / 366.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000157/0.1756, allocations: 61.61 kB / 431.7 MB, free: 15.68 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/0.1756, allocations: 11.94 kB / 431.7 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/0.1756, allocations: 0 / 431.7 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/0.1756, allocations: 0 / 431.7 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.602e-05/0.1757, allocations: 16.11 kB / 431.7 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.669e-05/0.1757, allocations: 7.938 kB / 431.7 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.339e-05/0.1758, allocations: 0 / 431.7 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.155e-05/0.1758, allocations: 4 kB / 431.8 MB, free: 15.64 MB / 366.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 0.0001162/0.1759, allocations: 121.8 kB / 431.9 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001013/0.176, allocations: 61.55 kB / 431.9 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.918e-05/0.176, allocations: 7.859 kB / 431.9 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.176, allocations: 8.078 kB / 431.9 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.183e-06/0.176, allocations: 8 kB / 432 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.1761, allocations: 0 / 432 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000218/0.1763, allocations: 173.7 kB / 432.1 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.1763, allocations: 0 / 432.1 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.468e-05/0.1763, allocations: 11.98 kB / 432.1 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.075e-06/0.1763, allocations: 0 / 432.1 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.286e-05/0.1764, allocations: 4 kB / 432.1 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.1764, allocations: 0 / 432.1 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.1764, allocations: 3.938 kB / 432.1 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002345/0.1766, allocations: 177.1 kB / 432.3 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.446e-05/0.1767, allocations: 97.05 kB / 432.4 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.8e-05/0.1767, allocations: 4 kB / 432.4 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.049e-05/0.1768, allocations: 4 kB / 432.4 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.579e-05/0.1768, allocations: 7.922 kB / 432.4 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.899e-06/0.1768, allocations: 0 / 432.4 MB, free: 14.85 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.644e-05/0.1769, allocations: 119.2 kB / 432.5 MB, free: 14.73 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1769, allocations: 0 / 432.5 MB, free: 14.73 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002351/0.1771, allocations: 8 kB / 432.6 MB, free: 14.72 MB / 366.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.0005808/0.1777, allocations: 0.7101 MB / 433.3 MB, free: 13.98 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001766/0.1779, allocations: 35.86 kB / 433.3 MB, free: 13.95 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.1779, allocations: 0 / 433.3 MB, free: 13.95 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.411e-05/0.1779, allocations: 11.98 kB / 433.3 MB, free: 13.93 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000396/0.1783, allocations: 20.02 kB / 433.3 MB, free: 13.91 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00179/0.1801, allocations: 1.409 MB / 434.7 MB, free: 12.4 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003433/0.1805, allocations: 0.6924 MB / 435.4 MB, free: 11.68 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.921e-05/0.1805, allocations: 11.92 kB / 435.4 MB, free: 11.67 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.053e-05/0.1806, allocations: 15.44 kB / 435.5 MB, free: 11.65 MB / 366.1 MB Notification: Performance of SimCode: time 8.42e-07/0.1806, allocations: 0 / 435.5 MB, free: 11.65 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02074/0.2013, allocations: 1.799 MB / 437.3 MB, free: 9.977 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.998/8.2, allocations: 15.17 kB / 437.3 MB, free: 9.969 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79319e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.continuous,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time [Calling sys.exit(0), Time elapsed: 11.681637749017682]