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.0009369/0.0009369, allocations: 78.28 kB / 21.42 MB, free: 3.078 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.0008669/0.0008669, allocations: 150.3 kB / 24.81 MB, free: 9.285 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.9403/0.9403, allocations: 173.3 MB / 201.4 MB, free: 9.191 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.503e-06/1.503e-06, allocations: 0 / 268.4 MB, free: 6.188 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.092e-05/2.242e-05, allocations: 2.312 kB / 268.4 MB, free: 6.184 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.005681/0.005703, allocations: 1.837 MB / 270.2 MB, free: 4.332 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001054/0.006757, allocations: 0.6269 MB / 270.9 MB, free: 3.703 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001115/0.006868, allocations: 7.938 kB / 270.9 MB, free: 3.695 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001225/0.006991, allocations: 23.73 kB / 270.9 MB, free: 3.672 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001214/0.007112, allocations: 39.59 kB / 270.9 MB, free: 3.633 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003327/0.01044, allocations: 79.78 kB / 271 MB, free: 3.555 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002351/0.01067, allocations: 175.4 kB / 271.2 MB, free: 3.383 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001434/0.01082, allocations: 46.98 kB / 271.2 MB, free: 3.328 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001697/0.01099, allocations: 115.6 kB / 271.3 MB, free: 3.215 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001407/0.01113, allocations: 59.86 kB / 271.4 MB, free: 3.156 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.944e-05/0.01116, allocations: 19.94 kB / 271.4 MB, free: 3.137 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.071e-05/0.01123, allocations: 23.98 kB / 271.4 MB, free: 3.113 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.659e-05/0.01129, allocations: 47.83 kB / 271.5 MB, free: 3.066 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.403e-05/0.01135, allocations: 51.83 kB / 271.5 MB, free: 3.016 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002379/0.01159, allocations: 163.3 kB / 271.7 MB, free: 2.855 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.415e-06/0.01159, allocations: 3.938 kB / 271.7 MB, free: 2.852 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.01159, allocations: 0 / 271.7 MB, free: 2.852 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.226e-06/0.01159, allocations: 4 kB / 271.7 MB, free: 2.848 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.0005925/0.01219, allocations: 0.5113 MB / 272.2 MB, free: 2.301 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.821e-05/0.01222, allocations: 16.92 kB / 272.2 MB, free: 2.285 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.063e-05/0.01229, allocations: 36.78 kB / 272.3 MB, free: 2.25 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004497/0.01273, allocations: 196.2 kB / 272.5 MB, free: 2.031 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.27e-05/0.01276, allocations: 12.38 kB / 272.5 MB, free: 2.02 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.183e-05/0.01278, allocations: 20.31 kB / 272.5 MB, free: 2 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002472/0.01303, allocations: 185.4 kB / 272.7 MB, free: 1.789 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.838e-06/0.01304, allocations: 0 / 272.7 MB, free: 1.789 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.34e-05/0.01305, allocations: 4 kB / 272.7 MB, free: 1.785 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.077e-05/0.01307, allocations: 12 kB / 272.7 MB, free: 1.773 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.812e-05/0.01316, allocations: 51.75 kB / 272.7 MB, free: 1.723 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003743/0.0169, allocations: 0.8167 MB / 273.6 MB, free: 0.8633 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002656/0.01717, allocations: 111.1 kB / 273.7 MB, free: 0.7422 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.081e-05/0.01721, allocations: 31.67 kB / 273.7 MB, free: 0.707 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.157e-05/0.01724, allocations: 4 kB / 273.7 MB, free: 0.7031 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001542/0.01739, allocations: 123.7 kB / 273.8 MB, free: 0.5625 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 2.615e-06/0.0174, allocations: 0 / 273.8 MB, free: 0.5625 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002582/0.01765, allocations: 145.3 kB / 274 MB, free: 424 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.292e-05/0.0177, allocations: 85.11 kB / 274 MB, free: 320 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001642/0.01786, allocations: 266.6 kB / 274.3 MB, free: 36 kB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.849e-05/0.01788, allocations: 29.7 kB / 274.3 MB, free: 0 / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001061/0.01799, allocations: 195 kB / 274.5 MB, free: 15.8 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.172e-05/0.01802, allocations: 31.73 kB / 274.6 MB, free: 15.77 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.253e-05/0.0181, allocations: 71.31 kB / 274.6 MB, free: 15.7 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.01825, allocations: 0.5117 MB / 275.1 MB, free: 15.17 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.672e-05/0.0183, allocations: 19.98 kB / 275.2 MB, free: 15.15 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.318e-05/0.01839, allocations: 120.8 kB / 275.3 MB, free: 14.99 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001547/0.01855, allocations: 157 kB / 275.4 MB, free: 14.8 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.01855, allocations: 0 / 275.4 MB, free: 14.8 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002257/0.01877, allocations: 173.2 kB / 275.6 MB, free: 14.62 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.296e-05/0.01879, allocations: 4 kB / 275.6 MB, free: 14.62 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.01879, allocations: 4 kB / 275.6 MB, free: 14.61 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/0.01881, allocations: 4 kB / 275.6 MB, free: 14.61 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001236/0.01893, allocations: 40.17 kB / 275.6 MB, free: 14.57 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/0.01894, allocations: 11.94 kB / 275.7 MB, free: 14.56 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.942e-05/0.01903, allocations: 27.88 kB / 275.7 MB, free: 14.53 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.073e-05/0.01904, allocations: 4 kB / 275.7 MB, free: 14.53 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 0.0001041/0.01914, allocations: 182.5 kB / 275.9 MB, free: 14.34 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003976/0.01954, allocations: 27.8 kB / 275.9 MB, free: 14.31 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001574/0.0197, allocations: 99.12 kB / 276 MB, free: 14.2 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.0197, allocations: 4 kB / 276 MB, free: 14.2 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.174e-06/0.0197, allocations: 0 / 276 MB, free: 14.2 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.012e-06/0.01971, allocations: 7.984 kB / 276 MB, free: 14.19 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003668/0.02008, allocations: 389.7 kB / 276.4 MB, free: 13.78 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.02008, allocations: 4 kB / 276.4 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.153e-05/0.02014, allocations: 12 kB / 276.4 MB, free: 13.76 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.02014, allocations: 0 / 276.4 MB, free: 13.76 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.223e-05/0.02016, allocations: 7.984 kB / 276.4 MB, free: 13.75 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.02016, allocations: 4 kB / 276.4 MB, free: 13.75 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.02016, allocations: 0 / 276.4 MB, free: 13.75 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002176/0.02038, allocations: 283.3 kB / 276.7 MB, free: 13.45 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.873e-05/0.0204, allocations: 19.84 kB / 276.7 MB, free: 13.43 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.13e-05/0.02042, allocations: 7.984 kB / 276.7 MB, free: 13.42 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.852e-05/0.02051, allocations: 16.06 kB / 276.7 MB, free: 13.41 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.715e-05/0.02056, allocations: 23.95 kB / 276.8 MB, free: 13.38 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.278e-05/0.02058, allocations: 4 kB / 276.8 MB, free: 13.38 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.917e-05/0.02066, allocations: 173.4 kB / 276.9 MB, free: 13.21 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02066, allocations: 0 / 276.9 MB, free: 13.21 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002865/0.02094, allocations: 43.83 kB / 277 MB, free: 13.17 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.0001391/0.02108, allocations: 111.2 kB / 277.1 MB, free: 13.05 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001397/0.02122, allocations: 103.4 kB / 277.2 MB, free: 12.95 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.02122, allocations: 0 / 277.2 MB, free: 12.95 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.706e-05/0.02128, allocations: 47.59 kB / 277.2 MB, free: 12.89 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002123/0.02149, allocations: 34.5 kB / 277.3 MB, free: 12.86 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005237/0.02202, allocations: 346.8 kB / 277.6 MB, free: 12.5 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.78e-05/0.02206, allocations: 75.98 kB / 277.7 MB, free: 12.4 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.148e-05/0.02212, allocations: 13.48 kB / 277.7 MB, free: 12.39 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.884e-05/0.02221, allocations: 102.2 kB / 277.8 MB, free: 12.29 MB / 266.7 MB Notification: Performance of SimCode: time 7.22e-07/0.02221, allocations: 0 / 277.8 MB, free: 12.29 MB / 266.7 MB Notification: Performance of Templates: time 0.004277/0.02648, allocations: 2.366 MB / 280.2 MB, free: 9.953 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.53948277188465]