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.000928/0.000928, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.0008904/0.0008904, allocations: 148.8 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 0.9667/0.9667, allocations: 173.4 MB / 201.5 MB, free: 8.289 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 2.184e-06/2.184e-06, allocations: 0 / 268.5 MB, free: 9.812 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.483e-05/2.701e-05, allocations: 10.25 kB / 268.5 MB, free: 9.801 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002612/0.002639, allocations: 1.838 MB / 270.3 MB, free: 7.961 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001162/0.003801, allocations: 0.6249 MB / 270.9 MB, free: 7.336 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001142/0.003915, allocations: 4 kB / 270.9 MB, free: 7.332 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001373/0.004053, allocations: 32.98 kB / 271 MB, free: 7.301 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001252/0.004178, allocations: 31.72 kB / 271 MB, free: 7.27 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003294/0.004507, allocations: 97.62 kB / 271.1 MB, free: 7.176 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001971/0.004704, allocations: 175.3 kB / 271.3 MB, free: 7.004 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001351/0.00484, allocations: 58.45 kB / 271.3 MB, free: 6.941 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000153/0.004993, allocations: 99.72 kB / 271.4 MB, free: 6.844 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001444/0.005137, allocations: 71.77 kB / 271.5 MB, free: 6.773 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.583e-05/0.005163, allocations: 12.94 kB / 271.5 MB, free: 6.762 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.449e-05/0.005237, allocations: 24 kB / 271.5 MB, free: 6.738 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.882e-05/0.005296, allocations: 45.92 kB / 271.6 MB, free: 6.695 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.183e-05/0.005348, allocations: 51.83 kB / 271.6 MB, free: 6.645 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002137/0.005562, allocations: 163.3 kB / 271.8 MB, free: 6.484 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.005565, allocations: 8 kB / 271.8 MB, free: 6.477 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.005566, allocations: 0 / 271.8 MB, free: 6.477 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.711e-06/0.005572, allocations: 0 / 271.8 MB, free: 6.477 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.0005274/0.006099, allocations: 397.2 kB / 272.2 MB, free: 6.066 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.372e-05/0.006133, allocations: 8.031 kB / 272.2 MB, free: 6.059 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.926e-05/0.006182, allocations: 29.39 kB / 272.2 MB, free: 6.031 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002074/0.00639, allocations: 183.7 kB / 272.4 MB, free: 5.828 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.308e-05/0.006413, allocations: 16.38 kB / 272.4 MB, free: 5.812 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.153e-05/0.006434, allocations: 16.38 kB / 272.4 MB, free: 5.797 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002351/0.006669, allocations: 176.9 kB / 272.6 MB, free: 5.598 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.916e-06/0.006678, allocations: 0.6562 kB / 272.6 MB, free: 5.598 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.302e-05/0.006691, allocations: 8 kB / 272.6 MB, free: 5.59 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.981e-05/0.006711, allocations: 9.25 kB / 272.6 MB, free: 5.582 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.658e-05/0.006788, allocations: 51.62 kB / 272.7 MB, free: 5.531 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005605/0.007348, allocations: 0.573 MB / 273.2 MB, free: 4.93 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002366/0.007585, allocations: 144.1 kB / 273.4 MB, free: 4.777 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.556e-05/0.00762, allocations: 24.84 kB / 273.4 MB, free: 4.75 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.672e-05/0.007647, allocations: 4 kB / 273.4 MB, free: 4.746 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000125/0.007772, allocations: 107.8 kB / 273.5 MB, free: 4.621 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.633e-06/0.007774, allocations: 0 / 273.5 MB, free: 4.621 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.000189/0.007963, allocations: 115.2 kB / 273.6 MB, free: 4.5 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.487e-05/0.008008, allocations: 89.09 kB / 273.7 MB, free: 4.395 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001183/0.008126, allocations: 211.4 kB / 273.9 MB, free: 4.176 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.691e-05/0.008143, allocations: 25.7 kB / 273.9 MB, free: 4.145 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.532e-05/0.008208, allocations: 136.2 kB / 274.1 MB, free: 4.008 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.644e-05/0.008235, allocations: 35.72 kB / 274.1 MB, free: 3.973 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.986e-05/0.008294, allocations: 61.66 kB / 274.2 MB, free: 3.906 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.984e-05/0.008384, allocations: 334.7 kB / 274.5 MB, free: 3.57 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.547e-05/0.00843, allocations: 22.81 kB / 274.5 MB, free: 3.547 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.483e-05/0.008495, allocations: 98.45 kB / 274.6 MB, free: 3.422 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001228/0.008617, allocations: 144.8 kB / 274.8 MB, free: 3.246 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.00862, allocations: 0 / 274.8 MB, free: 3.246 MB / 250.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001519/0.008772, allocations: 139.3 kB / 274.9 MB, free: 3.102 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.353e-05/0.008785, allocations: 8 kB / 274.9 MB, free: 3.094 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.008793, allocations: 4 kB / 274.9 MB, free: 3.09 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.008806, allocations: 3.938 kB / 274.9 MB, free: 3.086 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001041/0.00891, allocations: 43.97 kB / 274.9 MB, free: 3.043 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.172e-06/0.008916, allocations: 7.938 kB / 275 MB, free: 3.035 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.637e-05/0.008983, allocations: 19.89 kB / 275 MB, free: 3.016 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.132e-05/0.008994, allocations: 12.3 kB / 275 MB, free: 3.004 MB / 250.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 9.97e-05/0.009094, allocations: 146.6 kB / 275.1 MB, free: 2.852 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.734e-05/0.009121, allocations: 15.98 kB / 275.1 MB, free: 2.836 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001221/0.009243, allocations: 83.12 kB / 275.2 MB, free: 2.746 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.047e-06/0.009247, allocations: 4 kB / 275.2 MB, free: 2.742 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.394e-06/0.00925, allocations: 0 / 275.2 MB, free: 2.742 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.009254, allocations: 0 / 275.2 MB, free: 2.742 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003064/0.00956, allocations: 338.7 kB / 275.6 MB, free: 2.387 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.684e-06/0.009562, allocations: 0 / 275.6 MB, free: 2.387 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.984e-05/0.009612, allocations: 19.92 kB / 275.6 MB, free: 2.367 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.009615, allocations: 0 / 275.6 MB, free: 2.367 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.053e-05/0.009625, allocations: 15.94 kB / 275.6 MB, free: 2.352 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.009627, allocations: 0 / 275.6 MB, free: 2.352 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.009631, allocations: 3.984 kB / 275.6 MB, free: 2.348 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001428/0.009774, allocations: 201.9 kB / 275.8 MB, free: 2.129 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.69e-05/0.00979, allocations: 11.91 kB / 275.8 MB, free: 2.117 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.793e-05/0.009808, allocations: 3.984 kB / 275.8 MB, free: 2.113 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.697e-05/0.009865, allocations: 12 kB / 275.8 MB, free: 2.102 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.405e-05/0.009919, allocations: 27.95 kB / 275.9 MB, free: 2.074 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.071e-05/0.00993, allocations: 0 / 275.9 MB, free: 2.074 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.588e-05/0.009976, allocations: 55.03 kB / 275.9 MB, free: 2.02 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.009976, allocations: 4 kB / 275.9 MB, free: 2.016 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002156/0.01019, allocations: 51.88 kB / 276 MB, free: 1.965 MB / 250.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.0001331/0.01032, allocations: 84.36 kB / 276 MB, free: 1.875 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001821/0.01051, allocations: 92.62 kB / 276.1 MB, free: 1.781 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.081e-05/0.01052, allocations: 4 kB / 276.1 MB, free: 1.777 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 7.687e-05/0.01059, allocations: 45.27 kB / 276.2 MB, free: 1.73 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001924/0.01079, allocations: 39.77 kB / 276.2 MB, free: 1.691 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005916/0.01138, allocations: 344.6 kB / 276.6 MB, free: 1.328 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.533e-05/0.01142, allocations: 71.98 kB / 276.6 MB, free: 1.238 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 6.019e-05/0.01148, allocations: 25.73 kB / 276.7 MB, free: 1.211 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.419e-05/0.01158, allocations: 83.36 kB / 276.7 MB, free: 1.129 MB / 250.7 MB Notification: Performance of SimCode: time 1.022e-06/0.01158, allocations: 0 / 276.7 MB, free: 1.129 MB / 250.7 MB Notification: Performance of Templates: time 0.004317/0.0159, allocations: 2.221 MB / 279 MB, free: 14.95 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 -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.6200836901552975]