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.001054/0.001054, allocations: 93.61 kB / 16.65 MB, free: 6.59 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.001472/0.001472, allocations: 184.3 kB / 17.56 MB, free: 6.203 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.51/1.51, allocations: 223.3 MB / 241.6 MB, free: 14.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002841/0.0002841, allocations: 7.938 kB / 301.4 MB, free: 5.895 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1193/0.1196, allocations: 50.41 MB / 351.8 MB, free: 3.465 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002298/0.122, allocations: 1.527 MB / 353.4 MB, free: 1.918 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001449/0.1234, allocations: 0.6116 MB / 354 MB, free: 1.305 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001467/0.1236, allocations: 0 / 354 MB, free: 1.305 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001726/0.1238, allocations: 19.8 kB / 354 MB, free: 1.285 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001774/0.124, allocations: 27.78 kB / 354 MB, free: 1.258 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000362/0.1244, allocations: 71.86 kB / 354.1 MB, free: 1.188 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002803/0.1247, allocations: 163.4 kB / 354.2 MB, free: 1.027 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000241/0.1249, allocations: 66.64 kB / 354.3 MB, free: 0.957 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001312/0.125, allocations: 51.78 kB / 354.4 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001946/0.1252, allocations: 79.48 kB / 354.4 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.974e-05/0.1253, allocations: 12 kB / 354.4 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.132e-05/0.1254, allocations: 15.98 kB / 354.5 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.217e-05/0.1255, allocations: 35.84 kB / 354.5 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001228/0.1256, allocations: 89.25 kB / 354.6 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002547/0.1259, allocations: 163.6 kB / 354.7 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.695e-06/0.1259, allocations: 0 / 354.7 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.1259, allocations: 0 / 354.7 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.603e-06/0.1259, allocations: 0 / 354.7 MB, free: 0.5117 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.001046/0.127, allocations: 498.7 kB / 355.2 MB, free: 15.98 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/0.127, allocations: 8.031 kB / 355.2 MB, free: 15.97 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.495e-05/0.1271, allocations: 24.66 kB / 355.3 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003793/0.1275, allocations: 235.9 kB / 355.5 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.361e-05/0.1275, allocations: 12.38 kB / 355.5 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.771e-05/0.1276, allocations: 24.12 kB / 355.5 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003915/0.128, allocations: 209.9 kB / 355.7 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.978e-06/0.128, allocations: 0 / 355.7 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.122e-05/0.128, allocations: 12 kB / 355.7 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.751e-05/0.128, allocations: 11.98 kB / 355.8 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003303/0.1284, allocations: 147.8 kB / 355.9 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001085/0.1295, allocations: 0.8011 MB / 356.7 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000664/0.1301, allocations: 202.7 kB / 356.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001576/0.1303, allocations: 68.81 kB / 357 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.391e-05/0.1304, allocations: 7.938 kB / 357 MB, free: 14.1 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002895/0.1307, allocations: 153 kB / 357.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.503e-06/0.1307, allocations: 0 / 357.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006496/0.1313, allocations: 265.4 kB / 357.4 MB, free: 13.66 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.896e-05/0.1314, allocations: 77.11 kB / 357.5 MB, free: 13.57 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002261/0.1316, allocations: 222.8 kB / 357.7 MB, free: 13.34 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.754e-05/0.1317, allocations: 37.64 kB / 357.7 MB, free: 13.3 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001881/0.1319, allocations: 136.2 kB / 357.8 MB, free: 13.16 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.683e-05/0.1319, allocations: 39.55 kB / 357.9 MB, free: 13.12 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.099e-05/0.132, allocations: 45.69 kB / 357.9 MB, free: 13.07 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001247/0.1321, allocations: 330.8 kB / 358.3 MB, free: 12.74 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000159/0.1323, allocations: 71.95 kB / 358.3 MB, free: 12.67 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001992/0.1325, allocations: 136.5 kB / 358.5 MB, free: 12.51 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003426/0.1328, allocations: 216.4 kB / 358.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.1328, allocations: 0 / 358.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000453/0.1333, allocations: 261.1 kB / 358.9 MB, free: 12 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/0.1333, allocations: 4 kB / 358.9 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.1333, allocations: 4 kB / 358.9 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.635e-05/0.1334, allocations: 4.25 kB / 358.9 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000174/0.1335, allocations: 43.92 kB / 359 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.237e-05/0.1336, allocations: 11.92 kB / 359 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001758/0.1337, allocations: 39.77 kB / 359 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.786e-05/0.1338, allocations: 8 kB / 359 MB, free: 11.89 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 (product.y,product.u[2],product.u[1],sum.u[1],triggeredAdd.y,$PRE.triggeredAdd.y,$whenCondition3,$whenCondition2,multiSwitch1.expr[2],multiSwitch1.expr[1],booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch1.firstActiveIndex,multiSwitch1.y,$PRE.multiSwitch1.y,multiSwitch1.u[2],multiSwitch1.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart,$whenCondition1,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000151/0.1339, allocations: 148 kB / 359.2 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.949e-05/0.134, allocations: 19.72 kB / 359.2 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002636/0.1342, allocations: 135 kB / 359.3 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.6e-06/0.1342, allocations: 4 kB / 359.3 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.1343, allocations: 3.938 kB / 359.3 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.9e-06/0.1343, allocations: 0 / 359.3 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006512/0.1349, allocations: 486.8 kB / 359.8 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.1349, allocations: 0 / 359.8 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001157/0.1351, allocations: 20.08 kB / 359.8 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.05e-06/0.1351, allocations: 7.875 kB / 359.8 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.612e-05/0.1351, allocations: 4 kB / 359.8 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.068e-06/0.1351, allocations: 3.984 kB / 359.8 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.786e-06/0.1351, allocations: 3.938 kB / 359.9 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004412/0.1356, allocations: 292 kB / 360.1 MB, free: 10.69 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.563e-05/0.1356, allocations: 100.8 kB / 360.2 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.297e-05/0.1357, allocations: 12.06 kB / 360.2 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001714/0.1359, allocations: 23.98 kB / 360.3 MB, free: 10.54 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.722e-05/0.1359, allocations: 27.94 kB / 360.3 MB, free: 10.51 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.061e-05/0.136, allocations: 8 kB / 360.3 MB, free: 10.5 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001313/0.1361, allocations: 140.6 kB / 360.4 MB, free: 10.37 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.1361, allocations: 0 / 360.4 MB, free: 10.37 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003088/0.1364, allocations: 43.91 kB / 360.5 MB, free: 10.32 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 (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.0001881/0.1366, allocations: 119.6 kB / 360.6 MB, free: 10.2 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004055/0.137, allocations: 175.7 kB / 360.8 MB, free: 10.03 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.1371, allocations: 0 / 360.8 MB, free: 10.03 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002129/0.1373, allocations: 88.39 kB / 360.9 MB, free: 9.941 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004012/0.1377, allocations: 23.98 kB / 360.9 MB, free: 9.918 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007613/0.1385, allocations: 423.5 kB / 361.3 MB, free: 9.48 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000361/0.1388, allocations: 0.7362 MB / 362 MB, free: 8.719 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001012/0.1389, allocations: 29.53 kB / 362.1 MB, free: 8.691 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.201e-05/0.139, allocations: 23.42 kB / 362.1 MB, free: 8.668 MB / 302.1 MB Notification: Performance of SimCode: time 5.82e-07/0.139, allocations: 4 kB / 362.1 MB, free: 8.664 MB / 302.1 MB Notification: Performance of Templates: time 0.00476/0.1438, allocations: 1.831 MB / 363.9 MB, free: 6.844 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches