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.001266/0.001266, allocations: 112.8 kB / 17.69 MB, free: 5.312 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.001307/0.001307, allocations: 192 kB / 18.63 MB, free: 4.379 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.457/1.457, allocations: 222.9 MB / 242.3 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001032/0.001032, allocations: 47.23 kB / 302.1 MB, free: 5.195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1034, allocations: 49.45 MB / 351.5 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.003812/0.1073, allocations: 1.977 MB / 353.5 MB, free: 1.723 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001951/0.1092, allocations: 1.103 MB / 354.6 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002035/0.1095, allocations: 7.938 kB / 354.6 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000714/0.1102, allocations: 147.5 kB / 354.7 MB, free: 472 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003833/0.1106, allocations: 119.5 kB / 354.9 MB, free: 352 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007819/0.1114, allocations: 246.3 kB / 355.1 MB, free: 108 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003821/0.1118, allocations: 227.4 kB / 355.3 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000225/0.112, allocations: 52.28 kB / 355.4 MB, free: 15.83 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001836/0.1122, allocations: 87.61 kB / 355.5 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001618/0.1124, allocations: 99.55 kB / 355.6 MB, free: 15.65 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.592e-05/0.1124, allocations: 12 kB / 355.6 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002368/0.1127, allocations: 59.91 kB / 355.6 MB, free: 15.58 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.815e-05/0.1128, allocations: 55.81 kB / 355.7 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001114/0.1129, allocations: 91.42 kB / 355.8 MB, free: 15.43 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004304/0.1133, allocations: 251.1 kB / 356 MB, free: 15.19 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.448e-06/0.1134, allocations: 3.984 kB / 356 MB, free: 15.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.265e-06/0.1134, allocations: 0 / 356 MB, free: 15.18 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.153e-06/0.1134, allocations: 0 / 356 MB, free: 15.18 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.0008628/0.1143, allocations: 0.5429 MB / 356.6 MB, free: 14.59 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.548e-05/0.1143, allocations: 11.89 kB / 356.6 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.367e-05/0.1144, allocations: 24.66 kB / 356.6 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003485/0.1147, allocations: 286.8 kB / 356.9 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.264e-05/0.1148, allocations: 12.38 kB / 356.9 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.359e-05/0.1148, allocations: 16.12 kB / 356.9 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005168/0.1153, allocations: 306.5 kB / 357.2 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.213e-05/0.1153, allocations: 0 / 357.2 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.656e-05/0.1154, allocations: 7.938 kB / 357.2 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.071e-06/0.1154, allocations: 8 kB / 357.2 MB, free: 13.87 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001405/0.1155, allocations: 63.89 kB / 357.3 MB, free: 13.81 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005174/0.116, allocations: 386.2 kB / 357.7 MB, free: 13.38 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003141/0.1164, allocations: 172 kB / 357.8 MB, free: 13.18 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001366/0.1165, allocations: 86.48 kB / 357.9 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.193e-05/0.1166, allocations: 3.984 kB / 357.9 MB, free: 13.08 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001702/0.1167, allocations: 87.39 kB / 358 MB, free: 12.98 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.623e-06/0.1167, allocations: 0 / 358 MB, free: 12.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005001/0.1173, allocations: 221.5 kB / 358.2 MB, free: 12.76 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001123/0.1174, allocations: 140.5 kB / 358.4 MB, free: 12.59 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002787/0.1177, allocations: 276.9 kB / 358.6 MB, free: 12.32 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.367e-05/0.1177, allocations: 29.7 kB / 358.7 MB, free: 12.28 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.117e-05/0.1178, allocations: 112.7 kB / 358.8 MB, free: 12.17 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.642e-05/0.1178, allocations: 43.62 kB / 358.8 MB, free: 12.12 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.752e-05/0.1179, allocations: 49.94 kB / 358.9 MB, free: 12.07 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.118, allocations: 334.8 kB / 359.2 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.35e-05/0.1181, allocations: 36.45 kB / 359.2 MB, free: 11.7 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001678/0.1183, allocations: 175.4 kB / 359.4 MB, free: 11.47 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002924/0.1186, allocations: 199.2 kB / 359.6 MB, free: 11.22 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.1186, allocations: 0 / 359.6 MB, free: 11.22 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003271/0.119, allocations: 225 kB / 359.8 MB, free: 10.99 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/0.119, allocations: 8 kB / 359.8 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/0.119, allocations: 4.609 kB / 359.8 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.266e-05/0.119, allocations: 8 kB / 359.8 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.15e-05/0.1191, allocations: 27.92 kB / 359.9 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.098e-05/0.1191, allocations: 7.984 kB / 359.9 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001055/0.1192, allocations: 23.83 kB / 359.9 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.518e-05/0.1193, allocations: 12 kB / 359.9 MB, free: 10.9 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.0001508/0.1194, allocations: 171.9 kB / 360.1 MB, free: 10.73 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000171/0.1196, allocations: 125.6 kB / 360.2 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.184e-05/0.1197, allocations: 29.72 kB / 360.2 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.1197, allocations: 4 kB / 360.2 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.1197, allocations: 0 / 360.2 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.1197, allocations: 8.016 kB / 360.2 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002707/0.12, allocations: 253.3 kB / 360.5 MB, free: 10.26 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.12, allocations: 3.938 kB / 360.5 MB, free: 10.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.427e-05/0.12, allocations: 7.984 kB / 360.5 MB, free: 10.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.987e-06/0.12, allocations: 4 kB / 360.5 MB, free: 10.24 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.372e-05/0.1201, allocations: 4 kB / 360.5 MB, free: 10.24 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.1201, allocations: 4 kB / 360.5 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.1201, allocations: 3.938 kB / 360.5 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003341/0.1204, allocations: 226.5 kB / 360.7 MB, free: 9.984 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001/0.1205, allocations: 112.9 kB / 360.8 MB, free: 9.855 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.549e-05/0.1206, allocations: 8 kB / 360.8 MB, free: 9.848 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.861e-05/0.1206, allocations: 11.98 kB / 360.9 MB, free: 9.836 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.995e-05/0.1207, allocations: 0 / 360.9 MB, free: 9.836 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.85e-05/0.1207, allocations: 12 kB / 360.9 MB, free: 9.824 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001824/0.1209, allocations: 200.5 kB / 361.1 MB, free: 9.625 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1209, allocations: 0 / 361.1 MB, free: 9.625 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003215/0.1212, allocations: 47.92 kB / 361.1 MB, free: 9.578 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.0009871/0.1222, allocations: 424.9 kB / 361.5 MB, free: 9.312 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003126/0.1226, allocations: 139.8 kB / 361.7 MB, free: 9.176 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.1226, allocations: 3.938 kB / 361.7 MB, free: 9.172 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.148e-05/0.1226, allocations: 27.94 kB / 361.7 MB, free: 9.145 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005275/0.1232, allocations: 119.7 kB / 361.8 MB, free: 9.031 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006724/0.1239, allocations: 388.6 kB / 362.2 MB, free: 8.617 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003433/0.1242, allocations: 0.7558 MB / 362.9 MB, free: 7.832 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.76e-05/0.1243, allocations: 30.16 kB / 363 MB, free: 7.801 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.073e-05/0.1244, allocations: 27.42 kB / 363 MB, free: 7.773 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1244, allocations: 0 / 363 MB, free: 7.773 MB / 302.1 MB Notification: Performance of Templates: time 0.007108/0.1315, allocations: 3 MB / 366 MB, free: 4.801 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/UpSample/UpSample.csv","/var/lib/jenkins1/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