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.001276/0.001276, allocations: 117.7 kB / 17.7 MB, free: 5.293 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.001275/0.001275, allocations: 191 kB / 18.63 MB, free: 4.367 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.495/1.495, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001022/0.001022, allocations: 47.48 kB / 302.1 MB, free: 5.168 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1039, allocations: 49.44 MB / 351.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.003609/0.1075, allocations: 1.97 MB / 353.5 MB, free: 1.707 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00195/0.1095, allocations: 1.107 MB / 354.6 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001682/0.1097, allocations: 7.938 kB / 354.6 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000701/0.1105, allocations: 155.5 kB / 354.7 MB, free: 444 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003209/0.1108, allocations: 118.2 kB / 354.9 MB, free: 328 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007314/0.1115, allocations: 242.3 kB / 355.1 MB, free: 88 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002907/0.1118, allocations: 223.4 kB / 355.3 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001493/0.112, allocations: 48.3 kB / 355.4 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001245/0.1121, allocations: 95.61 kB / 355.5 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001374/0.1123, allocations: 95.48 kB / 355.6 MB, free: 15.63 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.105e-05/0.1123, allocations: 12 kB / 355.6 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001559/0.1125, allocations: 59.95 kB / 355.6 MB, free: 15.56 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.442e-05/0.1126, allocations: 55.83 kB / 355.7 MB, free: 15.51 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001033/0.1127, allocations: 91.41 kB / 355.8 MB, free: 15.42 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003545/0.113, allocations: 251.1 kB / 356 MB, free: 15.17 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.113, allocations: 0 / 356 MB, free: 15.17 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.1131, allocations: 0 / 356 MB, free: 15.17 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.242e-06/0.1131, allocations: 4 kB / 356 MB, free: 15.17 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.001013/0.1141, allocations: 0.539 MB / 356.6 MB, free: 14.57 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.446e-05/0.1141, allocations: 11.89 kB / 356.6 MB, free: 14.56 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.246e-05/0.1142, allocations: 28.66 kB / 356.6 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004017/0.1146, allocations: 286.8 kB / 356.9 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.356e-05/0.1147, allocations: 12.38 kB / 356.9 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.108e-05/0.1147, allocations: 16.12 kB / 356.9 MB, free: 14.19 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005558/0.1153, allocations: 302.9 kB / 357.2 MB, free: 13.87 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.1153, allocations: 3.938 kB / 357.2 MB, free: 13.87 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.29e-05/0.1153, allocations: 19.92 kB / 357.2 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.122e-06/0.1153, allocations: 0 / 357.2 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001498/0.1155, allocations: 59.97 kB / 357.3 MB, free: 13.79 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005729/0.1161, allocations: 390.2 kB / 357.7 MB, free: 13.35 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003592/0.1164, allocations: 172 kB / 357.8 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001491/0.1166, allocations: 90.61 kB / 357.9 MB, free: 13.06 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.627e-05/0.1167, allocations: 7.984 kB / 357.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001752/0.1168, allocations: 75.33 kB / 358 MB, free: 12.96 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.693e-06/0.1168, allocations: 0 / 358 MB, free: 12.96 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005732/0.1174, allocations: 225.5 kB / 358.2 MB, free: 12.74 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001165/0.1176, allocations: 144.6 kB / 358.4 MB, free: 12.57 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002906/0.1179, allocations: 272.9 kB / 358.6 MB, free: 12.29 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.415e-05/0.1179, allocations: 29.7 kB / 358.7 MB, free: 12.26 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.256e-05/0.118, allocations: 124.7 kB / 358.8 MB, free: 12.13 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.803e-05/0.118, allocations: 31.64 kB / 358.8 MB, free: 12.1 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.945e-05/0.1181, allocations: 53.94 kB / 358.9 MB, free: 12.04 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001652/0.1183, allocations: 334.8 kB / 359.2 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.123e-05/0.1184, allocations: 36.45 kB / 359.2 MB, free: 11.67 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001995/0.1186, allocations: 171.2 kB / 359.4 MB, free: 11.45 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003463/0.119, allocations: 199.2 kB / 359.6 MB, free: 11.2 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.119, allocations: 8 kB / 359.6 MB, free: 11.19 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003693/0.1194, allocations: 217 kB / 359.8 MB, free: 10.97 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/0.1194, allocations: 8.531 kB / 359.8 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.1194, allocations: 8 kB / 359.8 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.111e-05/0.1194, allocations: 4 kB / 359.8 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001048/0.1195, allocations: 23.92 kB / 359.8 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.251e-05/0.1196, allocations: 8.25 kB / 359.9 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001094/0.1197, allocations: 23.83 kB / 359.9 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.063e-05/0.1197, allocations: 20 kB / 359.9 MB, free: 10.88 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.0001734/0.1199, allocations: 163.9 kB / 360.1 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001884/0.1201, allocations: 129.7 kB / 360.2 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.859e-05/0.1202, allocations: 25.72 kB / 360.2 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.1202, allocations: 4.094 kB / 360.2 MB, free: 10.54 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.032e-06/0.1202, allocations: 3.938 kB / 360.2 MB, free: 10.54 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.093e-05/0.1202, allocations: 7.922 kB / 360.2 MB, free: 10.53 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002605/0.1205, allocations: 253.3 kB / 360.5 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.1205, allocations: 0 / 360.5 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.09e-05/0.1205, allocations: 15.92 kB / 360.5 MB, free: 10.22 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.335e-06/0.1205, allocations: 0 / 360.5 MB, free: 10.22 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.737e-05/0.1206, allocations: 8 kB / 360.5 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.1206, allocations: 0 / 360.5 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1206, allocations: 4 kB / 360.5 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003678/0.1209, allocations: 229.8 kB / 360.7 MB, free: 9.961 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001085/0.1211, allocations: 112.9 kB / 360.8 MB, free: 9.832 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.954e-05/0.1211, allocations: 4 kB / 360.8 MB, free: 9.828 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.166e-05/0.1212, allocations: 11.98 kB / 360.8 MB, free: 9.816 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.645e-05/0.1212, allocations: 11.94 kB / 360.9 MB, free: 9.805 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.249e-05/0.1213, allocations: 8 kB / 360.9 MB, free: 9.797 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001983/0.1215, allocations: 196.5 kB / 361.1 MB, free: 9.602 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1215, allocations: 0 / 361.1 MB, free: 9.602 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003396/0.1218, allocations: 51.92 kB / 361.1 MB, free: 9.551 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.001165/0.123, allocations: 415.1 kB / 361.5 MB, free: 9.297 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003566/0.1234, allocations: 155.6 kB / 361.7 MB, free: 9.145 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.1234, allocations: 0 / 361.7 MB, free: 9.145 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.203e-05/0.1235, allocations: 16 kB / 361.7 MB, free: 9.129 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005323/0.124, allocations: 123.9 kB / 361.8 MB, free: 9.012 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007677/0.1248, allocations: 394.3 kB / 362.2 MB, free: 8.59 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004675/0.1253, allocations: 0.7518 MB / 362.9 MB, free: 7.809 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.233e-05/0.1254, allocations: 34.42 kB / 363 MB, free: 7.773 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.908e-05/0.1254, allocations: 31.42 kB / 363 MB, free: 7.742 MB / 302.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1254, allocations: 0 / 363 MB, free: 7.742 MB / 302.1 MB Notification: Performance of Templates: time 0.007462/0.1329, allocations: 2.999 MB / 366 MB, free: 4.773 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 gbode -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