Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001525/0.001525, allocations: 105.2 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001625/0.001625, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.582/1.582, allocations: 227.4 MB / 246.8 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002737/0.002738, allocations: 67.2 kB / 307 MB, free: 0.5703 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1559/0.1586, allocations: 50.55 MB / 357.5 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.00596/0.1646, allocations: 1.908 MB / 359.4 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00353/0.1682, allocations: 1.297 MB / 360.7 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001835/0.1684, allocations: 7.938 kB / 360.7 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004352/0.1689, allocations: 67.66 kB / 360.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000526/0.1695, allocations: 131.4 kB / 360.9 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009457/0.1704, allocations: 231.2 kB / 361.2 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003651/0.1708, allocations: 187.5 kB / 361.4 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001735/0.171, allocations: 41.52 kB / 361.4 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001505/0.1712, allocations: 75.7 kB / 361.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001802/0.1714, allocations: 87.55 kB / 361.6 MB, free: 9.98 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.455e-05/0.1714, allocations: 12 kB / 361.6 MB, free: 9.969 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000235/0.1717, allocations: 67.95 kB / 361.6 MB, free: 9.902 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001255/0.1718, allocations: 43.84 kB / 361.7 MB, free: 9.859 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001536/0.172, allocations: 83.42 kB / 361.8 MB, free: 9.777 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005019/0.1725, allocations: 247.1 kB / 362 MB, free: 9.535 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.9e-06/0.1725, allocations: 4 kB / 362 MB, free: 9.531 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1725, allocations: 0 / 362 MB, free: 9.531 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.1725, allocations: 4 kB / 362 MB, free: 9.527 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.001059/0.1736, allocations: 0.5428 MB / 362.5 MB, free: 8.93 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.283e-05/0.1737, allocations: 12.03 kB / 362.6 MB, free: 8.918 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.307e-05/0.1738, allocations: 24.66 kB / 362.6 MB, free: 8.895 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005085/0.1743, allocations: 283.6 kB / 362.9 MB, free: 8.578 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.398e-05/0.1743, allocations: 4.375 kB / 362.9 MB, free: 8.574 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.647e-05/0.1744, allocations: 16.12 kB / 362.9 MB, free: 8.559 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005224/0.1749, allocations: 174.9 kB / 363 MB, free: 8.359 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.633e-05/0.1749, allocations: 3.984 kB / 363.1 MB, free: 8.355 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.119e-05/0.175, allocations: 4 kB / 363.1 MB, free: 8.352 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/0.175, allocations: 8 kB / 363.1 MB, free: 8.344 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001709/0.1752, allocations: 35.92 kB / 363.1 MB, free: 8.309 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008389/0.176, allocations: 478.4 kB / 363.6 MB, free: 7.781 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004311/0.1765, allocations: 150.5 kB / 363.7 MB, free: 7.598 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001675/0.1766, allocations: 59.42 kB / 363.8 MB, free: 7.527 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.478e-05/0.1767, allocations: 3.938 kB / 363.8 MB, free: 7.523 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003872/0.1771, allocations: 89.09 kB / 363.9 MB, free: 7.418 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 2.084e-06/0.1771, allocations: 4 kB / 363.9 MB, free: 7.414 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0006176/0.1777, allocations: 169.2 kB / 364 MB, free: 7.242 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002055/0.178, allocations: 187.9 kB / 364.2 MB, free: 7.016 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005295/0.1785, allocations: 346.8 kB / 364.6 MB, free: 6.664 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.735e-05/0.1785, allocations: 29.7 kB / 364.6 MB, free: 6.629 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001678/0.1787, allocations: 128.5 kB / 364.7 MB, free: 6.496 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.224e-05/0.1788, allocations: 24.11 kB / 364.7 MB, free: 6.473 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.43e-05/0.1789, allocations: 37.7 kB / 364.8 MB, free: 6.43 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002384/0.1791, allocations: 338.8 kB / 365.1 MB, free: 6.09 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.999e-05/0.1792, allocations: 23.98 kB / 365.1 MB, free: 6.066 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001863/0.1794, allocations: 91.72 kB / 365.2 MB, free: 5.949 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002648/0.1797, allocations: 105.3 kB / 365.3 MB, free: 5.828 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.1797, allocations: 0 / 365.3 MB, free: 5.828 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000395/0.1801, allocations: 137.3 kB / 365.4 MB, free: 5.688 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.632e-05/0.1802, allocations: 6.969 kB / 365.5 MB, free: 5.684 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.445e-05/0.1802, allocations: 4 kB / 365.5 MB, free: 5.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.598e-05/0.1802, allocations: 3.938 kB / 365.5 MB, free: 5.676 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001993/0.1804, allocations: 27.98 kB / 365.5 MB, free: 5.648 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.468e-06/0.1805, allocations: 0 / 365.5 MB, free: 5.648 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001324/0.1806, allocations: 15.83 kB / 365.5 MB, free: 5.633 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.632e-05/0.1806, allocations: 4 kB / 365.5 MB, free: 5.629 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,shiftSample1.y,hold1.y,hold1.u,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0002344/0.1809, allocations: 165.9 kB / 365.7 MB, free: 5.457 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001671/0.181, allocations: 73.41 kB / 365.7 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001097/0.1812, allocations: 25.73 kB / 365.8 MB, free: 5.348 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.514e-06/0.1812, allocations: 4 kB / 365.8 MB, free: 5.344 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.283e-05/0.1812, allocations: 0 / 365.8 MB, free: 5.344 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.123e-05/0.1812, allocations: 7.922 kB / 365.8 MB, free: 5.336 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003795/0.1816, allocations: 249.5 kB / 366 MB, free: 5.043 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.1816, allocations: 3.938 kB / 366 MB, free: 5.039 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.97e-05/0.1817, allocations: 15.98 kB / 366 MB, free: 5.023 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.128e-05/0.1818, allocations: 8.062 kB / 366.1 MB, free: 5.016 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.75e-05/0.1818, allocations: 4 kB / 366.1 MB, free: 5.012 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.21e-06/0.1818, allocations: 4 kB / 366.1 MB, free: 5.008 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.1818, allocations: 0 / 366.1 MB, free: 5.008 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004414/0.1823, allocations: 187.3 kB / 366.2 MB, free: 4.797 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001853/0.1825, allocations: 116.8 kB / 366.4 MB, free: 4.664 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.845e-05/0.1825, allocations: 7.938 kB / 366.4 MB, free: 4.656 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001033/0.1826, allocations: 12.05 kB / 366.4 MB, free: 4.645 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.497e-05/0.1827, allocations: 11.94 kB / 366.4 MB, free: 4.633 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.209e-05/0.1828, allocations: 7.984 kB / 366.4 MB, free: 4.625 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003823/0.1832, allocations: 249.9 kB / 366.6 MB, free: 4.383 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1832, allocations: 3.938 kB / 366.6 MB, free: 4.379 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004665/0.1836, allocations: 35.98 kB / 366.7 MB, free: 4.344 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,hold1.y,hold1.u,shiftSample1.y,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.00208/0.1857, allocations: 413.8 kB / 367.1 MB, free: 4.066 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000389/0.1861, allocations: 91.83 kB / 367.2 MB, free: 3.977 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.1862, allocations: 0 / 367.2 MB, free: 3.977 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001386/0.1863, allocations: 35.92 kB / 367.2 MB, free: 3.941 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006146/0.1869, allocations: 79.38 kB / 367.3 MB, free: 3.871 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009795/0.1879, allocations: 394.2 kB / 367.7 MB, free: 3.457 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005824/0.1885, allocations: 0.7476 MB / 368.4 MB, free: 2.684 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001524/0.1887, allocations: 25.55 kB / 368.4 MB, free: 2.656 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001046/0.1888, allocations: 23.44 kB / 368.5 MB, free: 2.637 MB / 302.1 MB Notification: Performance of SimCode: time 4.1e-07/0.1888, allocations: 3.938 kB / 368.5 MB, free: 2.633 MB / 302.1 MB Notification: Performance of Templates: time 0.2453/0.4342, allocations: 2.948 MB / 371.4 MB, free: 19.79 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Hold/Hold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches