Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.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.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008475/0.0008474, allocations: 93.83 kB / 16.65 MB, free: 6.598 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.0009325/0.0009325, allocations: 179 kB / 17.56 MB, free: 6.199 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.578/1.578, allocations: 223.2 MB / 241.6 MB, free: 14.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000465/0.0004649, allocations: 11.94 kB / 301.4 MB, free: 5.906 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1432/0.1437, allocations: 50.41 MB / 351.8 MB, free: 3.477 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003661/0.1475, allocations: 1.582 MB / 353.4 MB, free: 1.879 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002619/0.1501, allocations: 1.064 MB / 354.5 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001663/0.1504, allocations: 7.938 kB / 354.5 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004392/0.1508, allocations: 71.78 kB / 354.6 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000308/0.1511, allocations: 75.73 kB / 354.6 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009565/0.1521, allocations: 224.4 kB / 354.9 MB, free: 452 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002351/0.1523, allocations: 159.5 kB / 355 MB, free: 292 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001407/0.1525, allocations: 29.56 kB / 355 MB, free: 264 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001097/0.1526, allocations: 63.62 kB / 355.1 MB, free: 200 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001328/0.1527, allocations: 75.62 kB / 355.2 MB, free: 124 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.195e-05/0.1528, allocations: 4 kB / 355.2 MB, free: 120 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001487/0.1529, allocations: 51.97 kB / 355.2 MB, free: 68 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00013/0.1531, allocations: 47.83 kB / 355.3 MB, free: 20 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001308/0.1532, allocations: 101.2 kB / 355.4 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000361/0.1536, allocations: 215.4 kB / 355.6 MB, free: 15.7 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.845e-06/0.1536, allocations: 4 kB / 355.6 MB, free: 15.7 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.335e-06/0.1536, allocations: 0 / 355.6 MB, free: 15.7 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.432e-06/0.1536, allocations: 0 / 355.6 MB, free: 15.7 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0009231/0.1546, allocations: 0.5001 MB / 356.1 MB, free: 15.14 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.547e-05/0.1546, allocations: 8.031 kB / 356.1 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000142/0.1548, allocations: 24.66 kB / 356.1 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004392/0.1552, allocations: 279.6 kB / 356.4 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.061e-05/0.1552, allocations: 8.375 kB / 356.4 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.239e-05/0.1553, allocations: 12.12 kB / 356.4 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004199/0.1557, allocations: 159.5 kB / 356.6 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.247e-05/0.1557, allocations: 0 / 356.6 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.802e-05/0.1557, allocations: 7.938 kB / 356.6 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.068e-05/0.1558, allocations: 8 kB / 356.6 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001153/0.1559, allocations: 31.92 kB / 356.6 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006061/0.1565, allocations: 382.4 kB / 357 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002603/0.1568, allocations: 119.9 kB / 357.1 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.949e-05/0.1569, allocations: 42.56 kB / 357.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.334e-05/0.1569, allocations: 0 / 357.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002553/0.1572, allocations: 83.38 kB / 357.2 MB, free: 13.84 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.763e-06/0.1572, allocations: 0 / 357.2 MB, free: 13.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004466/0.1577, allocations: 149.2 kB / 357.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001316/0.1578, allocations: 166.2 kB / 357.5 MB, free: 13.48 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004389/0.1582, allocations: 330.8 kB / 357.9 MB, free: 13.15 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.309e-05/0.1583, allocations: 29.7 kB / 357.9 MB, free: 13.11 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001245/0.1584, allocations: 128.1 kB / 358 MB, free: 12.98 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.789e-05/0.1584, allocations: 15.89 kB / 358 MB, free: 12.97 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.669e-05/0.1585, allocations: 21.7 kB / 358.1 MB, free: 12.94 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001951/0.1587, allocations: 330.8 kB / 358.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.419e-05/0.1588, allocations: 23.98 kB / 358.4 MB, free: 12.59 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002176/0.159, allocations: 98.77 kB / 358.5 MB, free: 12.46 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001654/0.1592, allocations: 80.22 kB / 358.6 MB, free: 12.37 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.1592, allocations: 0 / 358.6 MB, free: 12.37 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002606/0.1594, allocations: 117.4 kB / 358.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.665e-05/0.1595, allocations: 11.98 kB / 358.7 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.1595, allocations: 320 / 358.7 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-05/0.1595, allocations: 0 / 358.7 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001132/0.1596, allocations: 27.88 kB / 358.7 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.025e-05/0.1597, allocations: 7.938 kB / 358.7 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.83e-05/0.1598, allocations: 19.83 kB / 358.8 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.074e-05/0.1598, allocations: 4 kB / 358.8 MB, free: 12.18 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,subSample1.y,subSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001855/0.16, allocations: 154.8 kB / 358.9 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.001e-05/0.1601, allocations: 65.44 kB / 359 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.925e-05/0.1602, allocations: 25.7 kB / 359 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.246e-06/0.1602, allocations: 4 kB / 359 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.1602, allocations: 0 / 359 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.1602, allocations: 3.938 kB / 359 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002673/0.1605, allocations: 237.5 kB / 359.2 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.1605, allocations: 0 / 359.2 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001379/0.1606, allocations: 23.98 kB / 359.3 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.1606, allocations: 0 / 359.3 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.44e-05/0.1607, allocations: 4 kB / 359.3 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.1607, allocations: 4 kB / 359.3 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.1607, allocations: 0 / 359.3 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002568/0.1609, allocations: 158.5 kB / 359.4 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001156/0.1611, allocations: 124.8 kB / 359.6 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.956e-05/0.1611, allocations: 0 / 359.6 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.683e-05/0.1612, allocations: 7.984 kB / 359.6 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.393e-05/0.1612, allocations: 8 kB / 359.6 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.515e-05/0.1613, allocations: 11.92 kB / 359.6 MB, free: 11.26 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002613/0.1615, allocations: 241.9 kB / 359.8 MB, free: 11.02 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1615, allocations: 0 / 359.8 MB, free: 11.02 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002792/0.1618, allocations: 28 kB / 359.8 MB, free: 11 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample1.y,sample1.y,subSample1.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 (9): * Single equations (assignments): 7 * 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.001073/0.1629, allocations: 445.8 kB / 360.3 MB, free: 10.71 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003413/0.1633, allocations: 75.84 kB / 360.4 MB, free: 10.64 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.1633, allocations: 4 kB / 360.4 MB, free: 10.63 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.04e-05/0.1634, allocations: 27.98 kB / 360.4 MB, free: 10.61 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004502/0.1638, allocations: 59.3 kB / 360.4 MB, free: 10.55 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007142/0.1645, allocations: 416.6 kB / 360.8 MB, free: 10.11 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000644/0.1652, allocations: 0.7361 MB / 361.6 MB, free: 9.348 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001307/0.1653, allocations: 25.8 kB / 361.6 MB, free: 9.316 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.18e-05/0.1654, allocations: 27.42 kB / 361.6 MB, free: 9.289 MB / 302.1 MB Notification: Performance of SimCode: time 1.293e-06/0.1654, allocations: 0 / 361.6 MB, free: 9.289 MB / 302.1 MB Notification: Performance of Templates: time 0.007235/0.1727, allocations: 2.657 MB / 364.3 MB, free: 6.66 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches