Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001324/0.001324, allocations: 109.1 kB / 21.19 MB, free: 0.7617 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001497/0.001497, allocations: 217 kB / 24.5 MB, free: 4.133 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.434/1.434, allocations: 230.5 MB / 258.1 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5052,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1") translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5052,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002069/0.002069, allocations: 63.89 kB / 379 MB, free: 2.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2383/0.2404, allocations: 53.4 MB / 432.4 MB, free: 6.746 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003191/0.2436, allocations: 1.862 MB / 434.3 MB, free: 4.883 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001331/0.2449, allocations: 0.7128 MB / 435 MB, free: 4.164 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001042/0.245, allocations: 7.938 kB / 435 MB, free: 4.156 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001476/0.2452, allocations: 31.59 kB / 435 MB, free: 4.125 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001364/0.2453, allocations: 27.73 kB / 435.1 MB, free: 4.098 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003296/0.2456, allocations: 99.78 kB / 435.2 MB, free: 4 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002606/0.2459, allocations: 179.4 kB / 435.3 MB, free: 3.824 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001653/0.2461, allocations: 50.94 kB / 435.4 MB, free: 3.766 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001865/0.2463, allocations: 87.62 kB / 435.5 MB, free: 3.68 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001746/0.2464, allocations: 91.59 kB / 435.6 MB, free: 3.59 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.993e-05/0.2465, allocations: 12 kB / 435.6 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.301e-05/0.2465, allocations: 28 kB / 435.6 MB, free: 3.551 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.114e-05/0.2466, allocations: 39.84 kB / 435.6 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000102/0.2467, allocations: 87.47 kB / 435.7 MB, free: 3.426 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000308/0.247, allocations: 212.2 kB / 435.9 MB, free: 3.227 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.247, allocations: 4 kB / 435.9 MB, free: 3.223 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.247, allocations: 0 / 435.9 MB, free: 3.223 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.338e-06/0.247, allocations: 0 / 435.9 MB, free: 3.223 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.0009373/0.248, allocations: 445.2 kB / 436.4 MB, free: 2.758 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.311e-05/0.248, allocations: 12.03 kB / 436.4 MB, free: 2.746 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001603/0.2482, allocations: 32.78 kB / 436.4 MB, free: 2.715 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003047/0.2485, allocations: 200 kB / 436.6 MB, free: 2.492 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.921e-05/0.2485, allocations: 16.31 kB / 436.6 MB, free: 2.477 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.198e-05/0.2485, allocations: 16.38 kB / 436.6 MB, free: 2.461 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004052/0.2489, allocations: 213.9 kB / 436.9 MB, free: 2.234 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.2489, allocations: 0 / 436.9 MB, free: 2.234 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.287e-05/0.249, allocations: 15.98 kB / 436.9 MB, free: 2.219 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.07e-05/0.249, allocations: 8 kB / 436.9 MB, free: 2.211 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003332/0.2493, allocations: 143.8 kB / 437 MB, free: 2.07 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001103/0.2504, allocations: 0.7495 MB / 437.8 MB, free: 1.266 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006119/0.251, allocations: 178.7 kB / 437.9 MB, free: 1.082 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001465/0.2512, allocations: 52.83 kB / 438 MB, free: 1.027 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.52e-05/0.2512, allocations: 7.984 kB / 438 MB, free: 1.02 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002839/0.2515, allocations: 145 kB / 438.1 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.303e-06/0.2515, allocations: 0 / 438.1 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006095/0.2521, allocations: 245.4 kB / 438.4 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.758e-05/0.2522, allocations: 81.11 kB / 438.5 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002175/0.2524, allocations: 224.1 kB / 438.7 MB, free: 296 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.688e-05/0.2524, allocations: 33.7 kB / 438.7 MB, free: 256 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001009/0.2525, allocations: 140.3 kB / 438.9 MB, free: 112 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.98e-05/0.2526, allocations: 39.72 kB / 438.9 MB, free: 72 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001137/0.2527, allocations: 69.72 kB / 439 MB, free: 15.99 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001586/0.2528, allocations: 330.8 kB / 439.3 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001625/0.253, allocations: 63.95 kB / 439.3 MB, free: 15.6 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002154/0.2532, allocations: 133.2 kB / 439.5 MB, free: 15.44 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003955/0.2536, allocations: 220.3 kB / 439.7 MB, free: 15.19 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.2536, allocations: 0 / 439.7 MB, free: 15.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004864/0.2541, allocations: 245.2 kB / 439.9 MB, free: 14.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/0.2541, allocations: 11.12 kB / 439.9 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.2541, allocations: 4.312 kB / 439.9 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.2541, allocations: 4 kB / 440 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001903/0.2543, allocations: 43.91 kB / 440 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.238e-05/0.2543, allocations: 11.94 kB / 440 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001713/0.2545, allocations: 31.83 kB / 440 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.955e-05/0.2545, allocations: 11.94 kB / 440 MB, free: 14.83 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.0001492/0.2547, allocations: 148.2 kB / 440.2 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.187e-05/0.2547, allocations: 19.91 kB / 440.2 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002647/0.255, allocations: 131 kB / 440.3 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/0.255, allocations: 4 kB / 440.3 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.952e-06/0.255, allocations: 3.984 kB / 440.3 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.255, allocations: 3.984 kB / 440.4 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007845/0.2558, allocations: 453.2 kB / 440.8 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.948e-06/0.2558, allocations: 4 kB / 440.8 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001415/0.2559, allocations: 19.98 kB / 440.8 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.2559, allocations: 0 / 440.8 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.735e-05/0.256, allocations: 8 kB / 440.8 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.661e-06/0.256, allocations: 3.938 kB / 440.8 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.256, allocations: 3.938 kB / 440.8 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004574/0.2564, allocations: 288.2 kB / 441.1 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.073e-05/0.2565, allocations: 19.84 kB / 441.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.964e-05/0.2565, allocations: 0 / 441.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001775/0.2567, allocations: 31.84 kB / 441.2 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.152e-05/0.2567, allocations: 15.97 kB / 441.2 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.78e-05/0.2568, allocations: 4 kB / 441.2 MB, free: 13.61 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001457/0.2569, allocations: 155.5 kB / 441.3 MB, free: 13.46 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2569, allocations: 0 / 441.3 MB, free: 13.46 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003128/0.2572, allocations: 39.95 kB / 441.4 MB, free: 13.42 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.0001479/0.2574, allocations: 107.9 kB / 441.5 MB, free: 13.31 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004239/0.2578, allocations: 159.9 kB / 441.6 MB, free: 13.15 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.329e-06/0.2578, allocations: 4 kB / 441.6 MB, free: 13.15 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001835/0.258, allocations: 76.33 kB / 441.7 MB, free: 13.07 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003448/0.2583, allocations: 28.23 kB / 441.7 MB, free: 13.05 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007774/0.2591, allocations: 403.3 kB / 442.1 MB, free: 12.61 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004004/0.2595, allocations: 0.732 MB / 442.9 MB, free: 11.86 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.257e-05/0.2596, allocations: 23.42 kB / 442.9 MB, free: 11.83 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.2596, allocations: 0 / 442.9 MB, free: 11.83 MB / 350.1 MB Notification: Performance of Templates: time 0.004785/0.2644, allocations: 2.477 MB / 445.4 MB, free: 9.367 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.234851032029837]