Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001296/0.001296, allocations: 107.6 kB / 21.19 MB, free: 0.6484 MB / 14.72 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.001482/0.001482, allocations: 213.1 kB / 24.48 MB, free: 3.957 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.562/1.562, allocations: 230.6 MB / 258.2 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Blocks.Examples.IntegerNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001578/0.001578, allocations: 43.92 kB / 379 MB, free: 2.477 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.24/0.2416, allocations: 53.37 MB / 432.3 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003386/0.245, allocations: 1.816 MB / 434.1 MB, free: 4.883 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001456/0.2465, allocations: 0.6621 MB / 434.8 MB, free: 4.215 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001143/0.2466, allocations: 7.938 kB / 434.8 MB, free: 4.207 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001473/0.2467, allocations: 31.66 kB / 434.8 MB, free: 4.176 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001392/0.2469, allocations: 27.75 kB / 434.9 MB, free: 4.148 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003509/0.2472, allocations: 99.7 kB / 435 MB, free: 4.051 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00026/0.2475, allocations: 175.5 kB / 435.1 MB, free: 3.879 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001888/0.2477, allocations: 58.59 kB / 435.2 MB, free: 3.816 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001939/0.2479, allocations: 87.69 kB / 435.3 MB, free: 3.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001651/0.248, allocations: 91.53 kB / 435.4 MB, free: 3.641 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.339e-05/0.2481, allocations: 12 kB / 435.4 MB, free: 3.629 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.503e-05/0.2481, allocations: 27.94 kB / 435.4 MB, free: 3.602 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.113e-05/0.2482, allocations: 47.84 kB / 435.5 MB, free: 3.555 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.22e-05/0.2483, allocations: 75.53 kB / 435.5 MB, free: 3.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003145/0.2486, allocations: 210 kB / 435.7 MB, free: 3.281 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.2486, allocations: 0 / 435.7 MB, free: 3.281 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2486, allocations: 0 / 435.7 MB, free: 3.281 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.156e-05/0.2486, allocations: 0 / 435.7 MB, free: 3.281 MB / 334.1 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.0009642/0.2496, allocations: 445.2 kB / 436.2 MB, free: 2.816 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.245e-05/0.2496, allocations: 8.031 kB / 436.2 MB, free: 2.809 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001594/0.2498, allocations: 36.78 kB / 436.2 MB, free: 2.773 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003278/0.2501, allocations: 191.8 kB / 436.4 MB, free: 2.559 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.306e-05/0.2502, allocations: 12.38 kB / 436.4 MB, free: 2.547 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.884e-05/0.2502, allocations: 16.38 kB / 436.4 MB, free: 2.531 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004134/0.2506, allocations: 218.6 kB / 436.6 MB, free: 2.301 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.496e-05/0.2506, allocations: 3.938 kB / 436.6 MB, free: 2.297 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.862e-05/0.2506, allocations: 4 kB / 436.6 MB, free: 2.293 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.221e-05/0.2507, allocations: 12 kB / 436.7 MB, free: 2.281 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003444/0.251, allocations: 147.8 kB / 436.8 MB, free: 2.137 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001072/0.2521, allocations: 0.6645 MB / 437.5 MB, free: 1.43 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006094/0.2527, allocations: 186.6 kB / 437.7 MB, free: 1.238 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001501/0.2528, allocations: 56.81 kB / 437.7 MB, free: 1.18 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.204e-05/0.2529, allocations: 4 kB / 437.7 MB, free: 1.176 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003046/0.2532, allocations: 160.8 kB / 437.9 MB, free: 1 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.483e-06/0.2532, allocations: 0 / 437.9 MB, free: 1 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005929/0.2538, allocations: 237.4 kB / 438.1 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.386e-05/0.2538, allocations: 89.09 kB / 438.2 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002223/0.2541, allocations: 211.7 kB / 438.4 MB, free: 452 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.859e-05/0.2541, allocations: 33.7 kB / 438.4 MB, free: 412 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001215/0.2542, allocations: 148.2 kB / 438.6 MB, free: 260 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.84e-05/0.2543, allocations: 35.73 kB / 438.6 MB, free: 224 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.777e-05/0.2543, allocations: 57.69 kB / 438.7 MB, free: 160 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000197/0.2545, allocations: 334.8 kB / 439 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001883/0.2547, allocations: 67.95 kB / 439.1 MB, free: 15.75 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002163/0.2549, allocations: 136.9 kB / 439.2 MB, free: 15.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003691/0.2553, allocations: 212.3 kB / 439.4 MB, free: 15.35 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.2553, allocations: 0 / 439.4 MB, free: 15.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004759/0.2558, allocations: 257.1 kB / 439.6 MB, free: 15.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.32e-05/0.2558, allocations: 8 kB / 439.7 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.2558, allocations: 0 / 439.7 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.926e-05/0.2558, allocations: 4.312 kB / 439.7 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001729/0.256, allocations: 39.91 kB / 439.7 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.155e-05/0.256, allocations: 7.938 kB / 439.7 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001609/0.2562, allocations: 36.12 kB / 439.7 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.934e-05/0.2562, allocations: 11.98 kB / 439.8 MB, free: 14.99 MB / 350.1 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.0001652/0.2564, allocations: 147.8 kB / 439.9 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.252e-05/0.2564, allocations: 23.83 kB / 439.9 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002655/0.2567, allocations: 123.1 kB / 440 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.2567, allocations: 3.984 kB / 440 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.2567, allocations: 0 / 440 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.324e-06/0.2567, allocations: 4 kB / 440 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006069/0.2573, allocations: 409.8 kB / 440.4 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.2573, allocations: 0 / 440.4 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001206/0.2574, allocations: 23.98 kB / 440.5 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.2574, allocations: 0 / 440.5 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.787e-05/0.2574, allocations: 7.984 kB / 440.5 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.2574, allocations: 0 / 440.5 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2574, allocations: 0 / 440.5 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004364/0.2579, allocations: 292.1 kB / 440.8 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.876e-05/0.2579, allocations: 19.84 kB / 440.8 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.037e-05/0.2579, allocations: 7.938 kB / 440.8 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001593/0.2581, allocations: 19.97 kB / 440.8 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.236e-05/0.2582, allocations: 23.91 kB / 440.8 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.067e-05/0.2582, allocations: 8 kB / 440.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001368/0.2583, allocations: 141.5 kB / 441 MB, free: 13.69 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2583, allocations: 192 / 441 MB, free: 13.69 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003235/0.2587, allocations: 43.94 kB / 441 MB, free: 13.64 MB / 350.1 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.0001663/0.2588, allocations: 115.1 kB / 441.1 MB, free: 13.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000415/0.2592, allocations: 159.7 kB / 441.3 MB, free: 13.37 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.2592, allocations: 0 / 441.3 MB, free: 13.37 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001928/0.2594, allocations: 75.89 kB / 441.4 MB, free: 13.29 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003585/0.2598, allocations: 24.73 kB / 441.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000786/0.2606, allocations: 395.5 kB / 441.8 MB, free: 12.85 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001503/0.2607, allocations: 132.9 kB / 441.9 MB, free: 12.7 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.054e-05/0.2608, allocations: 23.42 kB / 441.9 MB, free: 12.67 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2608, allocations: 0 / 441.9 MB, free: 12.67 MB / 350.1 MB Notification: Performance of Templates: time 0.004983/0.2658, allocations: 2.476 MB / 444.4 MB, free: 10.2 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 7.3119514640420675]