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.0009984/0.0009987, allocations: 94.55 kB / 16.3 MB, free: 5.992 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.0009588/0.000959, allocations: 181.3 kB / 17.19 MB, free: 5.906 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.539/1.539, allocations: 223.2 MB / 241.1 MB, free: 5.477 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002737/0.0002737, allocations: 11.39 kB / 300.7 MB, free: 5.992 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.128/0.1283, allocations: 50.43 MB / 351.1 MB, free: 11.78 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.00254/0.1309, allocations: 1.644 MB / 352.8 MB, free: 10.12 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00167/0.1326, allocations: 1.01 MB / 353.8 MB, free: 9.105 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001673/0.1328, allocations: 7.938 kB / 353.8 MB, free: 9.098 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006043/0.1334, allocations: 123.7 kB / 353.9 MB, free: 8.977 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00025/0.1336, allocations: 99.66 kB / 354 MB, free: 8.879 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006711/0.1343, allocations: 206.2 kB / 354.2 MB, free: 8.68 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002631/0.1346, allocations: 139.6 kB / 354.4 MB, free: 8.543 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001474/0.1348, allocations: 36.28 kB / 354.4 MB, free: 8.508 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001461/0.1349, allocations: 75.69 kB / 354.5 MB, free: 8.434 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001373/0.135, allocations: 79.61 kB / 354.5 MB, free: 8.355 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.199e-05/0.1351, allocations: 8 kB / 354.6 MB, free: 8.348 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001218/0.1352, allocations: 27.98 kB / 354.6 MB, free: 8.32 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.341e-05/0.1353, allocations: 47.83 kB / 354.6 MB, free: 8.273 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.632e-05/0.1354, allocations: 53.58 kB / 354.7 MB, free: 8.215 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000246/0.1356, allocations: 183.6 kB / 354.9 MB, free: 8.035 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.495e-06/0.1356, allocations: 0 / 354.9 MB, free: 8.035 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.1356, allocations: 0 / 354.9 MB, free: 8.035 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.043e-06/0.1356, allocations: 0 / 354.9 MB, free: 8.035 MB / 286.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.0008346/0.1365, allocations: 0.504 MB / 355.4 MB, free: 7.477 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.814e-05/0.1365, allocations: 12.03 kB / 355.4 MB, free: 7.465 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.579e-05/0.1366, allocations: 35.52 kB / 355.4 MB, free: 7.43 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004318/0.1371, allocations: 269.6 kB / 355.7 MB, free: 7.129 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.473e-05/0.1371, allocations: 8 kB / 355.7 MB, free: 7.121 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.901e-05/0.1371, allocations: 16 kB / 355.7 MB, free: 7.105 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006141/0.1378, allocations: 291 kB / 356 MB, free: 6.797 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.517e-05/0.1378, allocations: 3.938 kB / 356 MB, free: 6.793 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.554e-05/0.1378, allocations: 7.953 kB / 356 MB, free: 6.785 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.597e-06/0.1378, allocations: 8 kB / 356 MB, free: 6.777 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001568/0.138, allocations: 59.91 kB / 356.1 MB, free: 6.719 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006987/0.1387, allocations: 378.3 kB / 356.4 MB, free: 6.293 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003263/0.139, allocations: 176 kB / 356.6 MB, free: 6.094 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.752e-05/0.1391, allocations: 12.17 kB / 356.6 MB, free: 6.082 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001879/0.1393, allocations: 83.36 kB / 356.7 MB, free: 5.988 MB / 286.1 MB Notification: Performance of pre-optimization done (n=22): time 1.804e-06/0.1393, allocations: 0 / 356.7 MB, free: 5.988 MB / 286.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005493/0.1398, allocations: 217.3 kB / 356.9 MB, free: 5.77 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000122/0.14, allocations: 144.4 kB / 357 MB, free: 5.598 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002974/0.1403, allocations: 272.9 kB / 357.3 MB, free: 5.324 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.112e-05/0.1403, allocations: 29.7 kB / 357.3 MB, free: 5.289 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001032/0.1404, allocations: 120.6 kB / 357.5 MB, free: 5.168 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.883e-05/0.1405, allocations: 35.69 kB / 357.5 MB, free: 5.133 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.759e-06/0.1405, allocations: 4 kB / 357.5 MB, free: 5.129 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000167/0.1407, allocations: 342.8 kB / 357.8 MB, free: 4.785 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.474e-05/0.1408, allocations: 32.45 kB / 357.9 MB, free: 4.754 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002907/0.1411, allocations: 174 kB / 358 MB, free: 4.523 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001302/0.1412, allocations: 55.97 kB / 358.1 MB, free: 4.469 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.1412, allocations: 0 / 358.1 MB, free: 4.469 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003715/0.1416, allocations: 221 kB / 358.3 MB, free: 4.246 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.461e-05/0.1416, allocations: 8 kB / 358.3 MB, free: 4.238 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.754e-05/0.1417, allocations: 4.531 kB / 358.3 MB, free: 4.234 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.469e-05/0.1417, allocations: 8 kB / 358.3 MB, free: 4.227 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001029/0.1418, allocations: 23.92 kB / 358.3 MB, free: 4.203 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.712e-05/0.1418, allocations: 15.92 kB / 358.4 MB, free: 4.188 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001196/0.142, allocations: 19.84 kB / 358.4 MB, free: 4.168 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.235e-05/0.142, allocations: 16 kB / 358.4 MB, free: 4.152 MB / 286.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 ($whenCondition1,$PRE.table1.combiTimeTable.nextTimeEvent,table1.y,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,and1.y,and1.u2,and1.u1,upSample2.u_super,upSample2.b_super,$CLKPRE.upSample2.b_super,upSample2.y,upSample1.u_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample1.y,upSample2.b,$CLKPRE.upSample2.b,upSample2.dummy,upSample2.u,upSample1.b,$CLKPRE.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001814/0.1422, allocations: 160 kB / 358.6 MB, free: 3.988 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00019/0.1424, allocations: 133.6 kB / 358.7 MB, free: 3.852 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.649e-05/0.1425, allocations: 33.7 kB / 358.7 MB, free: 3.816 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.1425, allocations: 0 / 358.7 MB, free: 3.816 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.007e-06/0.1425, allocations: 4 kB / 358.7 MB, free: 3.812 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.1425, allocations: 0 / 358.7 MB, free: 3.812 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002244/0.1427, allocations: 241.4 kB / 359 MB, free: 3.527 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.1427, allocations: 0 / 359 MB, free: 3.527 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.889e-05/0.1428, allocations: 20.23 kB / 359 MB, free: 3.508 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.1428, allocations: 3.953 kB / 359 MB, free: 3.504 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.421e-05/0.1428, allocations: 4 kB / 359 MB, free: 3.5 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.1428, allocations: 4 kB / 359 MB, free: 3.496 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1428, allocations: 4 kB / 359 MB, free: 3.492 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003417/0.1432, allocations: 246.3 kB / 359.2 MB, free: 3.219 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001157/0.1433, allocations: 132.7 kB / 359.4 MB, free: 3.07 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.434e-05/0.1433, allocations: 0 / 359.4 MB, free: 3.07 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.308e-05/0.1434, allocations: 12 kB / 359.4 MB, free: 3.059 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.901e-05/0.1435, allocations: 11.92 kB / 359.4 MB, free: 3.047 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.188e-05/0.1435, allocations: 12 kB / 359.4 MB, free: 3.035 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001809/0.1437, allocations: 192.5 kB / 359.6 MB, free: 2.844 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1437, allocations: 0 / 359.6 MB, free: 2.844 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002942/0.144, allocations: 40 kB / 359.6 MB, free: 2.805 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001098/0.1451, allocations: 442 kB / 360.1 MB, free: 2.527 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003492/0.1455, allocations: 135.7 kB / 360.2 MB, free: 2.395 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.616e-06/0.1455, allocations: 0 / 360.2 MB, free: 2.395 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 8.169e-05/0.1456, allocations: 27.98 kB / 360.2 MB, free: 2.367 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005111/0.1461, allocations: 113.6 kB / 360.3 MB, free: 2.258 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007809/0.1469, allocations: 424.6 kB / 360.7 MB, free: 1.805 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004349/0.1473, allocations: 0.7599 MB / 361.5 MB, free: 1.016 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 9.29e-05/0.1474, allocations: 37.86 kB / 361.5 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.155e-05/0.1475, allocations: 19.44 kB / 361.6 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1475, allocations: 0 / 361.6 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of Templates: time 0.007329/0.1548, allocations: 2.734 MB / 364.3 MB, free: 14.25 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","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches