Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package IndustrialControlSystems with version 1.1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(IndustrialControlSystems.Logical.Timers.Examples.testT_On,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On") translateModel(IndustrialControlSystems.Logical.Timers.Examples.testT_On,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008126/0.0008127, allocations: 180.1 kB / 15.43 MB, free: 5.84 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05623/0.05623, allocations: 10.99 MB / 27.17 MB, free: 1.578 MB / 18.57 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.174/1.174, allocations: 225.7 MB / 256.1 MB, free: 3.152 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007536/0.0007539, allocations: 95.31 kB / 309.7 MB, free: 1.148 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002628/0.0002629, allocations: 8 kB / 373.2 MB, free: 1.496 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1765/0.1768, allocations: 52.84 MB / 426.1 MB, free: 35.96 MB / 314.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On): time 0.00155/0.1784, allocations: 1.655 MB / 427.7 MB, free: 34.29 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001319/0.1797, allocations: 1.696 MB / 429.4 MB, free: 32.46 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.258e-05/0.1798, allocations: 4 kB / 429.4 MB, free: 32.46 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005505/0.1804, allocations: 270.2 kB / 429.7 MB, free: 32.2 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002814/0.1806, allocations: 187.5 kB / 429.9 MB, free: 32.02 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000499/0.1812, allocations: 271.5 kB / 430.1 MB, free: 31.75 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002242/0.1814, allocations: 339.1 kB / 430.5 MB, free: 31.42 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001038/0.1815, allocations: 48.39 kB / 430.5 MB, free: 31.37 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001135/0.1816, allocations: 127.4 kB / 430.6 MB, free: 31.25 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001115/0.1817, allocations: 127.4 kB / 430.8 MB, free: 31.12 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.447e-05/0.1818, allocations: 8 kB / 430.8 MB, free: 31.11 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001305/0.1819, allocations: 75.95 kB / 430.8 MB, free: 31.04 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 6.515e-05/0.182, allocations: 63.75 kB / 430.9 MB, free: 30.98 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 7.904e-05/0.1821, allocations: 133 kB / 431 MB, free: 30.84 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002446/0.1823, allocations: 340.9 kB / 431.4 MB, free: 30.51 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.1823, allocations: 3.938 kB / 431.4 MB, free: 30.5 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.1823, allocations: 3.938 kB / 431.4 MB, free: 30.5 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.546e-06/0.1823, allocations: 0 / 431.4 MB, free: 30.5 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.0005759/0.1829, allocations: 0.5838 MB / 432 MB, free: 29.86 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.702e-05/0.183, allocations: 15.97 kB / 432 MB, free: 29.84 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.498e-05/0.183, allocations: 32.56 kB / 432 MB, free: 29.81 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002664/0.1833, allocations: 324.2 kB / 432.3 MB, free: 29.46 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.911e-05/0.1833, allocations: 16.12 kB / 432.3 MB, free: 29.44 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.101e-05/0.1833, allocations: 8 kB / 432.3 MB, free: 29.43 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002265/0.1836, allocations: 152.7 kB / 432.5 MB, free: 29.27 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.692e-06/0.1836, allocations: 0 / 432.5 MB, free: 29.27 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.511e-05/0.1836, allocations: 4 kB / 432.5 MB, free: 29.27 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.1836, allocations: 8 kB / 432.5 MB, free: 29.26 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001417/0.1838, allocations: 75.69 kB / 432.6 MB, free: 29.19 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00046/0.1842, allocations: 476.3 kB / 433 MB, free: 28.67 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002581/0.1845, allocations: 142.7 kB / 433.2 MB, free: 28.52 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.483e-05/0.1846, allocations: 56.83 kB / 433.2 MB, free: 28.46 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.99e-05/0.1846, allocations: 0 / 433.2 MB, free: 28.46 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000195/0.1848, allocations: 131.3 kB / 433.4 MB, free: 28.32 MB / 314.7 MB Notification: Performance of pre-optimization done (n=17): time 1.283e-06/0.1848, allocations: 0 / 433.4 MB, free: 28.32 MB / 314.7 MB Notification: Performance of matching and sorting (n=17): time 0.0004282/0.1853, allocations: 265.6 kB / 433.6 MB, free: 28.06 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.089e-05/0.1853, allocations: 110.7 kB / 433.7 MB, free: 27.93 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002727/0.1856, allocations: 380.5 kB / 434.1 MB, free: 27.54 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.509e-05/0.1856, allocations: 33.7 kB / 434.1 MB, free: 27.5 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.555e-05/0.1857, allocations: 156.4 kB / 434.3 MB, free: 27.34 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.776e-05/0.1857, allocations: 43.45 kB / 434.3 MB, free: 27.3 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.341e-06/0.1857, allocations: 4 kB / 434.3 MB, free: 27.3 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.884e-05/0.1858, allocations: 346.8 kB / 434.7 MB, free: 26.95 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.867e-05/0.1859, allocations: 43.97 kB / 434.7 MB, free: 26.91 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001136/0.186, allocations: 147.9 kB / 434.9 MB, free: 26.72 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002204/0.1862, allocations: 176.4 kB / 435 MB, free: 26.52 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.1862, allocations: 4 kB / 435 MB, free: 26.51 MB / 314.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002836/0.1865, allocations: 225.1 kB / 435.3 MB, free: 26.29 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.728e-06/0.1865, allocations: 11.84 kB / 435.3 MB, free: 26.27 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.1866, allocations: 7.984 kB / 435.3 MB, free: 26.27 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.181e-05/0.1866, allocations: 4 kB / 435.3 MB, free: 26.26 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001059/0.1867, allocations: 31.92 kB / 435.3 MB, free: 26.23 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/0.1867, allocations: 4 kB / 435.3 MB, free: 26.23 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001063/0.1868, allocations: 23.84 kB / 435.3 MB, free: 26.2 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.271e-05/0.1868, allocations: 16.16 kB / 435.4 MB, free: 26.19 MB / 314.7 MB Warning: Assuming fixed start value for the following 3 variables: timer.Q:DISCRETE(flow=false fixed = true ) "status of the timer" type: Boolean timer.run:DISCRETE(fixed = true ) "Flag: true while the timer is counting" type: Boolean timer.tr:DISCRETE(flow=false fixed = true ) "residual time" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 22 ($PRE.timer.Sd,$PRE.timer.startTime,timer.startTime,$PRE.timer.Q,timer.Q,$PRE.timer.run,timer.run,$PRE.timer.tr,timer.tr,$whenCondition3,$PRE.ResetSignal.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.SetSignal.combiTimeTable.nextTimeEvent,$whenCondition1,ResetSignal.y,ResetSignal.combiTimeTable.nextTimeEvent,$PRE.ResetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.combiTimeTable.nextTimeEventScaled,timer.Sd,SetSignal.combiTimeTable.nextTimeEvent,$PRE.SetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0001304/0.187, allocations: 175.9 kB / 435.5 MB, free: 26.01 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.923e-05/0.187, allocations: 31.62 kB / 435.6 MB, free: 25.98 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.068e-05/0.1871, allocations: 31.08 kB / 435.6 MB, free: 25.94 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.1871, allocations: 4 kB / 435.6 MB, free: 25.94 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.685e-06/0.1871, allocations: 0 / 435.6 MB, free: 25.94 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.1871, allocations: 7.984 kB / 435.6 MB, free: 25.93 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001586/0.1872, allocations: 293.3 kB / 435.9 MB, free: 25.59 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.1873, allocations: 0 / 435.9 MB, free: 25.59 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.118e-05/0.1873, allocations: 7.984 kB / 435.9 MB, free: 25.59 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.1873, allocations: 4 kB / 435.9 MB, free: 25.58 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.199e-05/0.1873, allocations: 0 / 435.9 MB, free: 25.58 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.1873, allocations: 4 kB / 435.9 MB, free: 25.58 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.1873, allocations: 0 / 435.9 MB, free: 25.58 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003007/0.1876, allocations: 252.6 kB / 436.2 MB, free: 25.31 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.548e-05/0.1877, allocations: 112.7 kB / 436.3 MB, free: 25.18 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.814e-05/0.1877, allocations: 12 kB / 436.3 MB, free: 25.17 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.964e-05/0.1878, allocations: 7.984 kB / 436.3 MB, free: 25.16 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.008e-05/0.1879, allocations: 11.98 kB / 436.3 MB, free: 25.15 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.609e-05/0.1879, allocations: 11.98 kB / 436.3 MB, free: 25.14 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000195/0.1881, allocations: 279 kB / 436.6 MB, free: 24.87 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1881, allocations: 0 / 436.6 MB, free: 24.87 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002466/0.1884, allocations: 67.98 kB / 436.6 MB, free: 24.8 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition3,$whenCondition2,$whenCondition1,timer.Q,timer.tr,timer.run,timer.startTime,timer.Sd,SetSignal.combiTimeTable.nextTimeEvent,SetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.y,ResetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 6 (timer.Sd,timer.startTime,ResetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0007758/0.1891, allocations: 0.4944 MB / 437.1 MB, free: 24.44 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002614/0.1894, allocations: 151.8 kB / 437.3 MB, free: 24.29 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.1894, allocations: 0 / 437.3 MB, free: 24.29 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001156/0.1895, allocations: 72.41 kB / 437.4 MB, free: 24.22 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003321/0.1899, allocations: 71.17 kB / 437.4 MB, free: 24.15 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005254/0.1904, allocations: 0.5151 MB / 437.9 MB, free: 23.61 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001326/0.1906, allocations: 0.7599 MB / 438.7 MB, free: 22.82 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001016/0.1907, allocations: 50.2 kB / 438.8 MB, free: 22.77 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.721e-05/0.1907, allocations: 31.42 kB / 438.8 MB, free: 22.74 MB / 314.7 MB Notification: Performance of SimCode: time 2.6e-07/0.1907, allocations: 0 / 438.8 MB, free: 22.74 MB / 314.7 MB Notification: Performance of Templates: time 0.005648/0.1964, allocations: 3.836 MB / 442.6 MB, free: 18.93 MB / 314.7 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.sim & ./IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe 2>&1)