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.0009965/0.0009965, allocations: 75.77 kB / 22.45 MB, free: 2.094 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.001133/0.001133, allocations: 158.9 kB / 25.75 MB, free: 8.949 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 0.8887/0.8887, allocations: 158.6 MB / 187.5 MB, free: 2.941 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.793e-06/1.793e-06, allocations: 0 / 251.1 MB, free: 7.82 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.415e-05/2.594e-05, allocations: 2.312 kB / 251.1 MB, free: 7.816 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002473/0.002499, allocations: 1.849 MB / 252.9 MB, free: 5.949 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009459/0.003445, allocations: 0.6553 MB / 253.6 MB, free: 5.285 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.792e-05/0.003543, allocations: 3.938 kB / 253.6 MB, free: 5.281 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001251/0.003668, allocations: 39.61 kB / 253.6 MB, free: 5.242 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001181/0.003786, allocations: 35.66 kB / 253.7 MB, free: 5.207 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003115/0.004097, allocations: 83.72 kB / 253.8 MB, free: 5.125 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002091/0.004307, allocations: 179.3 kB / 253.9 MB, free: 4.949 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001445/0.004451, allocations: 46.98 kB / 254 MB, free: 4.902 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001286/0.00458, allocations: 103.8 kB / 254.1 MB, free: 4.801 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001213/0.004701, allocations: 63.8 kB / 254.1 MB, free: 4.738 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.555e-05/0.004726, allocations: 16 kB / 254.2 MB, free: 4.723 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.564e-05/0.004792, allocations: 31.91 kB / 254.2 MB, free: 4.691 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 6.13e-05/0.004853, allocations: 47.83 kB / 254.2 MB, free: 4.645 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 5.702e-05/0.00491, allocations: 55.83 kB / 254.3 MB, free: 4.59 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002199/0.00513, allocations: 159.3 kB / 254.4 MB, free: 4.434 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.104e-06/0.005132, allocations: 0 / 254.4 MB, free: 4.434 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.005134, allocations: 0 / 254.4 MB, free: 4.434 MB / 234.7 MB Notification: Performance of Transformations before backend: time 3.998e-06/0.005138, allocations: 0 / 254.4 MB, free: 4.434 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.0005968/0.005735, allocations: 0.523 MB / 255 MB, free: 3.875 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.005773, allocations: 15.98 kB / 255 MB, free: 3.859 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.717e-05/0.00584, allocations: 32.8 kB / 255 MB, free: 3.828 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001998/0.00604, allocations: 184.2 kB / 255.2 MB, free: 3.621 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.221e-05/0.006062, allocations: 16.31 kB / 255.2 MB, free: 3.605 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.15e-05/0.006084, allocations: 24.36 kB / 255.2 MB, free: 3.582 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005515/0.006635, allocations: 189.9 kB / 255.4 MB, free: 3.371 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.006643, allocations: 192 / 255.4 MB, free: 3.371 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.548e-05/0.006658, allocations: 8.359 kB / 255.4 MB, free: 3.363 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.291e-05/0.006681, allocations: 11.94 kB / 255.4 MB, free: 3.352 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001379/0.006819, allocations: 71.89 kB / 255.5 MB, free: 3.281 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006946/0.007514, allocations: 0.8474 MB / 256.4 MB, free: 2.383 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002992/0.007813, allocations: 127.1 kB / 256.5 MB, free: 2.246 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.955e-05/0.007863, allocations: 31.67 kB / 256.5 MB, free: 2.211 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.133e-05/0.007894, allocations: 4 kB / 256.5 MB, free: 2.207 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001469/0.008041, allocations: 132.2 kB / 256.6 MB, free: 2.051 MB / 234.7 MB Notification: Performance of pre-optimization done (n=15): time 1.333e-06/0.008042, allocations: 0 / 256.6 MB, free: 2.051 MB / 234.7 MB Notification: Performance of matching and sorting (n=15): time 0.000278/0.00832, allocations: 165.4 kB / 256.8 MB, free: 1.883 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.208e-05/0.008362, allocations: 77.11 kB / 256.9 MB, free: 1.789 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001485/0.008511, allocations: 266.7 kB / 257.1 MB, free: 1.512 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.712e-05/0.008528, allocations: 33.69 kB / 257.2 MB, free: 1.473 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.11e-05/0.008609, allocations: 191 kB / 257.4 MB, free: 1.281 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.924e-05/0.008638, allocations: 35.73 kB / 257.4 MB, free: 1.246 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.397e-05/0.008702, allocations: 71.3 kB / 257.5 MB, free: 1.168 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.008826, allocations: 0.4962 MB / 258 MB, free: 0.6602 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.407e-05/0.00888, allocations: 35.98 kB / 258 MB, free: 0.625 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.658e-05/0.008967, allocations: 128.8 kB / 258.1 MB, free: 468 kB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001479/0.009114, allocations: 168.7 kB / 258.3 MB, free: 256 kB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.009118, allocations: 3.938 kB / 258.3 MB, free: 252 kB / 234.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002052/0.009323, allocations: 201.2 kB / 258.5 MB, free: 44 kB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/0.009337, allocations: 4 kB / 258.5 MB, free: 40 kB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.009343, allocations: 4 kB / 258.5 MB, free: 36 kB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.009357, allocations: 4 kB / 258.5 MB, free: 32 kB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001177/0.009475, allocations: 35.97 kB / 258.5 MB, free: 15.99 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.009483, allocations: 7.938 kB / 258.5 MB, free: 15.99 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.338e-05/0.009556, allocations: 32.12 kB / 258.6 MB, free: 15.96 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.22e-05/0.009568, allocations: 11.98 kB / 258.6 MB, free: 15.95 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,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.0001074/0.009676, allocations: 178.5 kB / 258.8 MB, free: 15.76 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.644e-05/0.009702, allocations: 27.86 kB / 258.8 MB, free: 15.73 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001567/0.009859, allocations: 111.4 kB / 258.9 MB, free: 15.61 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.009862, allocations: 3.984 kB / 258.9 MB, free: 15.61 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.009866, allocations: 0 / 258.9 MB, free: 15.61 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.009871, allocations: 0 / 258.9 MB, free: 15.61 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003488/0.01022, allocations: 437.2 kB / 259.3 MB, free: 15.14 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.01022, allocations: 0 / 259.3 MB, free: 15.14 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.415e-05/0.01028, allocations: 24.23 kB / 259.4 MB, free: 15.12 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.01028, allocations: 3.938 kB / 259.4 MB, free: 15.11 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.189e-05/0.01029, allocations: 4 kB / 259.4 MB, free: 15.11 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.905e-06/0.01029, allocations: 4 kB / 259.4 MB, free: 15.11 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.01029, allocations: 0 / 259.4 MB, free: 15.11 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000196/0.01049, allocations: 299.2 kB / 259.7 MB, free: 14.79 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.404e-05/0.0105, allocations: 15.84 kB / 259.7 MB, free: 14.78 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.923e-05/0.01052, allocations: 4 kB / 259.7 MB, free: 14.77 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.418e-05/0.01059, allocations: 15.98 kB / 259.7 MB, free: 14.76 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.775e-05/0.01066, allocations: 23.97 kB / 259.7 MB, free: 14.73 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.318e-05/0.01067, allocations: 4 kB / 259.7 MB, free: 14.73 MB / 250.7 MB Notification: Performance of sorting global known variables: time 7.806e-05/0.01075, allocations: 172.1 kB / 259.9 MB, free: 14.56 MB / 250.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.01075, allocations: 0 / 259.9 MB, free: 14.56 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002064/0.01095, allocations: 43.95 kB / 259.9 MB, free: 14.52 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.0001296/0.01108, allocations: 115.2 kB / 260 MB, free: 14.39 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001865/0.01127, allocations: 115.8 kB / 260.2 MB, free: 14.28 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.01127, allocations: 0 / 260.2 MB, free: 14.28 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 7.387e-05/0.01134, allocations: 55.59 kB / 260.2 MB, free: 14.22 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002331/0.01158, allocations: 31.84 kB / 260.2 MB, free: 14.19 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006606/0.01224, allocations: 349.4 kB / 260.6 MB, free: 13.82 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.878e-05/0.01229, allocations: 80.27 kB / 260.7 MB, free: 13.72 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 6.287e-05/0.01235, allocations: 33.64 kB / 260.7 MB, free: 13.69 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.768e-05/0.0124, allocations: 24.5 kB / 260.7 MB, free: 13.66 MB / 250.7 MB Notification: Performance of SimCode: time 1.122e-06/0.0124, allocations: 0 / 260.7 MB, free: 13.66 MB / 250.7 MB Notification: Performance of Templates: time 0.004375/0.01677, allocations: 2.174 MB / 262.9 MB, free: 11.51 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.6342718130908906]