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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001942/0.001942, allocations: 75.75 kB / 21.25 MB, free: 396 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002085/0.002085, allocations: 159.7 kB / 24.49 MB, free: 3.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.562/1.562, allocations: 177.1 MB / 204.7 MB, free: 9.016 MB / 190.1 MB " [Timeout remaining time 178] 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=5052,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1") translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5052,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001945/0.001945, allocations: 62.03 kB / 325.5 MB, free: 224 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1392/0.1412, allocations: 53.4 MB / 378.9 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003696/0.1449, allocations: 1.812 MB / 380.7 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001463/0.1463, allocations: 0.6622 MB / 381.4 MB, free: 13.03 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000135/0.1465, allocations: 7.938 kB / 381.4 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001783/0.1466, allocations: 23.67 kB / 381.4 MB, free: 13 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001573/0.1468, allocations: 35.72 kB / 381.4 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003591/0.1472, allocations: 99.77 kB / 381.5 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002799/0.1474, allocations: 175.4 kB / 381.7 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001919/0.1476, allocations: 50.94 kB / 381.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001972/0.1478, allocations: 83.64 kB / 381.8 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001789/0.148, allocations: 83.59 kB / 381.9 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.457e-05/0.148, allocations: 12 kB / 381.9 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.587e-05/0.1481, allocations: 27.98 kB / 382 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.146e-05/0.1482, allocations: 47.84 kB / 382 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.218e-05/0.1483, allocations: 71.58 kB / 382.1 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003399/0.1487, allocations: 207 kB / 382.3 MB, free: 12.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.1487, allocations: 0 / 382.3 MB, free: 12.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1487, allocations: 0 / 382.3 MB, free: 12.11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.123e-06/0.1487, allocations: 0 / 382.3 MB, free: 12.11 MB / 350.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.0009959/0.1497, allocations: 453.2 kB / 382.7 MB, free: 11.64 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/0.1497, allocations: 19.92 kB / 382.8 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000169/0.1499, allocations: 32.78 kB / 382.8 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003196/0.1502, allocations: 200 kB / 383 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.646e-05/0.1502, allocations: 12.38 kB / 383 MB, free: 11.35 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.617e-05/0.1502, allocations: 12.38 kB / 383 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004168/0.1507, allocations: 214 kB / 383.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.1507, allocations: 4 kB / 383.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.798e-05/0.1507, allocations: 4 kB / 383.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.237e-05/0.1507, allocations: 8 kB / 383.2 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003189/0.151, allocations: 143.8 kB / 383.4 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001024/0.1521, allocations: 0.6723 MB / 384 MB, free: 10.24 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006213/0.1527, allocations: 182.6 kB / 384.2 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001406/0.1528, allocations: 60.81 kB / 384.3 MB, free: 9.992 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.923e-05/0.1529, allocations: 4 kB / 384.3 MB, free: 9.988 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002814/0.1532, allocations: 148.6 kB / 384.4 MB, free: 9.828 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.323e-06/0.1532, allocations: 4 kB / 384.4 MB, free: 9.824 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005938/0.1537, allocations: 237.4 kB / 384.7 MB, free: 9.586 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.75e-05/0.1538, allocations: 85.11 kB / 384.7 MB, free: 9.484 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002117/0.154, allocations: 227.6 kB / 385 MB, free: 9.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.226e-05/0.1541, allocations: 33.7 kB / 385 MB, free: 9.211 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001053/0.1542, allocations: 132.4 kB / 385.1 MB, free: 9.078 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.486e-05/0.1542, allocations: 43.72 kB / 385.2 MB, free: 9.035 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001085/0.1543, allocations: 57.69 kB / 385.2 MB, free: 8.973 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000178/0.1545, allocations: 330.8 kB / 385.6 MB, free: 8.641 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000158/0.1547, allocations: 67.89 kB / 385.6 MB, free: 8.574 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002096/0.1549, allocations: 141.1 kB / 385.8 MB, free: 8.406 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003578/0.1552, allocations: 220.6 kB / 386 MB, free: 8.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.1552, allocations: 0 / 386 MB, free: 8.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004515/0.1557, allocations: 249.3 kB / 386.2 MB, free: 7.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/0.1557, allocations: 8.375 kB / 386.2 MB, free: 7.902 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.1557, allocations: 0 / 386.2 MB, free: 7.902 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.796e-05/0.1557, allocations: 4 kB / 386.2 MB, free: 7.898 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001667/0.1559, allocations: 35.92 kB / 386.3 MB, free: 7.863 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.862e-05/0.1559, allocations: 11.92 kB / 386.3 MB, free: 7.852 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000168/0.1561, allocations: 28.12 kB / 386.3 MB, free: 7.824 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.909e-05/0.1561, allocations: 19.94 kB / 386.3 MB, free: 7.805 MB / 350.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.0001577/0.1562, allocations: 155.6 kB / 386.5 MB, free: 7.645 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.004e-05/0.1563, allocations: 15.91 kB / 386.5 MB, free: 7.629 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002704/0.1565, allocations: 131 kB / 386.6 MB, free: 7.492 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.1566, allocations: 4 kB / 386.6 MB, free: 7.488 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.1566, allocations: 0 / 386.6 MB, free: 7.488 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.349e-06/0.1566, allocations: 0 / 386.6 MB, free: 7.488 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006091/0.1572, allocations: 406 kB / 387 MB, free: 7.055 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.1572, allocations: 4 kB / 387 MB, free: 7.051 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001163/0.1573, allocations: 27.92 kB / 387 MB, free: 7.023 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.1573, allocations: 0 / 387 MB, free: 7.023 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.373e-05/0.1573, allocations: 0 / 387 MB, free: 7.023 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.358e-06/0.1573, allocations: 4 kB / 387.1 MB, free: 7.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1573, allocations: 0 / 387.1 MB, free: 7.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004248/0.1577, allocations: 292 kB / 387.3 MB, free: 6.715 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.501e-05/0.1578, allocations: 15.91 kB / 387.4 MB, free: 6.699 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.715e-05/0.1578, allocations: 12 kB / 387.4 MB, free: 6.688 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001593/0.158, allocations: 15.98 kB / 387.4 MB, free: 6.672 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001081/0.1581, allocations: 31.89 kB / 387.4 MB, free: 6.641 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.838e-05/0.1581, allocations: 4 kB / 387.4 MB, free: 6.637 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000126/0.1582, allocations: 145.5 kB / 387.6 MB, free: 6.496 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1582, allocations: 0 / 387.6 MB, free: 6.496 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003043/0.1585, allocations: 43.89 kB / 387.6 MB, free: 6.453 MB / 350.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.0001604/0.1587, allocations: 103.2 kB / 387.7 MB, free: 6.344 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003982/0.1591, allocations: 164 kB / 387.9 MB, free: 6.184 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.1591, allocations: 0 / 387.9 MB, free: 6.184 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001726/0.1592, allocations: 75.83 kB / 387.9 MB, free: 6.109 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003373/0.1596, allocations: 27.92 kB / 388 MB, free: 6.082 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007255/0.1603, allocations: 370.2 kB / 388.3 MB, free: 5.691 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001283/0.1604, allocations: 128.9 kB / 388.4 MB, free: 5.547 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.825e-05/0.1605, allocations: 29.47 kB / 388.5 MB, free: 5.516 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.245e-05/0.1606, allocations: 32.42 kB / 388.5 MB, free: 5.484 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1606, allocations: 0 / 388.5 MB, free: 5.484 MB / 350.1 MB Notification: Performance of Templates: time 0.005749/0.1664, allocations: 2.165 MB / 390.7 MB, free: 3.352 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.makefile [Timeout 660] (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 -s ida -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.618815660011023]