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.001314/0.001314, allocations: 78.8 kB / 20.68 MB, free: 1.039 MB / 14.72 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.001416/0.001416, allocations: 150.4 kB / 23.94 MB, free: 4.184 MB / 14.72 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.448/1.448, allocations: 173.4 MB / 200.4 MB, free: 12.91 MB / 190.1 MB " [Timeout remaining time 178] 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.252e-06/1.252e-06, allocations: 0 / 318.9 MB, free: 3.566 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.085e-05/2.21e-05, allocations: 6.219 kB / 318.9 MB, free: 3.559 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002533/0.002555, allocations: 1.781 MB / 320.7 MB, free: 2.344 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001039/0.003593, allocations: 0.6036 MB / 321.3 MB, free: 1.941 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001032/0.003697, allocations: 7.625 kB / 321.3 MB, free: 1.938 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001276/0.003824, allocations: 36.19 kB / 321.3 MB, free: 1.91 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001284/0.003953, allocations: 29.28 kB / 321.4 MB, free: 1.887 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003135/0.004266, allocations: 92.94 kB / 321.5 MB, free: 1.836 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002455/0.004512, allocations: 175.7 kB / 321.6 MB, free: 1.754 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001705/0.004682, allocations: 55.45 kB / 321.7 MB, free: 1.715 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001584/0.00484, allocations: 102.1 kB / 321.8 MB, free: 1.672 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001413/0.004982, allocations: 66.53 kB / 321.9 MB, free: 1.648 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.753e-05/0.005019, allocations: 14.97 kB / 321.9 MB, free: 1.648 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.894e-05/0.005098, allocations: 23.61 kB / 321.9 MB, free: 1.645 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.035e-05/0.005169, allocations: 46.41 kB / 321.9 MB, free: 1.617 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.238e-05/0.005241, allocations: 50.47 kB / 322 MB, free: 1.594 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003072/0.005548, allocations: 206.7 kB / 322.2 MB, free: 1.504 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.005551, allocations: 4.562 kB / 322.2 MB, free: 1.5 MB / 286.1 MB Notification: Performance of FrontEnd: time 5.41e-07/0.005552, allocations: 1.219 kB / 322.2 MB, free: 1.5 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.122e-05/0.005563, allocations: 3.938 kB / 322.2 MB, free: 1.496 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.0008435/0.006407, allocations: 449 kB / 322.6 MB, free: 1.133 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.804e-05/0.006445, allocations: 10.8 kB / 322.6 MB, free: 1.133 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.161e-05/0.006506, allocations: 24.27 kB / 322.7 MB, free: 1.121 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002524/0.006759, allocations: 185 kB / 322.8 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.182e-05/0.00678, allocations: 16.36 kB / 322.9 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.776e-05/0.006818, allocations: 23.53 kB / 322.9 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004348/0.007253, allocations: 208.7 kB / 323.1 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.46e-05/0.007268, allocations: 0 / 323.1 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.28e-05/0.00729, allocations: 8.344 kB / 323.1 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.122e-05/0.007312, allocations: 7.594 kB / 323.1 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003308/0.007642, allocations: 138.6 kB / 323.2 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009565/0.008599, allocations: 0.678 MB / 323.9 MB, free: 236 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000657/0.009256, allocations: 181.7 kB / 324.1 MB, free: 176 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001576/0.009414, allocations: 55.95 kB / 324.2 MB, free: 156 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.482e-05/0.009448, allocations: 7.359 kB / 324.2 MB, free: 152 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002813/0.00973, allocations: 147.7 kB / 324.3 MB, free: 64 kB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.492e-06/0.009731, allocations: 0 / 324.3 MB, free: 64 kB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006801/0.01041, allocations: 246.7 kB / 324.5 MB, free: 15.97 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.842e-05/0.01049, allocations: 80.88 kB / 324.6 MB, free: 15.88 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002457/0.01074, allocations: 215.9 kB / 324.8 MB, free: 15.73 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.572e-05/0.01077, allocations: 32.7 kB / 324.9 MB, free: 15.7 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001242/0.0109, allocations: 144.8 kB / 325 MB, free: 15.56 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.465e-05/0.01094, allocations: 40.88 kB / 325 MB, free: 15.53 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001065/0.01105, allocations: 58.97 kB / 325.1 MB, free: 15.5 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001784/0.01123, allocations: 334.2 kB / 325.4 MB, free: 15.17 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001856/0.01141, allocations: 66.58 kB / 325.5 MB, free: 15.16 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002301/0.01164, allocations: 130.8 kB / 325.6 MB, free: 15.06 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003949/0.01204, allocations: 213.1 kB / 325.8 MB, free: 14.92 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.01204, allocations: 1.188 kB / 325.8 MB, free: 14.92 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004988/0.01254, allocations: 253.8 kB / 326.1 MB, free: 14.81 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.01255, allocations: 5.5 kB / 326.1 MB, free: 14.81 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.01256, allocations: 3.453 kB / 326.1 MB, free: 14.81 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.753e-05/0.01258, allocations: 3.062 kB / 326.1 MB, free: 14.81 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00018/0.01276, allocations: 46.22 kB / 326.1 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.596e-06/0.01277, allocations: 4.125 kB / 326.1 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001786/0.01295, allocations: 36.58 kB / 326.2 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.775e-05/0.01297, allocations: 6.875 kB / 326.2 MB, free: 14.79 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.0001732/0.01314, allocations: 156.4 kB / 326.3 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.357e-05/0.01317, allocations: 16.53 kB / 326.4 MB, free: 14.63 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002718/0.01344, allocations: 138.2 kB / 326.5 MB, free: 14.56 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.01345, allocations: 2.031 kB / 326.5 MB, free: 14.56 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.01345, allocations: 1.375 kB / 326.5 MB, free: 14.56 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/0.01346, allocations: 1.484 kB / 326.5 MB, free: 14.56 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000627/0.01408, allocations: 401.8 kB / 326.9 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.01409, allocations: 0 / 326.9 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001257/0.01421, allocations: 22.52 kB / 326.9 MB, free: 14.26 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.008e-06/0.01422, allocations: 6 kB / 326.9 MB, free: 14.26 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.82e-05/0.01423, allocations: 5.734 kB / 326.9 MB, free: 14.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.01424, allocations: 1.672 kB / 326.9 MB, free: 14.25 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.01424, allocations: 1.062 kB / 326.9 MB, free: 14.25 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004639/0.0147, allocations: 287.6 kB / 327.2 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.745e-05/0.01473, allocations: 17.53 kB / 327.2 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.627e-05/0.01476, allocations: 6.297 kB / 327.2 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001761/0.01494, allocations: 15.62 kB / 327.2 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.152e-05/0.01503, allocations: 31.61 kB / 327.3 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.035e-05/0.01505, allocations: 6.984 kB / 327.3 MB, free: 14.04 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001353/0.01519, allocations: 137.6 kB / 327.4 MB, free: 13.95 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.01519, allocations: 3.938 kB / 327.4 MB, free: 13.94 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003102/0.0155, allocations: 40.12 kB / 327.5 MB, free: 13.93 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.0001795/0.01568, allocations: 108.3 kB / 327.6 MB, free: 13.84 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004465/0.01612, allocations: 162.4 kB / 327.7 MB, free: 13.8 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.01613, allocations: 1.156 kB / 327.7 MB, free: 13.8 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002133/0.01634, allocations: 77.75 kB / 327.8 MB, free: 13.77 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003557/0.0167, allocations: 36.94 kB / 327.8 MB, free: 13.76 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007379/0.01743, allocations: 361.8 kB / 328.2 MB, free: 13.52 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001389/0.01757, allocations: 122.8 kB / 328.3 MB, free: 13.44 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001006/0.01767, allocations: 31.77 kB / 328.3 MB, free: 13.44 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.018e-05/0.01774, allocations: 25.42 kB / 328.4 MB, free: 13.43 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.01774, allocations: 5.625 kB / 328.4 MB, free: 13.42 MB / 302.1 MB Notification: Performance of Templates: time 0.006259/0.024, allocations: 2.146 MB / 330.5 MB, free: 12.95 MB / 302.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.401563294231892]