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.001563/0.001563, allocations: 108.8 kB / 17.33 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00204/0.00204, allocations: 209.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.493/1.493, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001792/0.001792, allocations: 63.83 kB / 306.4 MB, free: 0.9648 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1359/0.1377, allocations: 50.53 MB / 357 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.005415/0.1432, allocations: 1.89 MB / 358.9 MB, free: 12.52 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00157/0.1448, allocations: 0.6857 MB / 359.5 MB, free: 11.83 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001223/0.145, allocations: 3.938 kB / 359.5 MB, free: 11.83 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001623/0.1451, allocations: 23.8 kB / 359.6 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001588/0.1453, allocations: 23.78 kB / 359.6 MB, free: 11.78 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003728/0.1457, allocations: 83.86 kB / 359.7 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003054/0.146, allocations: 171.4 kB / 359.8 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002243/0.1463, allocations: 78.61 kB / 359.9 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002181/0.1465, allocations: 79.72 kB / 360 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002063/0.1467, allocations: 91.53 kB / 360.1 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.488e-05/0.1468, allocations: 16 kB / 360.1 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001162/0.1469, allocations: 27.98 kB / 360.1 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.031e-05/0.147, allocations: 39.84 kB / 360.2 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001626/0.1472, allocations: 91.45 kB / 360.3 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003971/0.1476, allocations: 195.5 kB / 360.4 MB, free: 10.92 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.8e-06/0.1476, allocations: 0 / 360.4 MB, free: 10.92 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.1476, allocations: 0 / 360.4 MB, free: 10.92 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.186e-05/0.1476, allocations: 0 / 360.4 MB, free: 10.92 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.001557/0.1492, allocations: 0.5025 MB / 360.9 MB, free: 10.37 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.636e-05/0.1493, allocations: 8.031 kB / 361 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002811/0.1496, allocations: 40.62 kB / 361 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004447/0.15, allocations: 245.5 kB / 361.2 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.087e-05/0.1501, allocations: 20.12 kB / 361.3 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.15e-05/0.1501, allocations: 12.38 kB / 361.3 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005848/0.1507, allocations: 213.8 kB / 361.5 MB, free: 9.785 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.72e-05/0.1508, allocations: 3.938 kB / 361.5 MB, free: 9.781 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.622e-05/0.1508, allocations: 11.98 kB / 361.5 MB, free: 9.77 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.09e-05/0.1509, allocations: 4 kB / 361.5 MB, free: 9.766 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004517/0.1513, allocations: 143.7 kB / 361.6 MB, free: 9.625 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001552/0.1529, allocations: 0.7894 MB / 362.4 MB, free: 8.773 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007892/0.1537, allocations: 186.7 kB / 362.6 MB, free: 8.582 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001963/0.1539, allocations: 64.81 kB / 362.7 MB, free: 8.516 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.854e-05/0.154, allocations: 4 kB / 362.7 MB, free: 8.512 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003443/0.1543, allocations: 143.1 kB / 362.8 MB, free: 8.355 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 2.234e-06/0.1543, allocations: 0 / 362.8 MB, free: 8.355 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007994/0.1551, allocations: 245.3 kB / 363.1 MB, free: 8.109 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.632e-05/0.1552, allocations: 81.11 kB / 363.1 MB, free: 8.012 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000306/0.1555, allocations: 226.9 kB / 363.4 MB, free: 7.777 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.854e-05/0.1556, allocations: 29.7 kB / 363.4 MB, free: 7.742 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001717/0.1558, allocations: 148.1 kB / 363.5 MB, free: 7.594 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.594e-05/0.1558, allocations: 31.64 kB / 363.6 MB, free: 7.562 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001199/0.1559, allocations: 61.59 kB / 363.6 MB, free: 7.496 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002136/0.1562, allocations: 342.8 kB / 364 MB, free: 7.152 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002115/0.1564, allocations: 63.95 kB / 364 MB, free: 7.09 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002751/0.1567, allocations: 133.6 kB / 364.1 MB, free: 6.93 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004853/0.1572, allocations: 208.4 kB / 364.3 MB, free: 6.695 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.878e-06/0.1572, allocations: 0 / 364.3 MB, free: 6.695 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0006111/0.1578, allocations: 253.1 kB / 364.6 MB, free: 6.441 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.086e-05/0.1579, allocations: 4.25 kB / 364.6 MB, free: 6.438 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.088e-05/0.1579, allocations: 8 kB / 364.6 MB, free: 6.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.882e-05/0.1579, allocations: 4 kB / 364.6 MB, free: 6.426 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000229/0.1581, allocations: 40.28 kB / 364.6 MB, free: 6.387 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.047e-06/0.1582, allocations: 0 / 364.6 MB, free: 6.387 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002338/0.1584, allocations: 36.12 kB / 364.7 MB, free: 6.352 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.559e-05/0.1584, allocations: 11.94 kB / 364.7 MB, free: 6.34 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.0002041/0.1587, allocations: 164.5 kB / 364.9 MB, free: 6.172 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.342e-05/0.1587, allocations: 19.72 kB / 364.9 MB, free: 6.152 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003334/0.159, allocations: 135 kB / 365 MB, free: 6.012 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-06/0.1591, allocations: 4 kB / 365 MB, free: 6.008 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.1591, allocations: 0 / 365 MB, free: 6.008 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.12e-06/0.1591, allocations: 0 / 365 MB, free: 6.008 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008014/0.1599, allocations: 482.2 kB / 365.5 MB, free: 5.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-06/0.1599, allocations: 0 / 365.5 MB, free: 5.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000145/0.1601, allocations: 19.98 kB / 365.5 MB, free: 5.461 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.033e-06/0.1601, allocations: 7.984 kB / 365.5 MB, free: 5.453 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.231e-05/0.1601, allocations: 4 kB / 365.5 MB, free: 5.449 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.751e-06/0.1601, allocations: 7.938 kB / 365.5 MB, free: 5.441 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.1602, allocations: 3.938 kB / 365.5 MB, free: 5.438 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005434/0.1607, allocations: 280.1 kB / 365.8 MB, free: 5.145 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.45e-05/0.1608, allocations: 92.86 kB / 365.9 MB, free: 5.035 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.563e-05/0.1608, allocations: 7.984 kB / 365.9 MB, free: 5.027 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002363/0.1611, allocations: 19.92 kB / 365.9 MB, free: 5.008 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001064/0.1612, allocations: 19.97 kB / 365.9 MB, free: 4.988 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.623e-05/0.1612, allocations: 4 kB / 365.9 MB, free: 4.984 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001746/0.1614, allocations: 152.6 kB / 366.1 MB, free: 4.836 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1614, allocations: 4 kB / 366.1 MB, free: 4.832 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004838/0.1619, allocations: 35.91 kB / 366.1 MB, free: 4.797 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.0002061/0.1621, allocations: 115.1 kB / 366.2 MB, free: 4.676 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005646/0.1627, allocations: 171.8 kB / 366.4 MB, free: 4.508 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.1627, allocations: 4 kB / 366.4 MB, free: 4.504 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000256/0.163, allocations: 88.52 kB / 366.5 MB, free: 4.418 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005145/0.1635, allocations: 32.23 kB / 366.5 MB, free: 4.387 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009083/0.1644, allocations: 425.8 kB / 366.9 MB, free: 3.938 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003581/0.1648, allocations: 0.732 MB / 367.7 MB, free: 3.18 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001476/0.165, allocations: 33.77 kB / 367.7 MB, free: 3.148 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.284e-05/0.1651, allocations: 19.44 kB / 367.7 MB, free: 3.129 MB / 302.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1651, allocations: 0 / 367.7 MB, free: 3.129 MB / 302.1 MB Notification: Performance of Templates: time 0.006902/0.172, allocations: 1.973 MB / 369.7 MB, free: 1.168 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches