Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.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.BooleanSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|upSample1.y|upSample2.y|and1.y",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008406/0.0008406, allocations: 89.03 kB / 16.65 MB, free: 6.586 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.0009354/0.0009354, allocations: 180.2 kB / 17.56 MB, free: 6.203 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.575/1.575, allocations: 223.3 MB / 241.6 MB, free: 14.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003349/0.0003349, allocations: 4 kB / 301.4 MB, free: 5.922 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1347/0.1351, allocations: 50.41 MB / 351.8 MB, free: 3.492 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.003185/0.1383, allocations: 1.687 MB / 353.5 MB, free: 1.785 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00233/0.1407, allocations: 1.056 MB / 354.6 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001989/0.1409, allocations: 0 / 354.6 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008436/0.1418, allocations: 151.1 kB / 354.7 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003617/0.1422, allocations: 103.7 kB / 354.8 MB, free: 488 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007937/0.143, allocations: 223.3 kB / 355 MB, free: 268 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003502/0.1433, allocations: 215.4 kB / 355.3 MB, free: 52 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000192/0.1436, allocations: 52.19 kB / 355.3 MB, free: 0 / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001609/0.1437, allocations: 79.69 kB / 355.4 MB, free: 15.92 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001452/0.1439, allocations: 79.61 kB / 355.5 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.06e-05/0.1439, allocations: 11.94 kB / 355.5 MB, free: 15.83 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000144/0.1441, allocations: 39.86 kB / 355.5 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001119/0.1442, allocations: 51.81 kB / 355.6 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001184/0.1443, allocations: 101.1 kB / 355.7 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004057/0.1447, allocations: 235.4 kB / 355.9 MB, free: 15.41 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.1447, allocations: 3.938 kB / 355.9 MB, free: 15.4 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.1447, allocations: 0 / 355.9 MB, free: 15.4 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.1448, allocations: 4 kB / 355.9 MB, free: 15.4 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.001066/0.1458, allocations: 0.5119 MB / 356.4 MB, free: 14.83 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.491e-05/0.1459, allocations: 8.031 kB / 356.4 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.644e-05/0.146, allocations: 24.66 kB / 356.4 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004333/0.1464, allocations: 274.8 kB / 356.7 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.318e-05/0.1465, allocations: 12.38 kB / 356.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.126e-05/0.1465, allocations: 16.12 kB / 356.7 MB, free: 14.47 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006085/0.1471, allocations: 309.6 kB / 357 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.356e-05/0.1472, allocations: 0 / 357 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.401e-05/0.1472, allocations: 4 kB / 357 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.507e-05/0.1472, allocations: 4 kB / 357 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001566/0.1474, allocations: 59.91 kB / 357.1 MB, free: 14.08 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006149/0.148, allocations: 390.3 kB / 357.5 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004149/0.1484, allocations: 179.9 kB / 357.7 MB, free: 13.44 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001519/0.1486, allocations: 86.55 kB / 357.7 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.03e-05/0.1486, allocations: 4 kB / 357.8 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002037/0.1489, allocations: 67.39 kB / 357.8 MB, free: 13.26 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.823e-06/0.1489, allocations: 3.938 kB / 357.8 MB, free: 13.26 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0006147/0.1495, allocations: 229.3 kB / 358 MB, free: 13.03 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001616/0.1497, allocations: 148.8 kB / 358.2 MB, free: 12.85 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003609/0.15, allocations: 272.9 kB / 358.5 MB, free: 12.58 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.531e-05/0.1501, allocations: 33.64 kB / 358.5 MB, free: 12.54 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001008/0.1502, allocations: 116.7 kB / 358.6 MB, free: 12.42 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.337e-05/0.1502, allocations: 31.64 kB / 358.6 MB, free: 12.39 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.523e-05/0.1503, allocations: 29.7 kB / 358.7 MB, free: 12.36 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001665/0.1504, allocations: 342.8 kB / 359 MB, free: 12.01 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.899e-05/0.1505, allocations: 36.45 kB / 359 MB, free: 11.98 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001794/0.1507, allocations: 170.9 kB / 359.2 MB, free: 11.75 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002722/0.151, allocations: 203.3 kB / 359.4 MB, free: 11.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.151, allocations: 0 / 359.4 MB, free: 11.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003454/0.1514, allocations: 225.3 kB / 359.6 MB, free: 11.27 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.349e-05/0.1514, allocations: 4 kB / 359.6 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.1514, allocations: 7.938 kB / 359.6 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.446e-05/0.1515, allocations: 8 kB / 359.6 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.595e-05/0.1516, allocations: 19.92 kB / 359.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.251e-05/0.1516, allocations: 8.312 kB / 359.7 MB, free: 11.22 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000114/0.1517, allocations: 23.83 kB / 359.7 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.862e-05/0.1517, allocations: 16 kB / 359.7 MB, free: 11.18 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.0001693/0.1519, allocations: 168.7 kB / 359.9 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001818/0.1521, allocations: 125.3 kB / 360 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.462e-05/0.1522, allocations: 25.72 kB / 360 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.343e-06/0.1522, allocations: 7.938 kB / 360 MB, free: 10.85 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.398e-06/0.1522, allocations: 3.984 kB / 360 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.008e-05/0.1522, allocations: 7.922 kB / 360 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002423/0.1525, allocations: 245.4 kB / 360.3 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.1525, allocations: 4 kB / 360.3 MB, free: 10.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.692e-05/0.1525, allocations: 11.98 kB / 360.3 MB, free: 10.53 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/0.1525, allocations: 4 kB / 360.3 MB, free: 10.53 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.531e-05/0.1526, allocations: 4 kB / 360.3 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/0.1526, allocations: 4.312 kB / 360.3 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1526, allocations: 0 / 360.3 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003603/0.1529, allocations: 230.3 kB / 360.5 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001301/0.1531, allocations: 120.8 kB / 360.6 MB, free: 10.13 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.945e-05/0.1531, allocations: 11.98 kB / 360.7 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.98e-05/0.1532, allocations: 4 kB / 360.7 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.9e-05/0.1533, allocations: 12.08 kB / 360.7 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.924e-05/0.1533, allocations: 7.938 kB / 360.7 MB, free: 10.1 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002039/0.1535, allocations: 196.5 kB / 360.9 MB, free: 9.902 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1535, allocations: 0 / 360.9 MB, free: 9.902 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003124/0.1538, allocations: 43.94 kB / 360.9 MB, free: 9.859 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.001181/0.155, allocations: 437.6 kB / 361.3 MB, free: 9.582 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003358/0.1554, allocations: 138.6 kB / 361.5 MB, free: 9.449 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.989e-06/0.1554, allocations: 5.062 kB / 361.5 MB, free: 9.445 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.187e-05/0.1555, allocations: 19.98 kB / 361.5 MB, free: 9.426 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005297/0.156, allocations: 127 kB / 361.6 MB, free: 9.305 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007557/0.1568, allocations: 440.6 kB / 362.1 MB, free: 8.836 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003947/0.1572, allocations: 0.756 MB / 362.8 MB, free: 8.055 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.713e-05/0.1573, allocations: 26.17 kB / 362.8 MB, free: 8.031 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.981e-05/0.1573, allocations: 31.42 kB / 362.9 MB, free: 8 MB / 302.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1573, allocations: 0 / 362.9 MB, free: 8 MB / 302.1 MB Notification: Performance of Templates: time 0.007019/0.1644, allocations: 2.814 MB / 365.7 MB, free: 5.207 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches