Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.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.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001384/0.001384, allocations: 108.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00152/0.00152, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.562/1.562, allocations: 227.4 MB / 246.3 MB, free: 9.055 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001485/0.001485, allocations: 58.75 kB / 306.3 MB, free: 0.8125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1628/0.1643, allocations: 50.54 MB / 356.8 MB, free: 14.28 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1): time 0.004039/0.1684, allocations: 1.57 MB / 358.4 MB, free: 12.7 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005858/0.169, allocations: 151.5 kB / 358.5 MB, free: 12.55 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000118/0.1692, allocations: 0 / 358.5 MB, free: 12.55 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 7.627e-05/0.1693, allocations: 0 / 358.5 MB, free: 12.55 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001746/0.1695, allocations: 7.922 kB / 358.5 MB, free: 12.54 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003448/0.1699, allocations: 31.92 kB / 358.6 MB, free: 12.51 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001176/0.17, allocations: 35.86 kB / 358.6 MB, free: 12.47 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002538/0.1702, allocations: 23.95 kB / 358.6 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.689e-05/0.1703, allocations: 7.938 kB / 358.6 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.969e-05/0.1704, allocations: 19.92 kB / 358.6 MB, free: 12.42 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.846e-05/0.1704, allocations: 4 kB / 358.6 MB, free: 12.42 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.423e-05/0.1704, allocations: 0 / 358.6 MB, free: 12.42 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.371e-05/0.1705, allocations: 11.94 kB / 358.7 MB, free: 12.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.529e-05/0.1706, allocations: 23.8 kB / 358.7 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001312/0.1707, allocations: 43.81 kB / 358.7 MB, free: 12.34 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.1707, allocations: 0 / 358.7 MB, free: 12.34 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.1707, allocations: 0 / 358.7 MB, free: 12.34 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.1707, allocations: 0 / 358.7 MB, free: 12.34 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005387/0.1713, allocations: 374.1 kB / 359.1 MB, free: 11.93 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.217e-05/0.1714, allocations: 8.031 kB / 359.1 MB, free: 11.92 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.408e-05/0.1714, allocations: 12.84 kB / 359.1 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002335/0.1716, allocations: 196 kB / 359.3 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.926e-06/0.1717, allocations: 4.375 kB / 359.3 MB, free: 11.67 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.325e-05/0.1717, allocations: 384 / 359.3 MB, free: 11.67 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000319/0.172, allocations: 121.6 kB / 359.4 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.707e-06/0.172, allocations: 192 / 359.4 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.695e-05/0.1721, allocations: 7.938 kB / 359.4 MB, free: 11.53 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.581e-06/0.1721, allocations: 0 / 359.4 MB, free: 11.53 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.247e-05/0.1722, allocations: 19.92 kB / 359.4 MB, free: 11.51 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003674/0.1725, allocations: 257.8 kB / 359.7 MB, free: 11.2 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002641/0.1728, allocations: 146.2 kB / 359.8 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.222e-05/0.1729, allocations: 29.77 kB / 359.9 MB, free: 10.99 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.67e-05/0.1729, allocations: 3.938 kB / 359.9 MB, free: 10.98 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.742e-05/0.173, allocations: 34.56 kB / 359.9 MB, free: 10.94 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 1.172e-06/0.173, allocations: 0 / 359.9 MB, free: 10.94 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.000269/0.1732, allocations: 81.5 kB / 360 MB, free: 10.86 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.39e-05/0.1733, allocations: 81.05 kB / 360.1 MB, free: 10.76 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001402/0.1735, allocations: 136.5 kB / 360.2 MB, free: 10.61 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.416e-05/0.1735, allocations: 25.7 kB / 360.2 MB, free: 10.58 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.025e-05/0.1736, allocations: 88.12 kB / 360.3 MB, free: 10.49 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.279e-05/0.1736, allocations: 12.12 kB / 360.3 MB, free: 10.48 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.838e-05/0.1736, allocations: 17.62 kB / 360.3 MB, free: 10.46 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.1738, allocations: 314.8 kB / 360.6 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.692e-05/0.1738, allocations: 11.98 kB / 360.7 MB, free: 10.13 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.696e-05/0.1739, allocations: 35.36 kB / 360.7 MB, free: 10.08 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.922e-05/0.174, allocations: 51.36 kB / 360.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.174, allocations: 0 / 360.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001346/0.1741, allocations: 61.56 kB / 360.8 MB, free: 9.953 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.774e-05/0.1742, allocations: 4 kB / 360.8 MB, free: 9.949 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.042e-06/0.1742, allocations: 8.125 kB / 360.8 MB, free: 9.941 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/0.1742, allocations: 0 / 360.8 MB, free: 9.941 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.618e-05/0.1743, allocations: 11.98 kB / 360.8 MB, free: 9.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.915e-06/0.1743, allocations: 0 / 360.8 MB, free: 9.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.388e-05/0.1744, allocations: 7.938 kB / 360.8 MB, free: 9.922 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.208e-06/0.1744, allocations: 0 / 360.8 MB, free: 9.922 MB / 302.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.000141/0.1745, allocations: 133.7 kB / 361 MB, free: 9.781 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.543e-05/0.1746, allocations: 45.61 kB / 361 MB, free: 9.73 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.85e-05/0.1747, allocations: 12.23 kB / 361 MB, free: 9.711 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.1747, allocations: 4 kB / 361 MB, free: 9.707 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.174e-06/0.1747, allocations: 0 / 361 MB, free: 9.707 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.1747, allocations: 0 / 361 MB, free: 9.707 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003007/0.175, allocations: 169.6 kB / 361.2 MB, free: 9.492 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/0.175, allocations: 0 / 361.2 MB, free: 9.492 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.041e-05/0.1751, allocations: 8 kB / 361.2 MB, free: 9.484 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.039e-06/0.1751, allocations: 4 kB / 361.2 MB, free: 9.48 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.278e-05/0.1751, allocations: 0 / 361.2 MB, free: 9.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.899e-06/0.1751, allocations: 7.938 kB / 361.2 MB, free: 9.473 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.898e-06/0.1751, allocations: 3.984 kB / 361.2 MB, free: 9.469 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003023/0.1755, allocations: 176.2 kB / 361.4 MB, free: 9.277 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.122e-05/0.1755, allocations: 89 kB / 361.5 MB, free: 9.172 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.618e-05/0.1756, allocations: 0 / 361.5 MB, free: 9.172 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.449e-05/0.1756, allocations: 7.984 kB / 361.5 MB, free: 9.164 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.732e-05/0.1757, allocations: 0 / 361.5 MB, free: 9.164 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.732e-06/0.1757, allocations: 4 kB / 361.5 MB, free: 9.16 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.58e-05/0.1758, allocations: 107.3 kB / 361.6 MB, free: 9.055 MB / 302.1 MB Notification: Performance of sort global known variables: time 6.01e-07/0.1758, allocations: 0 / 361.6 MB, free: 9.055 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002797/0.1761, allocations: 8 kB / 361.6 MB, free: 9.047 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.0001569/0.1762, allocations: 99.23 kB / 361.7 MB, free: 8.941 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001687/0.1764, allocations: 35.86 kB / 361.7 MB, free: 8.906 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1764, allocations: 256 / 361.7 MB, free: 8.906 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.52e-05/0.1765, allocations: 8 kB / 361.7 MB, free: 8.898 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004837/0.177, allocations: 31.89 kB / 361.8 MB, free: 8.867 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004156/0.1774, allocations: 167 kB / 361.9 MB, free: 8.68 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003652/0.1778, allocations: 0.6927 MB / 362.6 MB, free: 7.961 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.022e-05/0.1778, allocations: 0.5156 kB / 362.6 MB, free: 7.961 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.959e-05/0.1779, allocations: 11.44 kB / 362.6 MB, free: 7.949 MB / 302.1 MB Notification: Performance of SimCode: time 2.696e-06/0.1779, allocations: 0 / 362.6 MB, free: 7.949 MB / 302.1 MB Notification: Performance of Templates: time 0.003182/0.181, allocations: 456.2 kB / 363.1 MB, free: 7.508 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Sample1/Sample1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches