Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001452/0.001452, allocations: 81.08 kB / 22.99 MB, free: 1.5 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001698/0.001698, allocations: 176.3 kB / 26.4 MB, free: 7.969 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.01/1.01, allocations: 158.6 MB / 188.3 MB, free: 2.809 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1") translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5052,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 7.875 kB / 252.2 MB, free: 7.281 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.741e-05/2.899e-05, allocations: 2.312 kB / 252.2 MB, free: 7.277 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002435/0.002464, allocations: 1.841 MB / 254.1 MB, free: 5.418 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008126/0.003277, allocations: 0.6591 MB / 254.7 MB, free: 4.75 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.177e-05/0.003359, allocations: 4 kB / 254.7 MB, free: 4.746 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001039/0.003462, allocations: 39.59 kB / 254.8 MB, free: 4.707 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 9.698e-05/0.003559, allocations: 27.73 kB / 254.8 MB, free: 4.68 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002123/0.003772, allocations: 87.7 kB / 254.9 MB, free: 4.594 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001663/0.003938, allocations: 183.3 kB / 255.1 MB, free: 4.414 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002587/0.004197, allocations: 43 kB / 255.1 MB, free: 4.371 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001181/0.004315, allocations: 103.8 kB / 255.2 MB, free: 4.27 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001111/0.004426, allocations: 67.78 kB / 255.3 MB, free: 4.203 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.241e-05/0.004448, allocations: 19.94 kB / 255.3 MB, free: 4.184 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.388e-05/0.004502, allocations: 23.92 kB / 255.3 MB, free: 4.16 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 5.338e-05/0.004556, allocations: 47.83 kB / 255.4 MB, free: 4.113 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 4.88e-05/0.004604, allocations: 55.83 kB / 255.4 MB, free: 4.059 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001721/0.004777, allocations: 159.3 kB / 255.6 MB, free: 3.902 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.703e-06/0.004778, allocations: 4 kB / 255.6 MB, free: 3.898 MB / 234.7 MB Notification: Performance of FrontEnd: time 7.92e-07/0.004779, allocations: 0 / 255.6 MB, free: 3.898 MB / 234.7 MB Notification: Performance of Transformations before backend: time 3.637e-06/0.004783, allocations: 0 / 255.6 MB, free: 3.898 MB / 234.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.0005173/0.0053, allocations: 0.523 MB / 256.1 MB, free: 3.34 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.804e-05/0.005328, allocations: 11.98 kB / 256.1 MB, free: 3.328 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.033e-05/0.005378, allocations: 36.8 kB / 256.2 MB, free: 3.293 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001774/0.005556, allocations: 184.2 kB / 256.3 MB, free: 3.086 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.945e-05/0.005575, allocations: 16.36 kB / 256.4 MB, free: 3.07 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.775e-05/0.005593, allocations: 16.38 kB / 256.4 MB, free: 3.055 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002067/0.0058, allocations: 181.8 kB / 256.5 MB, free: 2.852 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.005809, allocations: 192 / 256.5 MB, free: 2.852 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.323e-05/0.005822, allocations: 8.375 kB / 256.6 MB, free: 2.844 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.858e-05/0.005841, allocations: 7.938 kB / 256.6 MB, free: 2.836 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.728e-05/0.005918, allocations: 55.75 kB / 256.6 MB, free: 2.781 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006642/0.006582, allocations: 0.8167 MB / 257.4 MB, free: 1.922 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002285/0.006811, allocations: 115.2 kB / 257.5 MB, free: 1.797 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.317e-05/0.006844, allocations: 23.67 kB / 257.6 MB, free: 1.77 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.362e-05/0.006868, allocations: 7.938 kB / 257.6 MB, free: 1.762 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001291/0.006997, allocations: 124.2 kB / 257.7 MB, free: 1.617 MB / 234.7 MB Notification: Performance of pre-optimization done (n=15): time 1.102e-06/0.006998, allocations: 0 / 257.7 MB, free: 1.617 MB / 234.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002169/0.007215, allocations: 141.5 kB / 257.8 MB, free: 1.469 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.711e-05/0.007252, allocations: 81.11 kB / 257.9 MB, free: 1.371 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001274/0.007379, allocations: 266.5 kB / 258.2 MB, free: 1.094 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.6e-05/0.007395, allocations: 29.7 kB / 258.2 MB, free: 1.059 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.321e-05/0.007479, allocations: 195 kB / 258.4 MB, free: 0.8633 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.893e-05/0.007507, allocations: 39.72 kB / 258.4 MB, free: 0.8242 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.316e-05/0.007571, allocations: 67.25 kB / 258.5 MB, free: 0.75 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.000374/0.007945, allocations: 0.504 MB / 259 MB, free: 240 kB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.394e-05/0.007979, allocations: 23.97 kB / 259 MB, free: 216 kB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.926e-05/0.008048, allocations: 116.8 kB / 259.1 MB, free: 56 kB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000131/0.008179, allocations: 164.7 kB / 259.3 MB, free: 15.85 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.008181, allocations: 0 / 259.3 MB, free: 15.85 MB / 250.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001716/0.008352, allocations: 169.7 kB / 259.5 MB, free: 15.68 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.111e-05/0.008364, allocations: 4 kB / 259.5 MB, free: 15.67 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.998e-06/0.008368, allocations: 4 kB / 259.5 MB, free: 15.67 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.338e-06/0.008377, allocations: 4 kB / 259.5 MB, free: 15.66 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000156/0.008533, allocations: 47.91 kB / 259.5 MB, free: 15.62 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.008538, allocations: 4 kB / 259.5 MB, free: 15.61 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.036e-05/0.008608, allocations: 31.83 kB / 259.6 MB, free: 15.58 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.052e-05/0.008619, allocations: 4 kB / 259.6 MB, free: 15.58 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.187e-05/0.00871, allocations: 182.6 kB / 259.7 MB, free: 15.39 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.797e-05/0.008738, allocations: 23.84 kB / 259.8 MB, free: 15.36 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001418/0.00888, allocations: 115.3 kB / 259.9 MB, free: 15.25 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.008883, allocations: 4 kB / 259.9 MB, free: 15.24 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.844e-06/0.008885, allocations: 0 / 259.9 MB, free: 15.24 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.008888, allocations: 0 / 259.9 MB, free: 15.24 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002986/0.009187, allocations: 397.7 kB / 260.3 MB, free: 14.82 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.009188, allocations: 0 / 260.3 MB, free: 14.82 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.942e-05/0.009237, allocations: 23.92 kB / 260.3 MB, free: 14.8 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.009239, allocations: 0 / 260.3 MB, free: 14.8 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.967e-06/0.009248, allocations: 8 kB / 260.3 MB, free: 14.79 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.00925, allocations: 3.984 kB / 260.3 MB, free: 14.79 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.009251, allocations: 0 / 260.3 MB, free: 14.79 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001772/0.009429, allocations: 274.7 kB / 260.6 MB, free: 14.5 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.72e-05/0.009446, allocations: 19.84 kB / 260.6 MB, free: 14.48 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.767e-05/0.009464, allocations: 4 kB / 260.6 MB, free: 14.47 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.377e-05/0.009527, allocations: 11.98 kB / 260.6 MB, free: 14.46 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.047e-05/0.009578, allocations: 27.91 kB / 260.6 MB, free: 14.43 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.255e-05/0.00959, allocations: 7.984 kB / 260.6 MB, free: 14.43 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.293e-05/0.009653, allocations: 168.1 kB / 260.8 MB, free: 14.26 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.009653, allocations: 4 kB / 260.8 MB, free: 14.26 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001937/0.009847, allocations: 43.89 kB / 260.9 MB, free: 14.21 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.0001102/0.009957, allocations: 99.25 kB / 261 MB, free: 14.11 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001434/0.0101, allocations: 99.48 kB / 261 MB, free: 14 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.092e-06/0.0101, allocations: 0 / 261 MB, free: 14 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 5.967e-05/0.01016, allocations: 48.11 kB / 261.1 MB, free: 13.95 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000224/0.01039, allocations: 48.34 kB / 261.1 MB, free: 13.91 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005195/0.0109, allocations: 349.3 kB / 261.5 MB, free: 13.54 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.217e-05/0.01095, allocations: 76.28 kB / 261.6 MB, free: 13.44 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.22e-05/0.011, allocations: 25.47 kB / 261.6 MB, free: 13.42 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.741e-05/0.01109, allocations: 98.19 kB / 261.7 MB, free: 13.32 MB / 250.7 MB Notification: Performance of SimCode: time 5.81e-07/0.01109, allocations: 0 / 261.7 MB, free: 13.32 MB / 250.7 MB Notification: Performance of Templates: time 0.006698/0.01779, allocations: 2.401 MB / 264.1 MB, free: 10.95 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.828580887056887]