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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000899/0.000899, allocations: 85.17 kB / 21.5 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009179/0.0009179, allocations: 148.6 kB / 24.89 MB, free: 8.742 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.007/1.007, allocations: 173.4 MB / 201.5 MB, free: 8.734 MB / 186.7 MB " [Timeout remaining time 179] 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=5052,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=5052,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.773e-06/1.773e-06, allocations: 0 / 268.5 MB, free: 6 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.726e-05/2.903e-05, allocations: 6.109 kB / 268.5 MB, free: 5.996 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.0061/0.006129, allocations: 1.898 MB / 270.4 MB, free: 4.082 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001098/0.007227, allocations: 0.6267 MB / 271 MB, free: 3.453 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001588/0.007386, allocations: 7.938 kB / 271 MB, free: 3.445 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001658/0.007551, allocations: 35.66 kB / 271.1 MB, free: 3.41 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001407/0.007692, allocations: 35.67 kB / 271.1 MB, free: 3.375 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003184/0.008011, allocations: 83.7 kB / 271.2 MB, free: 3.293 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001969/0.008207, allocations: 179.4 kB / 271.4 MB, free: 3.117 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00013/0.008337, allocations: 47.66 kB / 271.4 MB, free: 3.062 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001616/0.008499, allocations: 103.7 kB / 271.5 MB, free: 2.961 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001598/0.008659, allocations: 67.78 kB / 271.6 MB, free: 2.895 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.759e-05/0.008686, allocations: 16 kB / 271.6 MB, free: 2.879 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.946e-05/0.008786, allocations: 23.98 kB / 271.6 MB, free: 2.855 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.986e-05/0.008836, allocations: 43.83 kB / 271.6 MB, free: 2.812 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.171e-05/0.008887, allocations: 59.83 kB / 271.7 MB, free: 2.754 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002095/0.009097, allocations: 167.2 kB / 271.9 MB, free: 2.59 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.0091, allocations: 0 / 271.9 MB, free: 2.59 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.009101, allocations: 0 / 271.9 MB, free: 2.59 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.617e-06/0.009105, allocations: 0 / 271.9 MB, free: 2.59 MB / 250.7 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.0004779/0.009583, allocations: 403.9 kB / 272.3 MB, free: 2.172 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.185e-05/0.009615, allocations: 8.922 kB / 272.3 MB, free: 2.164 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.343e-05/0.009658, allocations: 28.91 kB / 272.3 MB, free: 2.137 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001932/0.009851, allocations: 185.4 kB / 272.5 MB, free: 1.93 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.922e-05/0.00987, allocations: 8.375 kB / 272.5 MB, free: 1.922 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.933e-05/0.00989, allocations: 16.38 kB / 272.5 MB, free: 1.906 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002085/0.0101, allocations: 177 kB / 272.7 MB, free: 1.707 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.01011, allocations: 3.938 kB / 272.7 MB, free: 1.703 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.266e-05/0.01012, allocations: 7.984 kB / 272.7 MB, free: 1.695 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.961e-05/0.01014, allocations: 11.98 kB / 272.7 MB, free: 1.684 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.486e-05/0.01021, allocations: 58.59 kB / 272.8 MB, free: 1.625 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005103/0.01072, allocations: 0.5681 MB / 273.3 MB, free: 1.027 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002224/0.01095, allocations: 155.9 kB / 273.5 MB, free: 0.8633 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.171e-05/0.01098, allocations: 20.86 kB / 273.5 MB, free: 0.8398 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.431e-05/0.011, allocations: 4 kB / 273.5 MB, free: 0.8359 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001196/0.01112, allocations: 107.8 kB / 273.6 MB, free: 0.7109 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.102e-06/0.01112, allocations: 4 kB / 273.6 MB, free: 0.707 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001737/0.0113, allocations: 119.5 kB / 273.7 MB, free: 0.582 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.796e-05/0.01133, allocations: 77.11 kB / 273.8 MB, free: 500 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001036/0.01144, allocations: 207.4 kB / 274 MB, free: 280 kB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.66e-05/0.01145, allocations: 29.7 kB / 274 MB, free: 244 kB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.415e-05/0.01151, allocations: 136.2 kB / 274.2 MB, free: 104 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.613e-05/0.01153, allocations: 35.73 kB / 274.2 MB, free: 68 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.774e-05/0.01159, allocations: 61.64 kB / 274.3 MB, free: 0 / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.88e-05/0.01169, allocations: 334.7 kB / 274.6 MB, free: 15.66 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.218e-05/0.01173, allocations: 26.81 kB / 274.6 MB, free: 15.64 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.049e-05/0.01179, allocations: 88.56 kB / 274.7 MB, free: 15.52 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000118/0.01191, allocations: 148.8 kB / 274.9 MB, free: 15.34 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.01191, allocations: 0 / 274.9 MB, free: 15.34 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001481/0.01206, allocations: 143 kB / 275 MB, free: 15.19 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.298e-05/0.01208, allocations: 7.984 kB / 275 MB, free: 15.18 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.01208, allocations: 4 kB / 275 MB, free: 15.18 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.26e-05/0.01209, allocations: 4 kB / 275 MB, free: 15.18 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001006/0.01219, allocations: 43.92 kB / 275 MB, free: 15.13 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.988e-06/0.0122, allocations: 4 kB / 275.1 MB, free: 15.13 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.604e-05/0.01226, allocations: 23.88 kB / 275.1 MB, free: 15.11 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.105e-05/0.01228, allocations: 12.25 kB / 275.1 MB, free: 15.09 MB / 266.7 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,showValue.number,showValue1.number,showValue2.number,triggeredAdd.local_reset,triggeredAdd.local_set,multiSwitch1.expr[1],multiSwitch1.expr[2],booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch1.firstActiveIndex,multiSwitch1.y,$PRE.multiSwitch1.y,multiSwitch1.u[2],multiSwitch1.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart,$whenCondition1) * 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 8.696e-05/0.01236, allocations: 138.5 kB / 275.2 MB, free: 14.95 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.972e-05/0.01238, allocations: 15.98 kB / 275.2 MB, free: 14.93 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000108/0.01249, allocations: 87.09 kB / 275.3 MB, free: 14.84 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.01249, allocations: 4 kB / 275.3 MB, free: 14.83 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.874e-06/0.0125, allocations: 320 / 275.3 MB, free: 14.83 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.0125, allocations: 0 / 275.3 MB, free: 14.83 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002684/0.01277, allocations: 334.4 kB / 275.7 MB, free: 14.48 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.576e-06/0.01277, allocations: 4 kB / 275.7 MB, free: 14.48 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.055e-05/0.01282, allocations: 23.92 kB / 275.7 MB, free: 14.45 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.01282, allocations: 4 kB / 275.7 MB, free: 14.45 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.516e-06/0.01283, allocations: 4 kB / 275.7 MB, free: 14.45 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.01283, allocations: 0 / 275.7 MB, free: 14.45 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.133e-06/0.01284, allocations: 0 / 275.7 MB, free: 14.45 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001279/0.01296, allocations: 198 kB / 275.9 MB, free: 14.23 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.513e-05/0.01298, allocations: 19.8 kB / 275.9 MB, free: 14.21 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.94e-05/0.013, allocations: 7.984 kB / 275.9 MB, free: 14.2 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.751e-05/0.01306, allocations: 11.98 kB / 275.9 MB, free: 14.19 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.256e-05/0.01311, allocations: 27.89 kB / 276 MB, free: 14.16 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.259e-05/0.01312, allocations: 12 kB / 276 MB, free: 14.15 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.931e-05/0.01316, allocations: 55.03 kB / 276 MB, free: 14.1 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01316, allocations: 0 / 276 MB, free: 14.1 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001842/0.01334, allocations: 36 kB / 276.1 MB, free: 14.06 MB / 266.7 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.0001082/0.01345, allocations: 92.28 kB / 276.1 MB, free: 13.96 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001515/0.0136, allocations: 101 kB / 276.2 MB, free: 13.86 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.01361, allocations: 4.062 kB / 276.2 MB, free: 13.86 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.569e-05/0.01366, allocations: 40.78 kB / 276.3 MB, free: 13.82 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001846/0.01385, allocations: 34.66 kB / 276.3 MB, free: 13.79 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005749/0.01442, allocations: 343.9 kB / 276.7 MB, free: 13.43 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.246e-05/0.01447, allocations: 75.98 kB / 276.7 MB, free: 13.33 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.344e-05/0.01453, allocations: 25.47 kB / 276.8 MB, free: 13.3 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.234e-05/0.01462, allocations: 83.3 kB / 276.8 MB, free: 13.22 MB / 266.7 MB Notification: Performance of SimCode: time 1.172e-06/0.01462, allocations: 0 / 276.8 MB, free: 13.22 MB / 266.7 MB Notification: Performance of Templates: time 0.003804/0.01843, allocations: 2.211 MB / 279 MB, free: 11.04 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.makefile [Timeout 660] (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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.621896769851446]