Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001794/0.001794, allocations: 109.7 kB / 17.16 MB, free: 6.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001925/0.001925, allocations: 198.9 kB / 18.08 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.285/2.285, allocations: 222.9 MB / 241.8 MB, free: 15.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001831/0.001831, allocations: 46.42 kB / 300.6 MB, free: 6.215 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1707/0.1725, allocations: 49.45 MB / 350.1 MB, free: 4.758 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1): time 0.00366/0.1763, allocations: 1.557 MB / 351.6 MB, free: 3.184 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005391/0.1769, allocations: 147.5 kB / 351.8 MB, free: 3.039 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001431/0.1771, allocations: 4 kB / 351.8 MB, free: 3.035 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 8.194e-05/0.1772, allocations: 3.938 kB / 351.8 MB, free: 3.031 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001969/0.1774, allocations: 3.984 kB / 351.8 MB, free: 3.027 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003726/0.1778, allocations: 43.91 kB / 351.8 MB, free: 2.984 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001025/0.1779, allocations: 31.92 kB / 351.8 MB, free: 2.953 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001545/0.178, allocations: 15.98 kB / 351.9 MB, free: 2.938 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.861e-05/0.1781, allocations: 7.938 kB / 351.9 MB, free: 2.93 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.3e-05/0.1782, allocations: 19.86 kB / 351.9 MB, free: 2.91 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.259e-05/0.1782, allocations: 0 / 351.9 MB, free: 2.91 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.475e-05/0.1782, allocations: 4 kB / 351.9 MB, free: 2.906 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.469e-05/0.1783, allocations: 15.92 kB / 351.9 MB, free: 2.891 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.721e-05/0.1784, allocations: 15.88 kB / 351.9 MB, free: 2.875 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001094/0.1785, allocations: 31.94 kB / 352 MB, free: 2.844 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.028e-05/0.1785, allocations: 4 kB / 352 MB, free: 2.84 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1785, allocations: 3.938 kB / 352 MB, free: 2.836 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.1785, allocations: 3.938 kB / 352 MB, free: 2.832 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0006828/0.1792, allocations: 367.5 kB / 352.3 MB, free: 2.422 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.393e-05/0.1793, allocations: 12.03 kB / 352.3 MB, free: 2.41 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.603e-05/0.1794, allocations: 8.844 kB / 352.3 MB, free: 2.402 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003979/0.1798, allocations: 192.1 kB / 352.5 MB, free: 2.176 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.718e-05/0.1798, allocations: 384 / 352.5 MB, free: 2.176 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.128e-05/0.1799, allocations: 8.375 kB / 352.5 MB, free: 2.168 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004991/0.1804, allocations: 113.5 kB / 352.7 MB, free: 2.039 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.616e-05/0.1804, allocations: 192 / 352.7 MB, free: 2.039 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.762e-05/0.1804, allocations: 3.938 kB / 352.7 MB, free: 2.035 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.393e-05/0.1805, allocations: 4 kB / 352.7 MB, free: 2.031 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001223/0.1806, allocations: 23.92 kB / 352.7 MB, free: 2.008 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006753/0.1813, allocations: 257.8 kB / 352.9 MB, free: 1.703 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003918/0.1817, allocations: 142.2 kB / 353.1 MB, free: 1.527 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000134/0.1818, allocations: 33.77 kB / 353.1 MB, free: 1.488 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.864e-05/0.1819, allocations: 4 kB / 353.1 MB, free: 1.484 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.066e-05/0.182, allocations: 34.56 kB / 353.1 MB, free: 1.441 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 1.964e-06/0.182, allocations: 0 / 353.1 MB, free: 1.441 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0004248/0.1824, allocations: 73.52 kB / 353.2 MB, free: 1.363 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001198/0.1825, allocations: 85.23 kB / 353.3 MB, free: 1.262 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002396/0.1828, allocations: 137.6 kB / 353.4 MB, free: 1.117 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.882e-05/0.1828, allocations: 25.7 kB / 353.5 MB, free: 1.086 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001336/0.183, allocations: 88.14 kB / 353.5 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.346e-05/0.183, allocations: 7.875 kB / 353.6 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.657e-05/0.1831, allocations: 21.62 kB / 353.6 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002243/0.1833, allocations: 322.8 kB / 353.9 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.081e-05/0.1834, allocations: 8 kB / 353.9 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.516e-05/0.1835, allocations: 35.42 kB / 353.9 MB, free: 0.582 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001413/0.1836, allocations: 43.36 kB / 354 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.1836, allocations: 4 kB / 354 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002085/0.1838, allocations: 65.56 kB / 354 MB, free: 464 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.944e-05/0.1839, allocations: 10.95 kB / 354.1 MB, free: 456 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.207e-06/0.1839, allocations: 0 / 354.1 MB, free: 456 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.466e-05/0.1839, allocations: 0 / 354.1 MB, free: 456 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.282e-05/0.184, allocations: 8 kB / 354.1 MB, free: 448 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.513e-05/0.1841, allocations: 4 kB / 354.1 MB, free: 444 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.58e-05/0.1841, allocations: 15.94 kB / 354.1 MB, free: 428 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.433e-05/0.1842, allocations: 4 kB / 354.1 MB, free: 424 kB / 286.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: 4 (step.y,sample1.y,assignClock.y,assignClock.u) * 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.0001905/0.1844, allocations: 121.8 kB / 354.2 MB, free: 292 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000113/0.1845, allocations: 49.59 kB / 354.3 MB, free: 236 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.56e-05/0.1846, allocations: 12.25 kB / 354.3 MB, free: 216 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.1846, allocations: 0 / 354.3 MB, free: 216 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/0.1846, allocations: 0 / 354.3 MB, free: 216 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.234e-06/0.1846, allocations: 0 / 354.3 MB, free: 216 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003365/0.185, allocations: 177.6 kB / 354.4 MB, free: 15.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.185, allocations: 0 / 354.4 MB, free: 15.99 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.27e-05/0.1851, allocations: 12 kB / 354.5 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.272e-06/0.1851, allocations: 3.984 kB / 354.5 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.371e-05/0.1851, allocations: 4 kB / 354.5 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.549e-06/0.1851, allocations: 3.938 kB / 354.5 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.1851, allocations: 4 kB / 354.5 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002914/0.1854, allocations: 164.2 kB / 354.6 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.487e-05/0.1855, allocations: 93.02 kB / 354.7 MB, free: 15.67 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.755e-05/0.1856, allocations: 7.984 kB / 354.7 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.145e-05/0.1857, allocations: 0 / 354.7 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.998e-05/0.1857, allocations: 384 / 354.7 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.746e-06/0.1857, allocations: 4 kB / 354.7 MB, free: 15.66 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001254/0.1859, allocations: 107.2 kB / 354.8 MB, free: 15.55 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.707e-06/0.1859, allocations: 0 / 354.8 MB, free: 15.55 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003713/0.1863, allocations: 11.94 kB / 354.8 MB, free: 15.54 MB / 302.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: 4 (step.y,assignClock.u,assignClock.y,sample1.y) * 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.0001951/0.1865, allocations: 111.1 kB / 355 MB, free: 15.43 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002239/0.1867, allocations: 23.98 kB / 355 MB, free: 15.4 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.1867, allocations: 0 / 355 MB, free: 15.4 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.818e-05/0.1868, allocations: 11.92 kB / 355 MB, free: 15.39 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006791/0.1875, allocations: 23.95 kB / 355 MB, free: 15.37 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006521/0.1882, allocations: 197.2 kB / 355.2 MB, free: 15.14 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006516/0.1888, allocations: 0.6926 MB / 355.9 MB, free: 14.42 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.596e-05/0.1889, allocations: 7.438 kB / 355.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of SimCode: time 3.9e-07/0.1889, allocations: 0 / 355.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of Templates: time 0.004141/0.1931, allocations: 0.6786 MB / 356.6 MB, free: 13.74 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Sample1/Sample1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches