Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1") translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009196/0.0009197, allocations: 95.95 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001027/0.001027, allocations: 200.9 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.522/1.522, allocations: 227.2 MB / 245.9 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002447/0.0002447, allocations: 4 kB / 306.6 MB, free: 1.438 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.116, allocations: 51.49 MB / 358.1 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002408/0.1185, allocations: 1.501 MB / 359.6 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00102/0.1195, allocations: 0.6315 MB / 360.2 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.807e-05/0.1196, allocations: 4 kB / 360.2 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.62e-05/0.1197, allocations: 15.86 kB / 360.2 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001381/0.1199, allocations: 27.89 kB / 360.2 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000217/0.1201, allocations: 75.8 kB / 360.3 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001676/0.1203, allocations: 111.5 kB / 360.4 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001602/0.1204, allocations: 62.36 kB / 360.5 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001418/0.1206, allocations: 63.66 kB / 360.5 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001429/0.1207, allocations: 75.61 kB / 360.6 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.058e-05/0.1208, allocations: 4 kB / 360.6 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.805e-05/0.1208, allocations: 16 kB / 360.6 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.998e-05/0.1209, allocations: 35.83 kB / 360.7 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.98e-05/0.121, allocations: 49.64 kB / 360.7 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001686/0.1211, allocations: 116 kB / 360.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.1212, allocations: 3.938 kB / 360.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.1212, allocations: 4 kB / 360.8 MB, free: 11.13 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.199e-06/0.1212, allocations: 0 / 360.8 MB, free: 11.13 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0009242/0.1221, allocations: 0.4906 MB / 361.3 MB, free: 10.59 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.35e-05/0.1221, allocations: 8.031 kB / 361.3 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001567/0.1223, allocations: 35.7 kB / 361.4 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002578/0.1226, allocations: 230.7 kB / 361.6 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.99e-05/0.1226, allocations: 12 kB / 361.6 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.973e-05/0.1226, allocations: 23.95 kB / 361.6 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003531/0.123, allocations: 197.6 kB / 361.8 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.123, allocations: 0 / 361.8 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.011e-05/0.123, allocations: 12 kB / 361.8 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.013e-05/0.1231, allocations: 11.94 kB / 361.8 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003108/0.1234, allocations: 139.9 kB / 362 MB, free: 9.875 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00109/0.1245, allocations: 0.7973 MB / 362.8 MB, free: 9.016 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006108/0.1251, allocations: 210.6 kB / 363 MB, free: 8.801 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.651e-05/0.1252, allocations: 4 kB / 363 MB, free: 8.797 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002534/0.1254, allocations: 151.6 kB / 363.1 MB, free: 8.633 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.422e-06/0.1254, allocations: 0 / 363.1 MB, free: 8.633 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006009/0.126, allocations: 257.2 kB / 363.4 MB, free: 8.375 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001079/0.1262, allocations: 85.11 kB / 363.5 MB, free: 8.273 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002121/0.1264, allocations: 214.8 kB / 363.7 MB, free: 8.055 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.369e-05/0.1264, allocations: 33.7 kB / 363.7 MB, free: 8.016 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.148e-05/0.1265, allocations: 148.4 kB / 363.9 MB, free: 7.867 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.857e-05/0.1265, allocations: 28.03 kB / 363.9 MB, free: 7.84 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.042e-05/0.1266, allocations: 8 kB / 363.9 MB, free: 7.832 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.1267, allocations: 334.8 kB / 364.2 MB, free: 7.496 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001545/0.1268, allocations: 67.95 kB / 364.3 MB, free: 7.43 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000182/0.127, allocations: 149.5 kB / 364.4 MB, free: 7.254 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001601/0.1272, allocations: 79.97 kB / 364.5 MB, free: 7.176 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.1272, allocations: 0 / 364.5 MB, free: 7.176 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004284/0.1277, allocations: 265.5 kB / 364.8 MB, free: 6.91 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/0.1277, allocations: 8 kB / 364.8 MB, free: 6.902 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.762e-06/0.1277, allocations: 4.062 kB / 364.8 MB, free: 6.898 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.1277, allocations: 4 kB / 364.8 MB, free: 6.895 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001849/0.1279, allocations: 39.97 kB / 364.8 MB, free: 6.855 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.179e-05/0.1279, allocations: 7.938 kB / 364.8 MB, free: 6.848 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000182/0.1281, allocations: 35.83 kB / 364.9 MB, free: 6.812 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.715e-05/0.1281, allocations: 12.03 kB / 364.9 MB, free: 6.801 MB / 302.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.0001779/0.1283, allocations: 148 kB / 365 MB, free: 6.648 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.582e-05/0.1283, allocations: 15.81 kB / 365 MB, free: 6.633 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002883/0.1286, allocations: 138.9 kB / 365.2 MB, free: 6.488 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/0.1287, allocations: 4 kB / 365.2 MB, free: 6.484 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.1287, allocations: 0 / 365.2 MB, free: 6.484 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-06/0.1287, allocations: 0 / 365.2 MB, free: 6.484 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000681/0.1294, allocations: 490.2 kB / 365.7 MB, free: 5.949 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.1294, allocations: 0 / 365.7 MB, free: 5.949 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001148/0.1295, allocations: 19.98 kB / 365.7 MB, free: 5.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.1295, allocations: 0 / 365.7 MB, free: 5.93 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.465e-05/0.1295, allocations: 4 kB / 365.7 MB, free: 5.926 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.255e-06/0.1295, allocations: 0 / 365.7 MB, free: 5.926 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.011e-06/0.1295, allocations: 4 kB / 365.7 MB, free: 5.922 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004151/0.13, allocations: 309.6 kB / 366 MB, free: 5.594 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.877e-05/0.13, allocations: 104.8 kB / 366.1 MB, free: 5.473 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.294e-05/0.1301, allocations: 4 kB / 366.1 MB, free: 5.469 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001724/0.1303, allocations: 24.16 kB / 366.1 MB, free: 5.445 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.983e-05/0.1303, allocations: 23.97 kB / 366.1 MB, free: 5.422 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.763e-05/0.1304, allocations: 7.938 kB / 366.1 MB, free: 5.414 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001148/0.1305, allocations: 144.4 kB / 366.3 MB, free: 5.273 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1305, allocations: 0 / 366.3 MB, free: 5.273 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002992/0.1308, allocations: 43.95 kB / 366.3 MB, free: 5.23 MB / 302.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.0001633/0.131, allocations: 119.7 kB / 366.4 MB, free: 5.105 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003961/0.1314, allocations: 176.2 kB / 366.6 MB, free: 4.934 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1314, allocations: 0 / 366.6 MB, free: 4.934 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001855/0.1316, allocations: 79.89 kB / 366.7 MB, free: 4.855 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002988/0.1319, allocations: 28.27 kB / 366.7 MB, free: 4.828 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007366/0.1326, allocations: 399.9 kB / 367.1 MB, free: 4.41 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003144/0.133, allocations: 0.7402 MB / 367.9 MB, free: 3.645 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001088/0.1331, allocations: 45.5 kB / 367.9 MB, free: 3.598 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.714e-05/0.1331, allocations: 19.44 kB / 367.9 MB, free: 3.578 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1331, allocations: 0 / 367.9 MB, free: 3.578 MB / 302.1 MB Notification: Performance of Templates: time 0.004586/0.1377, allocations: 1.783 MB / 369.7 MB, free: 1.809 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches