Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.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.BooleanSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|upSample1.y|upSample2.y|and1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|upSample1.y|upSample2.y|and1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001293/0.001293, allocations: 103.2 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001389/0.001389, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.528/1.528, allocations: 227.4 MB / 246.3 MB, free: 9.164 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001584/0.001585, allocations: 63.83 kB / 306.3 MB, free: 0.8633 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1368/0.1384, allocations: 50.53 MB / 356.8 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.005035/0.1435, allocations: 2.055 MB / 358.8 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0023/0.1459, allocations: 1.239 MB / 360.1 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002545/0.1462, allocations: 7.938 kB / 360.1 MB, free: 11 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009643/0.1472, allocations: 147.6 kB / 360.2 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005894/0.1478, allocations: 135.6 kB / 360.4 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009002/0.1487, allocations: 187.1 kB / 360.6 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003571/0.1491, allocations: 235.4 kB / 360.8 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001966/0.1493, allocations: 40.27 kB / 360.8 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001522/0.1495, allocations: 87.56 kB / 360.9 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000163/0.1496, allocations: 95.55 kB / 361 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.243e-05/0.1497, allocations: 4 kB / 361 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001547/0.1498, allocations: 59.91 kB / 361.1 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.505e-05/0.1499, allocations: 43.83 kB / 361.1 MB, free: 9.992 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001122/0.15, allocations: 87.41 kB / 361.2 MB, free: 9.906 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003485/0.1504, allocations: 247.5 kB / 361.4 MB, free: 9.664 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.888e-06/0.1504, allocations: 0 / 361.4 MB, free: 9.664 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1504, allocations: 7.875 kB / 361.4 MB, free: 9.656 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.173e-06/0.1504, allocations: 0 / 361.4 MB, free: 9.656 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.001105/0.1516, allocations: 0.5494 MB / 362 MB, free: 9.055 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.544e-05/0.1516, allocations: 8.031 kB / 362 MB, free: 9.047 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.727e-05/0.1517, allocations: 28.56 kB / 362 MB, free: 9.02 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004257/0.1521, allocations: 286.7 kB / 362.3 MB, free: 8.695 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.347e-05/0.1522, allocations: 8.375 kB / 362.3 MB, free: 8.688 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.62e-05/0.1522, allocations: 16.12 kB / 362.3 MB, free: 8.672 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006235/0.1529, allocations: 294.3 kB / 362.6 MB, free: 8.359 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.73e-05/0.1529, allocations: 4 kB / 362.6 MB, free: 8.355 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.943e-05/0.1529, allocations: 7.984 kB / 362.6 MB, free: 8.348 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.545e-05/0.1529, allocations: 4 kB / 362.6 MB, free: 8.344 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00018/0.1531, allocations: 63.89 kB / 362.7 MB, free: 8.281 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006241/0.1538, allocations: 386.3 kB / 363.1 MB, free: 7.848 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003763/0.1542, allocations: 176 kB / 363.2 MB, free: 7.648 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001452/0.1543, allocations: 82.53 kB / 363.3 MB, free: 7.559 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.425e-05/0.1544, allocations: 4 kB / 363.3 MB, free: 7.555 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001795/0.1545, allocations: 75.39 kB / 363.4 MB, free: 7.469 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 4.539e-06/0.1546, allocations: 0 / 363.4 MB, free: 7.469 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005582/0.1551, allocations: 237.4 kB / 363.6 MB, free: 7.23 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001267/0.1553, allocations: 144.5 kB / 363.8 MB, free: 7.059 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003518/0.1556, allocations: 284.9 kB / 364.1 MB, free: 6.773 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.28e-05/0.1557, allocations: 29.7 kB / 364.1 MB, free: 6.738 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.776e-05/0.1558, allocations: 116.7 kB / 364.2 MB, free: 6.617 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.12e-05/0.1558, allocations: 35.64 kB / 364.2 MB, free: 6.582 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.14e-05/0.1559, allocations: 49.94 kB / 364.3 MB, free: 6.527 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001284/0.156, allocations: 338.8 kB / 364.6 MB, free: 6.188 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.004e-05/0.1561, allocations: 36.44 kB / 364.6 MB, free: 6.152 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001887/0.1563, allocations: 174.7 kB / 364.8 MB, free: 5.922 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002421/0.1566, allocations: 207.2 kB / 365 MB, free: 5.664 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.52e-06/0.1566, allocations: 4 kB / 365 MB, free: 5.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003518/0.1569, allocations: 217.5 kB / 365.2 MB, free: 5.441 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.977e-05/0.157, allocations: 12.06 kB / 365.2 MB, free: 5.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.157, allocations: 4 kB / 365.3 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.931e-05/0.157, allocations: 7.938 kB / 365.3 MB, free: 5.418 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001061/0.1571, allocations: 27.92 kB / 365.3 MB, free: 5.391 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/0.1571, allocations: 4 kB / 365.3 MB, free: 5.387 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000111/0.1573, allocations: 19.84 kB / 365.3 MB, free: 5.367 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.471e-05/0.1573, allocations: 12 kB / 365.3 MB, free: 5.355 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition1,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,and1.y,and1.u2,and1.u1,upSample2.u_super,$CLKPRE.upSample2.b_super,upSample2.b_super,upSample2.y,upSample1.u_super,$CLKPRE.upSample1.b_super,upSample1.b_super,upSample1.y,$CLKPRE.upSample2.b,upSample2.b,upSample2.dummy,upSample2.u,$CLKPRE.upSample1.b,upSample1.b,upSample1.dummy,upSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.0001646/0.1574, allocations: 171.9 kB / 365.5 MB, free: 5.18 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001928/0.1576, allocations: 129.3 kB / 365.6 MB, free: 5.047 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.202e-05/0.1577, allocations: 29.7 kB / 365.6 MB, free: 5.016 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/0.1577, allocations: 4 kB / 365.6 MB, free: 5.012 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.1578, allocations: 0 / 365.6 MB, free: 5.012 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.182e-06/0.1578, allocations: 7.938 kB / 365.7 MB, free: 5.004 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002406/0.158, allocations: 249.4 kB / 365.9 MB, free: 4.711 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.167e-06/0.158, allocations: 7.938 kB / 365.9 MB, free: 4.703 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.073e-05/0.1581, allocations: 8.453 kB / 365.9 MB, free: 4.695 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.148e-06/0.1581, allocations: 4 kB / 365.9 MB, free: 4.691 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.852e-05/0.1581, allocations: 8.125 kB / 365.9 MB, free: 4.684 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.1581, allocations: 8 kB / 365.9 MB, free: 4.676 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.1581, allocations: 0 / 365.9 MB, free: 4.676 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000359/0.1585, allocations: 237.7 kB / 366.2 MB, free: 4.422 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000105/0.1586, allocations: 116.8 kB / 366.3 MB, free: 4.289 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.112e-05/0.1586, allocations: 8 kB / 366.3 MB, free: 4.281 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.626e-05/0.1587, allocations: 11.98 kB / 366.3 MB, free: 4.27 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.738e-05/0.1588, allocations: 0 / 366.3 MB, free: 4.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.771e-05/0.1588, allocations: 12 kB / 366.3 MB, free: 4.258 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002097/0.159, allocations: 208.4 kB / 366.5 MB, free: 4.055 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1591, allocations: 0 / 366.5 MB, free: 4.055 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003359/0.1594, allocations: 47.94 kB / 366.6 MB, free: 4.008 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: 20 ($whenCondition1,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,and1.u1,and1.u2,and1.y,sample1.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent) * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * 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.001063/0.1605, allocations: 420.2 kB / 367 MB, free: 3.73 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003423/0.1608, allocations: 139.8 kB / 367.1 MB, free: 3.594 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.1608, allocations: 0 / 367.1 MB, free: 3.594 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.44e-05/0.1609, allocations: 24 kB / 367.1 MB, free: 3.57 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005342/0.1615, allocations: 118.5 kB / 367.3 MB, free: 3.457 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007557/0.1622, allocations: 459.2 kB / 367.7 MB, free: 2.969 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003813/0.1626, allocations: 0.7599 MB / 368.5 MB, free: 2.184 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.224e-05/0.1627, allocations: 30.27 kB / 368.5 MB, free: 2.156 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.077e-05/0.1628, allocations: 27.44 kB / 368.5 MB, free: 2.129 MB / 302.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1628, allocations: 0 / 368.5 MB, free: 2.129 MB / 302.1 MB Notification: Performance of Templates: time 0.236/0.3988, allocations: 2.875 MB / 371.4 MB, free: 19.14 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/UpSample/UpSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches