Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.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.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1") translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001035/0.001035, allocations: 95.61 kB / 16.3 MB, free: 5.996 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.001007/0.001007, allocations: 181.9 kB / 17.2 MB, free: 5.914 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.343/1.343, allocations: 223.2 MB / 241.1 MB, free: 5.348 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002791/0.0002792, allocations: 7 kB / 300.7 MB, free: 6.086 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1125, allocations: 50.42 MB / 351.1 MB, free: 11.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002249/0.1148, allocations: 1.48 MB / 352.6 MB, free: 10.18 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001057/0.1159, allocations: 0.5847 MB / 353.2 MB, free: 9.594 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001059/0.116, allocations: 7.938 kB / 353.2 MB, free: 9.586 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001129/0.1161, allocations: 15.86 kB / 353.2 MB, free: 9.57 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001286/0.1162, allocations: 31.89 kB / 353.2 MB, free: 9.539 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002477/0.1165, allocations: 63.86 kB / 353.3 MB, free: 9.477 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001798/0.1167, allocations: 107.8 kB / 353.4 MB, free: 9.371 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002074/0.1169, allocations: 76.64 kB / 353.5 MB, free: 9.297 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001234/0.117, allocations: 55.72 kB / 353.5 MB, free: 9.242 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001403/0.1172, allocations: 67.67 kB / 353.6 MB, free: 9.176 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.723e-05/0.1172, allocations: 8 kB / 353.6 MB, free: 9.168 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.138e-05/0.1173, allocations: 8 kB / 353.6 MB, free: 9.16 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.181e-05/0.1174, allocations: 31.84 kB / 353.7 MB, free: 9.129 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.258e-05/0.1175, allocations: 53.58 kB / 353.7 MB, free: 9.07 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001951/0.1177, allocations: 123.8 kB / 353.8 MB, free: 8.949 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.1177, allocations: 0 / 353.8 MB, free: 8.949 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.1177, allocations: 0 / 353.8 MB, free: 8.949 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.641e-06/0.1177, allocations: 0 / 353.8 MB, free: 8.949 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0009614/0.1187, allocations: 486.5 kB / 354.3 MB, free: 8.426 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.907e-05/0.1187, allocations: 15.97 kB / 354.3 MB, free: 8.41 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.893e-05/0.1188, allocations: 23.67 kB / 354.3 MB, free: 8.387 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002909/0.1191, allocations: 238.7 kB / 354.6 MB, free: 8.113 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.446e-05/0.1191, allocations: 12 kB / 354.6 MB, free: 8.102 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.887e-05/0.1191, allocations: 19.98 kB / 354.6 MB, free: 8.082 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003726/0.1195, allocations: 209.5 kB / 354.8 MB, free: 7.855 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.1195, allocations: 0 / 354.8 MB, free: 7.855 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.202e-05/0.1196, allocations: 8 kB / 354.8 MB, free: 7.848 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.163e-05/0.1196, allocations: 7.953 kB / 354.8 MB, free: 7.84 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003068/0.1199, allocations: 143.8 kB / 355 MB, free: 7.699 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001082/0.121, allocations: 0.7934 MB / 355.8 MB, free: 6.844 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006217/0.1216, allocations: 222.5 kB / 356 MB, free: 6.617 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.57e-05/0.1217, allocations: 4 kB / 356 MB, free: 6.613 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002974/0.122, allocations: 148.9 kB / 356.1 MB, free: 6.449 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.483e-06/0.122, allocations: 0 / 356.1 MB, free: 6.449 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005812/0.1226, allocations: 257.3 kB / 356.4 MB, free: 6.191 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.369e-05/0.1227, allocations: 77.11 kB / 356.5 MB, free: 6.098 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001961/0.1229, allocations: 226.7 kB / 356.7 MB, free: 5.867 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.542e-05/0.1229, allocations: 33.7 kB / 356.7 MB, free: 5.828 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.192e-05/0.123, allocations: 136.5 kB / 356.8 MB, free: 5.691 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.277e-05/0.123, allocations: 35.62 kB / 356.9 MB, free: 5.656 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.063e-05/0.123, allocations: 4 kB / 356.9 MB, free: 5.652 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001205/0.1232, allocations: 330.8 kB / 357.2 MB, free: 5.32 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001521/0.1233, allocations: 75.89 kB / 357.3 MB, free: 5.246 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001906/0.1235, allocations: 136.5 kB / 357.4 MB, free: 5.082 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001625/0.1237, allocations: 83.97 kB / 357.5 MB, free: 5 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.1237, allocations: 0 / 357.5 MB, free: 5 MB / 286.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004557/0.1242, allocations: 265 kB / 357.7 MB, free: 4.734 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.1242, allocations: 7.953 kB / 357.8 MB, free: 4.727 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.104e-06/0.1242, allocations: 4 kB / 357.8 MB, free: 4.723 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.1242, allocations: 4 kB / 357.8 MB, free: 4.719 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001691/0.1244, allocations: 35.92 kB / 357.8 MB, free: 4.684 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.178e-05/0.1244, allocations: 7.984 kB / 357.8 MB, free: 4.676 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001812/0.1246, allocations: 40.08 kB / 357.8 MB, free: 4.637 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.697e-05/0.1246, allocations: 8 kB / 357.9 MB, free: 4.629 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 25 (sum.u[1],product.u[1],product.u[2],product.y,$PRE.triggeredAdd.y,triggeredAdd.y,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.booleanPulse1.pulseStart,booleanPulse1.pulseStart,multiSwitch1.u[1],multiSwitch1.u[2],$PRE.multiSwitch1.y,multiSwitch1.y,multiSwitch1.firstActiveIndex,$PRE.booleanPulse2.pulseStart,booleanPulse2.pulseStart,multiSwitch1.expr[1],multiSwitch1.expr[2],triggeredAdd.local_set,triggeredAdd.local_reset,showValue2.number,showValue1.number,showValue.number) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0001415/0.1248, allocations: 152 kB / 358 MB, free: 4.473 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.697e-05/0.1248, allocations: 15.81 kB / 358 MB, free: 4.457 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000255/0.1251, allocations: 139.2 kB / 358.2 MB, free: 4.309 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.566e-06/0.1251, allocations: 4.094 kB / 358.2 MB, free: 4.305 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.1251, allocations: 3.938 kB / 358.2 MB, free: 4.301 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.691e-06/0.1251, allocations: 4 kB / 358.2 MB, free: 4.297 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005884/0.1257, allocations: 474.7 kB / 358.6 MB, free: 3.777 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.1257, allocations: 0 / 358.6 MB, free: 3.777 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001196/0.1258, allocations: 31.88 kB / 358.7 MB, free: 3.746 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.1259, allocations: 8 kB / 358.7 MB, free: 3.738 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.475e-05/0.1259, allocations: 4 kB / 358.7 MB, free: 3.734 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.1259, allocations: 0 / 358.7 MB, free: 3.734 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.1259, allocations: 4 kB / 358.7 MB, free: 3.73 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004184/0.1263, allocations: 313.7 kB / 359 MB, free: 3.398 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.371e-05/0.1264, allocations: 92.92 kB / 359.1 MB, free: 3.289 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.958e-05/0.1264, allocations: 3.938 kB / 359.1 MB, free: 3.285 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001778/0.1266, allocations: 27.97 kB / 359.1 MB, free: 3.258 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.156e-05/0.1267, allocations: 23.91 kB / 359.1 MB, free: 3.234 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.937e-05/0.1267, allocations: 8 kB / 359.1 MB, free: 3.227 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001104/0.1268, allocations: 144.6 kB / 359.3 MB, free: 3.086 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1268, allocations: 0 / 359.3 MB, free: 3.086 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000298/0.1271, allocations: 39.94 kB / 359.3 MB, free: 3.047 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 14 (multiSwitch1.u[1],$whenCondition3,$whenCondition2,$whenCondition1,triggeredAdd.y,booleanPulse1.pulseStart,multiSwitch1.u[2],multiSwitch1.y,multiSwitch1.firstActiveIndex,booleanPulse2.pulseStart,sum.u[1],product.u[1],product.u[2],product.y) * Number of discrete states: 2 (multiSwitch1.y,triggeredAdd.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001565/0.1273, allocations: 115.7 kB / 359.4 MB, free: 2.926 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003943/0.1277, allocations: 175.8 kB / 359.6 MB, free: 2.754 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.1277, allocations: 0 / 359.6 MB, free: 2.754 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001791/0.1279, allocations: 79.89 kB / 359.7 MB, free: 2.676 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002772/0.1282, allocations: 32.44 kB / 359.7 MB, free: 2.645 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006641/0.1289, allocations: 399.8 kB / 360.1 MB, free: 2.23 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003133/0.1292, allocations: 0.7441 MB / 360.8 MB, free: 1.461 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 9.833e-05/0.1293, allocations: 33.52 kB / 360.9 MB, free: 1.43 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.869e-05/0.1294, allocations: 23.38 kB / 360.9 MB, free: 1.406 MB / 286.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1294, allocations: 4 kB / 360.9 MB, free: 1.402 MB / 286.1 MB Notification: Performance of Templates: time 0.00457/0.1339, allocations: 1.778 MB / 362.7 MB, free: 15.64 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","../files/Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches