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.001045/0.001045, allocations: 80.39 kB / 22.21 MB, free: 2.281 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.001055/0.001055, allocations: 164.7 kB / 25.61 MB, free: 8.879 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.07/1.07, allocations: 158.6 MB / 187.5 MB, free: 2.801 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 2.164e-06/2.164e-06, allocations: 0 / 251.4 MB, free: 7.262 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.499e-05/2.715e-05, allocations: 2.312 kB / 251.4 MB, free: 7.258 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.00239/0.002417, allocations: 1.845 MB / 253.3 MB, free: 5.395 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009534/0.00337, allocations: 0.6514 MB / 253.9 MB, free: 4.734 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.698e-05/0.003467, allocations: 7.938 kB / 254 MB, free: 4.727 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001249/0.003592, allocations: 27.61 kB / 254 MB, free: 4.699 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001154/0.003707, allocations: 39.72 kB / 254 MB, free: 4.66 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003145/0.004022, allocations: 91.7 kB / 254.1 MB, free: 4.57 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002059/0.004228, allocations: 175.3 kB / 254.3 MB, free: 4.398 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001678/0.004396, allocations: 50.98 kB / 254.3 MB, free: 4.348 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001647/0.00456, allocations: 107.8 kB / 254.4 MB, free: 4.242 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001596/0.00472, allocations: 59.8 kB / 254.5 MB, free: 4.184 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.137e-05/0.004751, allocations: 12 kB / 254.5 MB, free: 4.172 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.441e-05/0.004846, allocations: 31.92 kB / 254.5 MB, free: 4.141 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 6.509e-05/0.004911, allocations: 51.83 kB / 254.6 MB, free: 4.09 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 5.673e-05/0.004968, allocations: 51.83 kB / 254.6 MB, free: 4.039 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002221/0.00519, allocations: 163.2 kB / 254.8 MB, free: 3.879 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.654e-06/0.005191, allocations: 0 / 254.8 MB, free: 3.879 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.605e-06/0.005194, allocations: 4 kB / 254.8 MB, free: 3.875 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.408e-06/0.005198, allocations: 0 / 254.8 MB, free: 3.875 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.0005441/0.005742, allocations: 0.5152 MB / 255.3 MB, free: 3.324 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.005782, allocations: 15.98 kB / 255.3 MB, free: 3.309 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.189e-05/0.005834, allocations: 40.77 kB / 255.4 MB, free: 3.27 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001781/0.006012, allocations: 180.2 kB / 255.5 MB, free: 3.066 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.199e-05/0.006034, allocations: 12.38 kB / 255.6 MB, free: 3.055 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.944e-05/0.006054, allocations: 20.38 kB / 255.6 MB, free: 3.035 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002141/0.006268, allocations: 177.9 kB / 255.8 MB, free: 2.836 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.006276, allocations: 4.125 kB / 255.8 MB, free: 2.832 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.152e-05/0.006288, allocations: 4.375 kB / 255.8 MB, free: 2.828 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.596e-05/0.006314, allocations: 15.94 kB / 255.8 MB, free: 2.812 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.129e-05/0.006395, allocations: 55.75 kB / 255.8 MB, free: 2.758 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006485/0.007044, allocations: 0.8128 MB / 256.6 MB, free: 1.902 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002379/0.007281, allocations: 111.2 kB / 256.8 MB, free: 1.781 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.732e-05/0.007319, allocations: 27.67 kB / 256.8 MB, free: 1.75 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.413e-05/0.007353, allocations: 7.938 kB / 256.8 MB, free: 1.742 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001485/0.007501, allocations: 132.2 kB / 256.9 MB, free: 1.586 MB / 234.7 MB Notification: Performance of pre-optimization done (n=15): time 1.613e-06/0.007503, allocations: 0 / 256.9 MB, free: 1.586 MB / 234.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002377/0.007741, allocations: 133.5 kB / 257 MB, free: 1.449 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.087e-05/0.007782, allocations: 81.11 kB / 257.1 MB, free: 1.352 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001394/0.007921, allocations: 266.6 kB / 257.4 MB, free: 1.074 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.704e-05/0.007938, allocations: 33.64 kB / 257.4 MB, free: 1.035 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003629/0.008301, allocations: 191.1 kB / 257.6 MB, free: 0.8438 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.443e-05/0.008325, allocations: 31.73 kB / 257.6 MB, free: 0.8125 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.352e-05/0.008389, allocations: 75.25 kB / 257.7 MB, free: 0.7305 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.008503, allocations: 0.5001 MB / 258.2 MB, free: 224 kB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.286e-05/0.008535, allocations: 23.92 kB / 258.2 MB, free: 200 kB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.308e-05/0.008608, allocations: 132.7 kB / 258.4 MB, free: 24 kB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001326/0.008741, allocations: 152.7 kB / 258.5 MB, free: 15.83 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.008743, allocations: 0 / 258.5 MB, free: 15.83 MB / 250.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001708/0.008914, allocations: 181.2 kB / 258.7 MB, free: 15.65 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.144e-05/0.008925, allocations: 4 kB / 258.7 MB, free: 15.64 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.008932, allocations: 4.312 kB / 258.7 MB, free: 15.64 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.195e-05/0.008944, allocations: 4 kB / 258.7 MB, free: 15.64 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.714e-05/0.009041, allocations: 39.92 kB / 258.7 MB, free: 15.6 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.087e-06/0.009045, allocations: 4 kB / 258.7 MB, free: 15.59 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.354e-05/0.009129, allocations: 36.06 kB / 258.8 MB, free: 15.56 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.196e-05/0.009141, allocations: 12 kB / 258.8 MB, free: 15.55 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.489e-05/0.009236, allocations: 186.4 kB / 259 MB, free: 15.35 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.288e-05/0.009258, allocations: 23.84 kB / 259 MB, free: 15.33 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001309/0.009389, allocations: 99.44 kB / 259.1 MB, free: 15.22 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.407e-06/0.009393, allocations: 4 kB / 259.1 MB, free: 15.22 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.933e-06/0.009395, allocations: 0 / 259.1 MB, free: 15.22 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.009398, allocations: 0 / 259.1 MB, free: 15.22 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003224/0.009721, allocations: 401.7 kB / 259.5 MB, free: 14.79 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.009723, allocations: 8 kB / 259.5 MB, free: 14.79 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.756e-05/0.009771, allocations: 12 kB / 259.5 MB, free: 14.77 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.826e-06/0.009773, allocations: 0 / 259.5 MB, free: 14.77 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.077e-05/0.009784, allocations: 7.984 kB / 259.5 MB, free: 14.77 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/0.009787, allocations: 7.938 kB / 259.5 MB, free: 14.76 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.009787, allocations: 0 / 259.5 MB, free: 14.76 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001669/0.009954, allocations: 270.7 kB / 259.8 MB, free: 14.47 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.784e-05/0.009972, allocations: 23.84 kB / 259.8 MB, free: 14.45 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.837e-05/0.00999, allocations: 3.984 kB / 259.8 MB, free: 14.45 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6e-05/0.01005, allocations: 12 kB / 259.8 MB, free: 14.43 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.133e-05/0.0101, allocations: 23.95 kB / 259.9 MB, free: 14.41 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.124e-05/0.01011, allocations: 4 kB / 259.9 MB, free: 14.41 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.577e-05/0.01018, allocations: 172.1 kB / 260 MB, free: 14.24 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01018, allocations: 0 / 260 MB, free: 14.24 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001892/0.01037, allocations: 39.89 kB / 260.1 MB, free: 14.2 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.0001145/0.01048, allocations: 111.2 kB / 260.2 MB, free: 14.08 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001492/0.01063, allocations: 99.94 kB / 260.3 MB, free: 13.98 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.362e-06/0.01063, allocations: 4.062 kB / 260.3 MB, free: 13.97 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 5.793e-05/0.01069, allocations: 47.59 kB / 260.3 MB, free: 13.92 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002232/0.01091, allocations: 36.03 kB / 260.4 MB, free: 13.89 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000572/0.01149, allocations: 353.3 kB / 260.7 MB, free: 13.51 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.043e-05/0.01154, allocations: 76.28 kB / 260.8 MB, free: 13.42 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.958e-05/0.0116, allocations: 25.47 kB / 260.8 MB, free: 13.39 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.484e-05/0.01169, allocations: 98.19 kB / 260.9 MB, free: 13.3 MB / 250.7 MB Notification: Performance of SimCode: time 1.152e-06/0.01169, allocations: 7.938 kB / 260.9 MB, free: 13.29 MB / 250.7 MB Notification: Performance of Templates: time 0.004178/0.01587, allocations: 2.352 MB / 263.3 MB, free: 10.96 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.9293585931882262]