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.0007946/0.0007946, allocations: 84 kB / 21.43 MB, free: 3.137 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.003523/0.003523, allocations: 141.6 kB / 24.68 MB, free: 8.891 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.844/0.844, allocations: 173.4 MB / 201.2 MB, free: 9.457 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.212e-06/1.212e-06, allocations: 3.938 kB / 319.7 MB, free: 5.871 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.526e-05/1.647e-05, allocations: 10.22 kB / 319.7 MB, free: 5.859 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.001822/0.001839, allocations: 1.781 MB / 321.5 MB, free: 4.066 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007486/0.002588, allocations: 0.592 MB / 322.1 MB, free: 3.473 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.177e-05/0.002669, allocations: 7.938 kB / 322.1 MB, free: 3.465 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001097/0.002779, allocations: 35.59 kB / 322.1 MB, free: 3.43 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001162/0.002895, allocations: 35.66 kB / 322.1 MB, free: 3.395 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002564/0.003152, allocations: 87.66 kB / 322.2 MB, free: 3.309 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001693/0.003321, allocations: 183.3 kB / 322.4 MB, free: 3.129 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001365/0.003457, allocations: 54.97 kB / 322.5 MB, free: 3.066 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001108/0.003568, allocations: 103.8 kB / 322.6 MB, free: 2.965 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001116/0.00368, allocations: 67.78 kB / 322.6 MB, free: 2.898 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.2e-05/0.003702, allocations: 12 kB / 322.6 MB, free: 2.887 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.644e-05/0.003758, allocations: 27.92 kB / 322.7 MB, free: 2.859 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.57e-05/0.003814, allocations: 47.83 kB / 322.7 MB, free: 2.812 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.815e-05/0.003862, allocations: 47.84 kB / 322.8 MB, free: 2.766 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002019/0.004064, allocations: 211.2 kB / 323 MB, free: 2.559 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.533e-06/0.004065, allocations: 0 / 323 MB, free: 2.559 MB / 282.7 MB Notification: Performance of FrontEnd: time 6.21e-07/0.004066, allocations: 3.938 kB / 323 MB, free: 2.555 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.747e-06/0.00407, allocations: 0 / 323 MB, free: 2.555 MB / 282.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.0005729/0.004643, allocations: 449.2 kB / 323.4 MB, free: 2.086 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.242e-05/0.004675, allocations: 12.92 kB / 323.4 MB, free: 2.074 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.221e-05/0.004717, allocations: 24.8 kB / 323.4 MB, free: 2.051 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000192/0.004909, allocations: 181.4 kB / 323.6 MB, free: 1.848 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.784e-05/0.004927, allocations: 16.36 kB / 323.6 MB, free: 1.832 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.847e-05/0.004946, allocations: 16.38 kB / 323.6 MB, free: 1.816 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002522/0.005198, allocations: 214.7 kB / 323.9 MB, free: 1.586 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.809e-06/0.005208, allocations: 0 / 323.9 MB, free: 1.586 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.311e-05/0.005221, allocations: 4 kB / 323.9 MB, free: 1.582 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.641e-05/0.005237, allocations: 8 kB / 323.9 MB, free: 1.574 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001858/0.005423, allocations: 139.8 kB / 324 MB, free: 1.438 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000612/0.006035, allocations: 0.6722 MB / 324.7 MB, free: 0.7227 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003323/0.006367, allocations: 190.6 kB / 324.9 MB, free: 0.5273 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.505e-05/0.006442, allocations: 56.83 kB / 324.9 MB, free: 480 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.838e-05/0.006471, allocations: 7.984 kB / 324.9 MB, free: 472 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001578/0.006629, allocations: 144.5 kB / 325.1 MB, free: 312 kB / 282.7 MB Notification: Performance of pre-optimization done (n=15): time 1.052e-06/0.00663, allocations: 0 / 325.1 MB, free: 312 kB / 282.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003511/0.006981, allocations: 253.3 kB / 325.3 MB, free: 52 kB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.969e-05/0.00703, allocations: 81.47 kB / 325.4 MB, free: 15.95 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001222/0.007153, allocations: 215.7 kB / 325.6 MB, free: 15.73 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.661e-05/0.007169, allocations: 37.69 kB / 325.6 MB, free: 15.69 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.883e-05/0.007238, allocations: 136.3 kB / 325.8 MB, free: 15.55 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.513e-05/0.007263, allocations: 43.67 kB / 325.8 MB, free: 15.51 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.3e-05/0.007316, allocations: 53.7 kB / 325.9 MB, free: 15.45 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.781e-05/0.007394, allocations: 334.8 kB / 326.2 MB, free: 15.11 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.766e-05/0.007482, allocations: 67.95 kB / 326.3 MB, free: 15.05 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001104/0.007592, allocations: 141.1 kB / 326.4 MB, free: 14.88 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001953/0.007788, allocations: 208.3 kB / 326.6 MB, free: 14.64 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.007791, allocations: 7.984 kB / 326.6 MB, free: 14.64 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000249/0.00804, allocations: 241.3 kB / 326.8 MB, free: 14.39 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.112e-05/0.008051, allocations: 4 kB / 326.9 MB, free: 14.39 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.008057, allocations: 4.312 kB / 326.9 MB, free: 14.39 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.254e-05/0.008069, allocations: 8.234 kB / 326.9 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.58e-05/0.008155, allocations: 43.92 kB / 326.9 MB, free: 14.34 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.641e-06/0.008161, allocations: 4 kB / 326.9 MB, free: 14.33 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.605e-05/0.008237, allocations: 31.86 kB / 326.9 MB, free: 14.3 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.083e-05/0.008248, allocations: 12 kB / 327 MB, free: 14.29 MB / 298.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,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 8.474e-05/0.008332, allocations: 148.1 kB / 327.1 MB, free: 14.13 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.653e-05/0.008349, allocations: 19.86 kB / 327.1 MB, free: 14.11 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001519/0.008501, allocations: 135 kB / 327.3 MB, free: 13.98 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.008504, allocations: 8 kB / 327.3 MB, free: 13.97 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.008507, allocations: 0 / 327.3 MB, free: 13.97 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.337e-06/0.008511, allocations: 0 / 327.3 MB, free: 13.97 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003261/0.008837, allocations: 402 kB / 327.7 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.008838, allocations: 0 / 327.7 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.209e-05/0.008891, allocations: 23.92 kB / 327.7 MB, free: 13.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.008892, allocations: 0 / 327.7 MB, free: 13.52 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.123e-05/0.008904, allocations: 7.984 kB / 327.7 MB, free: 13.51 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.21e-07/0.008904, allocations: 0 / 327.7 MB, free: 13.51 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.008905, allocations: 0 / 327.7 MB, free: 13.51 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002171/0.009122, allocations: 292.3 kB / 328 MB, free: 13.2 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.4e-05/0.009136, allocations: 19.78 kB / 328 MB, free: 13.18 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.618e-05/0.009152, allocations: 7.938 kB / 328 MB, free: 13.18 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.158e-05/0.009224, allocations: 19.97 kB / 328 MB, free: 13.16 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.189e-05/0.009276, allocations: 23.91 kB / 328 MB, free: 13.13 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.254e-05/0.009289, allocations: 7.984 kB / 328 MB, free: 13.12 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.921e-05/0.009358, allocations: 141.5 kB / 328.2 MB, free: 12.99 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009358, allocations: 0 / 328.2 MB, free: 12.99 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001857/0.009543, allocations: 43.95 kB / 328.2 MB, free: 12.95 MB / 298.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.0001094/0.009653, allocations: 107.2 kB / 328.3 MB, free: 12.83 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002255/0.009878, allocations: 155.8 kB / 328.5 MB, free: 12.68 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.00988, allocations: 0 / 328.5 MB, free: 12.68 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.328e-05/0.009973, allocations: 76.39 kB / 328.6 MB, free: 12.61 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002131/0.01019, allocations: 44.14 kB / 328.6 MB, free: 12.56 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004416/0.01063, allocations: 393.8 kB / 329 MB, free: 12.14 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.347e-05/0.0107, allocations: 120.9 kB / 329.1 MB, free: 12.01 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.787e-05/0.01075, allocations: 28.48 kB / 329.1 MB, free: 11.98 MB / 298.7 MB Notification: Performance of SimCode: time 4.9e-07/0.01075, allocations: 0 / 329.1 MB, free: 11.98 MB / 298.7 MB Notification: Performance of Templates: time 0.002627/0.01338, allocations: 2.447 MB / 331.6 MB, free: 9.535 MB / 298.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=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.121509759686887]