Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.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.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009532/0.0009531, allocations: 93.22 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001579/0.001579, allocations: 203.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.581/1.581, allocations: 227.7 MB / 246.8 MB, free: 11.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003525/0.0003526, allocations: 4.281 kB / 307.7 MB, free: 0.8086 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1389/0.1393, allocations: 51.53 MB / 359.2 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.002508/0.1419, allocations: 1.595 MB / 360.8 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002264/0.1442, allocations: 1.232 MB / 362.1 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001383/0.1443, allocations: 0 / 362.1 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003544/0.1447, allocations: 67.73 kB / 362.1 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003477/0.1451, allocations: 107.6 kB / 362.2 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006424/0.1457, allocations: 195.6 kB / 362.4 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002251/0.1459, allocations: 171.5 kB / 362.6 MB, free: 9.902 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001157/0.1461, allocations: 29.53 kB / 362.6 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001053/0.1462, allocations: 71.62 kB / 362.7 MB, free: 9.805 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001103/0.1463, allocations: 67.69 kB / 362.8 MB, free: 9.738 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.928e-05/0.1463, allocations: 8 kB / 362.8 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001399/0.1465, allocations: 63.89 kB / 362.8 MB, free: 9.668 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.134e-05/0.1466, allocations: 43.78 kB / 362.9 MB, free: 9.625 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001187/0.1467, allocations: 93.19 kB / 363 MB, free: 9.527 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002873/0.147, allocations: 231.4 kB / 363.2 MB, free: 9.301 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.147, allocations: 0 / 363.2 MB, free: 9.301 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.147, allocations: 0 / 363.2 MB, free: 9.301 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.057e-06/0.147, allocations: 0 / 363.2 MB, free: 9.301 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.0007904/0.1478, allocations: 0.5001 MB / 363.7 MB, free: 8.746 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.695e-05/0.1479, allocations: 16.03 kB / 363.7 MB, free: 8.73 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.193e-05/0.1479, allocations: 24.66 kB / 363.7 MB, free: 8.707 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00035/0.1483, allocations: 279.6 kB / 364 MB, free: 8.395 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.246e-05/0.1483, allocations: 8.375 kB / 364 MB, free: 8.387 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.391e-05/0.1484, allocations: 12.12 kB / 364 MB, free: 8.375 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003525/0.1487, allocations: 163.2 kB / 364.2 MB, free: 8.191 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.1487, allocations: 3.938 kB / 364.2 MB, free: 8.188 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.934e-05/0.1488, allocations: 8 kB / 364.2 MB, free: 8.18 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.042e-06/0.1488, allocations: 0 / 364.2 MB, free: 8.18 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001107/0.1489, allocations: 27.98 kB / 364.2 MB, free: 8.152 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005475/0.1494, allocations: 390.4 kB / 364.6 MB, free: 7.715 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000243/0.1497, allocations: 115.9 kB / 364.7 MB, free: 7.574 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.739e-05/0.1498, allocations: 50.56 kB / 364.8 MB, free: 7.516 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.014e-05/0.1498, allocations: 4 kB / 364.8 MB, free: 7.512 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001973/0.1501, allocations: 75.31 kB / 364.9 MB, free: 7.426 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.482e-06/0.1501, allocations: 0 / 364.9 MB, free: 7.426 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003952/0.1505, allocations: 157.5 kB / 365 MB, free: 7.266 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.827e-05/0.1506, allocations: 162.2 kB / 365.2 MB, free: 7.07 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000347/0.1509, allocations: 338.6 kB / 365.5 MB, free: 6.73 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.097e-05/0.151, allocations: 25.7 kB / 365.5 MB, free: 6.699 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.277e-05/0.1511, allocations: 132 kB / 365.6 MB, free: 6.566 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.394e-05/0.1511, allocations: 15.81 kB / 365.7 MB, free: 6.551 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.051e-05/0.1511, allocations: 21.66 kB / 365.7 MB, free: 6.523 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001723/0.1513, allocations: 342.8 kB / 366 MB, free: 6.18 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.888e-05/0.1514, allocations: 31.86 kB / 366.1 MB, free: 6.148 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000108/0.1515, allocations: 82.84 kB / 366.1 MB, free: 6.043 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001499/0.1516, allocations: 84.22 kB / 366.2 MB, free: 5.945 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.1517, allocations: 0 / 366.2 MB, free: 5.945 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002246/0.1519, allocations: 121.4 kB / 366.3 MB, free: 5.82 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/0.1519, allocations: 8 kB / 366.3 MB, free: 5.812 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.1519, allocations: 0 / 366.3 MB, free: 5.812 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.33e-05/0.152, allocations: 128 / 366.3 MB, free: 5.812 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000111/0.1521, allocations: 23.98 kB / 366.4 MB, free: 5.789 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.985e-06/0.1521, allocations: 3.984 kB / 366.4 MB, free: 5.785 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.294e-05/0.1522, allocations: 20.16 kB / 366.4 MB, free: 5.766 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.219e-05/0.1522, allocations: 7.984 kB / 366.4 MB, free: 5.758 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.0001907/0.1524, allocations: 161.6 kB / 366.6 MB, free: 5.59 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.081e-05/0.1525, allocations: 73.44 kB / 366.6 MB, free: 5.512 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.084e-05/0.1525, allocations: 25.7 kB / 366.7 MB, free: 5.488 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.1526, allocations: 8.062 kB / 366.7 MB, free: 5.48 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.617e-06/0.1526, allocations: 0 / 366.7 MB, free: 5.48 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.693e-06/0.1526, allocations: 7.875 kB / 366.7 MB, free: 5.473 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002283/0.1528, allocations: 237.6 kB / 366.9 MB, free: 5.191 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.1528, allocations: 4 kB / 366.9 MB, free: 5.188 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.067e-05/0.1529, allocations: 15.98 kB / 366.9 MB, free: 5.172 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.1529, allocations: 0 / 366.9 MB, free: 5.172 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.514e-05/0.1529, allocations: 4 kB / 366.9 MB, free: 5.168 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.1529, allocations: 0 / 366.9 MB, free: 5.168 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.153, allocations: 0 / 366.9 MB, free: 5.168 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00027/0.1532, allocations: 170.4 kB / 367.1 MB, free: 4.977 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001148/0.1534, allocations: 116.8 kB / 367.2 MB, free: 4.844 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.14e-05/0.1534, allocations: 4 kB / 367.2 MB, free: 4.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.239e-05/0.1535, allocations: 11.98 kB / 367.2 MB, free: 4.828 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.281e-05/0.1536, allocations: 4 kB / 367.2 MB, free: 4.824 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.44e-05/0.1536, allocations: 11.92 kB / 367.2 MB, free: 4.812 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002381/0.1538, allocations: 249.9 kB / 367.5 MB, free: 4.57 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1538, allocations: 3.938 kB / 367.5 MB, free: 4.566 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002681/0.1541, allocations: 36 kB / 367.5 MB, free: 4.531 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.001023/0.1551, allocations: 423.3 kB / 367.9 MB, free: 4.246 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000249/0.1554, allocations: 75.89 kB / 368 MB, free: 4.172 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.1554, allocations: 4.25 kB / 368 MB, free: 4.168 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.468e-05/0.1555, allocations: 27.98 kB / 368 MB, free: 4.141 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004856/0.156, allocations: 60.16 kB / 368.1 MB, free: 4.078 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00075/0.1568, allocations: 416.4 kB / 368.5 MB, free: 3.641 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003947/0.1572, allocations: 0.7478 MB / 369.2 MB, free: 2.867 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001111/0.1573, allocations: 25.53 kB / 369.3 MB, free: 2.84 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.061e-05/0.1574, allocations: 23.42 kB / 369.3 MB, free: 2.82 MB / 302.1 MB Notification: Performance of SimCode: time 4.6e-07/0.1574, allocations: 0 / 369.3 MB, free: 2.82 MB / 302.1 MB Notification: Performance of Templates: time 0.007515/0.1649, allocations: 2.695 MB / 372 MB, free: 144 kB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches