Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.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.001822/0.001822, allocations: 118.2 kB / 18.49 MB, free: 4.566 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.002173/0.002173, allocations: 218.3 kB / 21.46 MB, free: 1.613 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.667/1.667, allocations: 230.4 MB / 254.7 MB, free: 15.03 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.ClockSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002691/0.002691, allocations: 59.91 kB / 373.7 MB, free: 10.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.165/0.1677, allocations: 53.37 MB / 427 MB, free: 4.629 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.003083/0.1708, allocations: 1.574 MB / 428.6 MB, free: 3.051 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001179/0.172, allocations: 0.561 MB / 429.2 MB, free: 2.484 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.443e-05/0.1721, allocations: 0 / 429.2 MB, free: 2.484 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.573e-05/0.1721, allocations: 3.938 kB / 429.2 MB, free: 2.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001616/0.1723, allocations: 19.86 kB / 429.2 MB, free: 2.461 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003691/0.1727, allocations: 63.81 kB / 429.3 MB, free: 2.398 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001205/0.1728, allocations: 51.78 kB / 429.3 MB, free: 2.348 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001071/0.1729, allocations: 8.188 kB / 429.3 MB, free: 2.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001355/0.173, allocations: 31.84 kB / 429.4 MB, free: 2.309 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.513e-05/0.1731, allocations: 19.86 kB / 429.4 MB, free: 2.289 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.759e-05/0.1731, allocations: 8 kB / 429.4 MB, free: 2.281 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.534e-05/0.1732, allocations: 8 kB / 429.4 MB, free: 2.273 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.395e-05/0.1732, allocations: 19.86 kB / 429.4 MB, free: 2.254 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.606e-05/0.1732, allocations: 23.81 kB / 429.4 MB, free: 2.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001818/0.1734, allocations: 63.67 kB / 429.5 MB, free: 2.168 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.1734, allocations: 0 / 429.5 MB, free: 2.168 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.1734, allocations: 0 / 429.5 MB, free: 2.168 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.032e-06/0.1734, allocations: 0 / 429.5 MB, free: 2.168 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.0005715/0.174, allocations: 387 kB / 429.9 MB, free: 1.742 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.498e-05/0.1741, allocations: 16.03 kB / 429.9 MB, free: 1.727 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.838e-05/0.1741, allocations: 192 / 429.9 MB, free: 1.727 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.091e-05/0.1741, allocations: 34.75 kB / 429.9 MB, free: 1.684 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001595/0.1743, allocations: 20.88 kB / 429.9 MB, free: 1.664 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003707/0.1746, allocations: 207.5 kB / 430.1 MB, free: 1.426 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.548e-06/0.1746, allocations: 3.938 kB / 430.2 MB, free: 1.422 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.786e-05/0.1747, allocations: 4 kB / 430.2 MB, free: 1.418 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002953/0.175, allocations: 109 kB / 430.3 MB, free: 1.293 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.175, allocations: 0 / 430.3 MB, free: 1.293 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.063e-05/0.175, allocations: 0 / 430.3 MB, free: 1.293 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.175, allocations: 4 kB / 430.3 MB, free: 1.289 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.343e-05/0.1751, allocations: 15.92 kB / 430.3 MB, free: 1.273 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003645/0.1754, allocations: 265.8 kB / 430.5 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001001/0.1755, allocations: 53.12 kB / 430.6 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.303e-05/0.1756, allocations: 17.78 kB / 430.6 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.989e-05/0.1756, allocations: 4 kB / 430.6 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.033e-05/0.1756, allocations: 34.56 kB / 430.6 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.293e-06/0.1756, allocations: 0 / 430.6 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002635/0.1759, allocations: 65.56 kB / 430.7 MB, free: 0.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.077e-05/0.176, allocations: 81.11 kB / 430.8 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001429/0.1761, allocations: 150 kB / 430.9 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.553e-05/0.1761, allocations: 29.7 kB / 431 MB, free: 472 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.264e-05/0.1762, allocations: 88.08 kB / 431.1 MB, free: 380 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.539e-05/0.1762, allocations: 3.953 kB / 431.1 MB, free: 376 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.766e-05/0.1762, allocations: 21.7 kB / 431.1 MB, free: 348 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001277/0.1764, allocations: 318.8 kB / 431.4 MB, free: 20 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.209e-05/0.1764, allocations: 7.984 kB / 431.4 MB, free: 12 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.214e-05/0.1765, allocations: 17.77 kB / 431.4 MB, free: 15.98 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.122e-05/0.1765, allocations: 29.7 kB / 431.4 MB, free: 15.95 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1765, allocations: 0 / 431.4 MB, free: 15.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001291/0.1767, allocations: 61.56 kB / 431.5 MB, free: 15.88 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.031e-05/0.1767, allocations: 8 kB / 431.5 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.1767, allocations: 0 / 431.5 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.613e-05/0.1767, allocations: 4.125 kB / 431.5 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.168e-05/0.1768, allocations: 4 kB / 431.5 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.007e-06/0.1768, allocations: 15.8 kB / 431.5 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.661e-05/0.1768, allocations: 4 kB / 431.5 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.668e-06/0.1769, allocations: 3.984 kB / 431.5 MB, free: 15.84 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 2 * 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.000104/0.177, allocations: 113.8 kB / 431.7 MB, free: 15.72 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.232e-05/0.177, allocations: 41.59 kB / 431.7 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.718e-05/0.1771, allocations: 15.86 kB / 431.7 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.1771, allocations: 4.031 kB / 431.7 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.175e-06/0.1771, allocations: 3.938 kB / 431.7 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.1771, allocations: 4 kB / 431.7 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002041/0.1773, allocations: 169.7 kB / 431.9 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.1773, allocations: 0 / 431.9 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.243e-05/0.1773, allocations: 4 kB / 431.9 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.19e-06/0.1773, allocations: 4 kB / 431.9 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.979e-06/0.1774, allocations: 3.984 kB / 431.9 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.1774, allocations: 0 / 431.9 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.1774, allocations: 3.938 kB / 431.9 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001812/0.1775, allocations: 164.3 kB / 432.1 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.263e-05/0.1776, allocations: 89.05 kB / 432.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.486e-05/0.1776, allocations: 0 / 432.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.178e-05/0.1777, allocations: 11.98 kB / 432.2 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.968e-05/0.1777, allocations: 3.938 kB / 432.2 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.787e-06/0.1777, allocations: 0 / 432.2 MB, free: 15.11 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.148e-05/0.1778, allocations: 117.9 kB / 432.3 MB, free: 15 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1778, allocations: 0 / 432.3 MB, free: 15 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002293/0.1781, allocations: 4 kB / 432.3 MB, free: 14.99 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 2 * 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.0005124/0.1786, allocations: 0.6976 MB / 433 MB, free: 14.27 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001513/0.1787, allocations: 23.92 kB / 433 MB, free: 14.24 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.1787, allocations: 0 / 433 MB, free: 14.24 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.959e-05/0.1788, allocations: 8 kB / 433 MB, free: 14.23 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003581/0.1791, allocations: 16.02 kB / 433 MB, free: 14.22 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001415/0.1805, allocations: 1.333 MB / 434.4 MB, free: 12.8 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003269/0.1809, allocations: 0.6962 MB / 435.1 MB, free: 12.07 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.625e-05/0.1809, allocations: 0 / 435.1 MB, free: 12.07 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.328e-05/0.181, allocations: 23.45 kB / 435.1 MB, free: 12.05 MB / 366.1 MB Notification: Performance of SimCode: time 3.61e-07/0.181, allocations: 0 / 435.1 MB, free: 12.05 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02071/0.2017, allocations: 1.689 MB / 436.8 MB, free: 10.49 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.674/8.875, allocations: 8.047 kB / 436.8 MB, free: 10.48 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79319e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.996632469992619]