Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001874/0.001874, allocations: 96.03 kB / 21.18 MB, free: 0.5312 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002263/0.002263, allocations: 187 kB / 24.46 MB, free: 3.863 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.517/1.517, allocations: 225.7 MB / 253.3 MB, free: 12.84 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.Interaction1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|booleanTable.y|integerTable.y|start.on|start.reset.1.|stop.on|stop.reset.1.",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1") translateModel(Modelica.Blocks.Examples.Interaction1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|booleanTable.y|integerTable.y|start.on|start.reset.1.|stop.on|stop.reset.1.",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001886/0.001886, allocations: 55.91 kB / 371.6 MB, free: 9.191 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2574/0.2593, allocations: 52.17 MB / 423.8 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.004228/0.2635, allocations: 2.4 MB / 426.2 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003314/0.2669, allocations: 1.73 MB / 427.9 MB, free: 10.47 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001938/0.2671, allocations: 7.938 kB / 427.9 MB, free: 10.46 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001311/0.2684, allocations: 0.5528 MB / 428.5 MB, free: 9.914 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009427/0.2693, allocations: 442.5 kB / 428.9 MB, free: 9.48 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001746/0.2711, allocations: 0.6784 MB / 429.6 MB, free: 8.812 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009588/0.272, allocations: 0.7792 MB / 430.4 MB, free: 8.031 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001955/0.2722, allocations: 65.97 kB / 430.4 MB, free: 7.957 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004183/0.2726, allocations: 334.8 kB / 430.8 MB, free: 7.629 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005302/0.2732, allocations: 382.5 kB / 431.1 MB, free: 7.254 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9e-05/0.2732, allocations: 40 kB / 431.2 MB, free: 7.215 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004879/0.2737, allocations: 231.7 kB / 431.4 MB, free: 6.988 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002443/0.274, allocations: 215.2 kB / 431.6 MB, free: 6.777 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002519/0.2742, allocations: 218.6 kB / 431.8 MB, free: 6.562 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001039/0.2753, allocations: 0.8746 MB / 432.7 MB, free: 5.688 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.2753, allocations: 0 / 432.7 MB, free: 5.688 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.654e-06/0.2753, allocations: 0 / 432.7 MB, free: 5.688 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.747e-06/0.2753, allocations: 4 kB / 432.7 MB, free: 5.684 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001842/0.2771, allocations: 1.143 MB / 433.9 MB, free: 4.465 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.2772, allocations: 8.031 kB / 433.9 MB, free: 4.457 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001584/0.2773, allocations: 84.42 kB / 433.9 MB, free: 4.375 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009129/0.2782, allocations: 0.5168 MB / 434.5 MB, free: 3.832 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.409e-05/0.2783, allocations: 27.97 kB / 434.5 MB, free: 3.805 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.03e-05/0.2783, allocations: 24 kB / 434.5 MB, free: 3.781 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006999/0.279, allocations: 446.1 kB / 435 MB, free: 3.289 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.229e-05/0.279, allocations: 0 / 435 MB, free: 3.289 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.118e-05/0.2791, allocations: 8 kB / 435 MB, free: 3.281 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.421e-05/0.2791, allocations: 11.98 kB / 435 MB, free: 3.27 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004862/0.2796, allocations: 276.9 kB / 435.2 MB, free: 2.98 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001625/0.2812, allocations: 1.204 MB / 436.4 MB, free: 1.723 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008142/0.282, allocations: 435.9 kB / 436.9 MB, free: 1.242 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003888/0.2824, allocations: 256.4 kB / 437.1 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.485e-05/0.2824, allocations: 4 kB / 437.1 MB, free: 0.957 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007565/0.2832, allocations: 0.559 MB / 437.7 MB, free: 332 kB / 334.1 MB Notification: Performance of pre-optimization done (n=42): time 2.285e-06/0.2832, allocations: 4 kB / 437.7 MB, free: 328 kB / 334.1 MB Notification: Performance of matching and sorting (n=42): time 0.001754/0.2849, allocations: 0.9524 MB / 438.6 MB, free: 15.31 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002262/0.2852, allocations: 358.1 kB / 439 MB, free: 14.88 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001294/0.2865, allocations: 0.9341 MB / 439.9 MB, free: 13.94 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.129e-05/0.2865, allocations: 45.69 kB / 440 MB, free: 13.89 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003046/0.2868, allocations: 308.8 kB / 440.3 MB, free: 13.58 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001155/0.2869, allocations: 111.2 kB / 440.4 MB, free: 13.47 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001536/0.2871, allocations: 94.11 kB / 440.5 MB, free: 13.38 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.2873, allocations: 326 kB / 440.8 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003991/0.2877, allocations: 250 kB / 441 MB, free: 12.79 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006164/0.2883, allocations: 0.5393 MB / 441.6 MB, free: 12.14 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008725/0.2891, allocations: 0.5933 MB / 442.2 MB, free: 11.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.624e-06/0.2892, allocations: 8.438 kB / 442.2 MB, free: 11.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001323/0.2905, allocations: 0.7919 MB / 443 MB, free: 10.61 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.936e-05/0.2906, allocations: 101.1 kB / 443.1 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/0.2906, allocations: 4 kB / 443.1 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.67e-05/0.2906, allocations: 4 kB / 443.1 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002753/0.2909, allocations: 67.84 kB / 443.1 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.263e-05/0.2909, allocations: 4 kB / 443.1 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003171/0.2912, allocations: 43.77 kB / 443.2 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.196e-05/0.2913, allocations: 24.17 kB / 443.2 MB, free: 10.35 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 51 ($PRE.start.pre_reset[1],$PRE.stop.pre_reset[1],$PRE.integerTable.combiTimeTable.nextTimeEvent,$whenCondition9,integerTable.combiTimeTable.nextTimeEventScaled,$PRE.integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEvent,integerTable.y,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition8,booleanTable.combiTimeTable.nextTimeEventScaled,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.y,$PRE.stop.table.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.start.table.combiTimeTable.nextTimeEvent,$whenCondition2,stop.on,$PRE.stop.on,start.reset[1],stop.reset[1],start.on,$PRE.start.on,stop.pre_reset[1],stop.table.combiTimeTable.nextTimeEventScaled,$PRE.stop.table.combiTimeTable.nextTimeEventScaled,stop.table.combiTimeTable.nextTimeEvent,stop.table.y,$PRE.stop.table.y,$PRE.stop.reset[1],$whenCondition5,$whenCondition4,start.pre_reset[1],start.table.combiTimeTable.nextTimeEventScaled,$PRE.start.table.combiTimeTable.nextTimeEventScaled,start.table.combiTimeTable.nextTimeEvent,start.table.y,$PRE.start.table.y,$PRE.start.reset[1],$whenCondition7,$whenCondition6,timeTable.nextEventScaled,timeTable.nextEvent,$PRE.timeTable.nextEvent,timeTable.last,timeTable.b,timeTable.a,$whenCondition1,booleanValue.active,integerValue.number) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 3 * 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.0005057/0.2918, allocations: 402.7 kB / 443.6 MB, free: 9.934 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001301/0.2919, allocations: 87.42 kB / 443.7 MB, free: 9.848 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001099/0.293, allocations: 0.6078 MB / 444.3 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.317e-06/0.293, allocations: 11.98 kB / 444.3 MB, free: 9.199 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.293, allocations: 0 / 444.3 MB, free: 9.199 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.864e-06/0.293, allocations: 3.984 kB / 444.3 MB, free: 9.195 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001324/0.2943, allocations: 0.9223 MB / 445.2 MB, free: 8.211 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.257e-06/0.2943, allocations: 8 kB / 445.2 MB, free: 8.203 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001232/0.2945, allocations: 27.92 kB / 445.3 MB, free: 8.176 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.583e-06/0.2945, allocations: 4 kB / 445.3 MB, free: 8.172 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.006e-05/0.2945, allocations: 19.98 kB / 445.3 MB, free: 8.152 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.741e-06/0.2945, allocations: 4 kB / 445.3 MB, free: 8.148 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.2945, allocations: 0 / 445.3 MB, free: 8.148 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00132/0.2958, allocations: 0.9255 MB / 446.2 MB, free: 7.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000146/0.296, allocations: 79.45 kB / 446.3 MB, free: 7.082 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001133/0.2961, allocations: 24 kB / 446.3 MB, free: 7.059 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002432/0.2963, allocations: 23.97 kB / 446.3 MB, free: 7.035 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001149/0.2965, allocations: 35.95 kB / 446.4 MB, free: 7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.745e-05/0.2965, allocations: 31.92 kB / 446.4 MB, free: 6.969 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008629/0.2974, allocations: 0.6708 MB / 447.1 MB, free: 6.297 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2974, allocations: 4 kB / 447.1 MB, free: 6.293 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006196/0.298, allocations: 155.8 kB / 447.2 MB, free: 6.141 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 32 ($whenCondition1,timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled,$whenCondition3,$whenCondition2,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,start.reset[1],start.on,start.table.y,start.table.combiTimeTable.nextTimeEvent,start.table.combiTimeTable.nextTimeEventScaled,start.pre_reset[1],stop.reset[1],stop.on,stop.table.y,stop.table.combiTimeTable.nextTimeEvent,stop.table.combiTimeTable.nextTimeEventScaled,stop.pre_reset[1],$whenCondition8,booleanTable.y,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,$whenCondition9,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 26 (integerTable.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,stop.table.combiTimeTable.nextTimeEvent,start.table.combiTimeTable.nextTimeEvent,stop.table.combiTimeTable.nextTimeEventScaled,$whenCondition5,stop.on,$whenCondition4,stop.pre_reset[1],stop.reset[1],stop.table.y,start.table.combiTimeTable.nextTimeEventScaled,$whenCondition7,start.on,$whenCondition6,start.pre_reset[1],start.reset[1],start.table.y,timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 8 * 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.001834/0.2998, allocations: 0.5245 MB / 447.8 MB, free: 5.797 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00119/0.301, allocations: 0.7693 MB / 448.5 MB, free: 4.953 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.301, allocations: 0.5625 kB / 448.5 MB, free: 4.953 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006157/0.3017, allocations: 479.1 kB / 449 MB, free: 4.43 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008901/0.3025, allocations: 173.5 kB / 449.2 MB, free: 4.27 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002266/0.3048, allocations: 1.339 MB / 450.5 MB, free: 2.867 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004044/0.3052, allocations: 338.3 kB / 450.8 MB, free: 2.508 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001546/0.3054, allocations: 59.36 kB / 450.9 MB, free: 2.449 MB / 350.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3054, allocations: 0 / 450.9 MB, free: 2.449 MB / 350.1 MB Notification: Performance of Templates: time 0.01719/0.3226, allocations: 10.07 MB / 461 MB, free: 8.406 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Interaction1/Interaction1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.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: 8.639638969674706]