Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.Interaction1.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.001346/0.001346, allocations: 112.2 kB / 21.19 MB, free: 0.7539 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.001533/0.001533, allocations: 213.7 kB / 24.49 MB, free: 4.137 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.484/1.484, allocations: 230.6 MB / 258.3 MB, free: 8.008 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.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.1.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.1.0_Modelica.Blocks.Examples.Interaction1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001495/0.001495, allocations: 47.92 kB / 379 MB, free: 2.641 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3108/0.3123, allocations: 53.36 MB / 432.4 MB, free: 6.93 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.004446/0.3167, allocations: 2.608 MB / 435 MB, free: 4.312 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003847/0.3206, allocations: 1.96 MB / 436.9 MB, free: 2.348 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003071/0.3209, allocations: 23.81 kB / 437 MB, free: 2.324 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001395/0.3223, allocations: 0.5525 MB / 437.5 MB, free: 1.773 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001047/0.3233, allocations: 0.4905 MB / 438 MB, free: 1.281 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001581/0.3249, allocations: 0.5591 MB / 438.6 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001273/0.3262, allocations: 0.8182 MB / 439.4 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002591/0.3264, allocations: 62.17 kB / 439.5 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006012/0.327, allocations: 358.7 kB / 439.8 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006162/0.3276, allocations: 402.5 kB / 440.2 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.46e-05/0.3277, allocations: 44 kB / 440.2 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006125/0.3283, allocations: 247.7 kB / 440.5 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003294/0.3287, allocations: 211.3 kB / 440.7 MB, free: 14.6 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004122/0.3291, allocations: 310 kB / 441 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001375/0.3305, allocations: 0.8922 MB / 441.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.08e-05/0.3305, allocations: 0 / 441.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.3305, allocations: 0 / 441.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.109e-05/0.3305, allocations: 0 / 441.9 MB, free: 13.41 MB / 350.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.002186/0.3327, allocations: 1.189 MB / 443.1 MB, free: 12.14 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.392e-05/0.3327, allocations: 8.031 kB / 443.1 MB, free: 12.13 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001556/0.3329, allocations: 84.42 kB / 443.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009439/0.3338, allocations: 0.5443 MB / 443.7 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.163e-05/0.3339, allocations: 12.38 kB / 443.7 MB, free: 11.47 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.538e-05/0.3339, allocations: 32.12 kB / 443.7 MB, free: 11.44 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000665/0.3346, allocations: 362.7 kB / 444.1 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.522e-05/0.3346, allocations: 0 / 444.1 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.281e-05/0.3347, allocations: 8 kB / 444.1 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.935e-05/0.3347, allocations: 8 kB / 444.1 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004008/0.3351, allocations: 187.7 kB / 444.3 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001775/0.3369, allocations: 1.301 MB / 445.6 MB, free: 9.473 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007288/0.3376, allocations: 334.7 kB / 445.9 MB, free: 9.109 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003006/0.3379, allocations: 163.3 kB / 446.1 MB, free: 8.938 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.127e-05/0.3379, allocations: 4 kB / 446.1 MB, free: 8.934 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007574/0.3387, allocations: 459.2 kB / 446.5 MB, free: 8.43 MB / 350.1 MB Notification: Performance of pre-optimization done (n=42): time 1.924e-06/0.3387, allocations: 0 / 446.5 MB, free: 8.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=42): time 0.001607/0.3403, allocations: 0.7465 MB / 447.3 MB, free: 7.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003445/0.3406, allocations: 460.9 kB / 447.7 MB, free: 7.105 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001333/0.342, allocations: 0.9772 MB / 448.7 MB, free: 6.113 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.636e-05/0.342, allocations: 45.64 kB / 448.8 MB, free: 6.062 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000366/0.3424, allocations: 316.9 kB / 449.1 MB, free: 5.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001404/0.3425, allocations: 115.1 kB / 449.2 MB, free: 5.637 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001703/0.3427, allocations: 102.1 kB / 449.3 MB, free: 5.531 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001965/0.3429, allocations: 322 kB / 449.6 MB, free: 5.211 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003264/0.3432, allocations: 152.9 kB / 449.7 MB, free: 5.062 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004993/0.3437, allocations: 354 kB / 450.1 MB, free: 4.641 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007974/0.3445, allocations: 0.5855 MB / 450.7 MB, free: 3.969 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.656e-06/0.3445, allocations: 8 kB / 450.7 MB, free: 3.961 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001118/0.3456, allocations: 0.6618 MB / 451.3 MB, free: 3.273 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.815e-05/0.3457, allocations: 109 kB / 451.5 MB, free: 3.148 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.063e-05/0.3458, allocations: 4 kB / 451.5 MB, free: 3.145 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.18e-05/0.3458, allocations: 4 kB / 451.5 MB, free: 3.141 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002714/0.346, allocations: 68.19 kB / 451.5 MB, free: 3.074 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.588e-05/0.3461, allocations: 7.938 kB / 451.5 MB, free: 3.066 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002955/0.3464, allocations: 51.72 kB / 451.6 MB, free: 3.016 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.007e-05/0.3464, allocations: 20 kB / 451.6 MB, free: 2.996 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.000484/0.3469, allocations: 399.3 kB / 452 MB, free: 2.586 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001292/0.347, allocations: 87.42 kB / 452.1 MB, free: 2.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009741/0.348, allocations: 0.519 MB / 452.6 MB, free: 1.961 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.575e-06/0.348, allocations: 4 kB / 452.6 MB, free: 1.957 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.348, allocations: 0 / 452.6 MB, free: 1.957 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.097e-05/0.348, allocations: 7.922 kB / 452.6 MB, free: 1.949 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00133/0.3493, allocations: 0.9417 MB / 453.6 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.786e-06/0.3493, allocations: 4.281 kB / 453.6 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.808e-05/0.3494, allocations: 27.92 kB / 453.6 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.651e-06/0.3494, allocations: 4 kB / 453.6 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.424e-05/0.3495, allocations: 19.92 kB / 453.6 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.529e-06/0.3495, allocations: 4 kB / 453.6 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.3495, allocations: 0 / 453.6 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001173/0.3507, allocations: 0.7922 MB / 454.4 MB, free: 52 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001563/0.3508, allocations: 75.64 kB / 454.5 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001082/0.3509, allocations: 23.98 kB / 454.5 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002294/0.3512, allocations: 24.11 kB / 454.5 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001176/0.3513, allocations: 47.64 kB / 454.6 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.641e-05/0.3513, allocations: 27.97 kB / 454.6 MB, free: 15.86 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0009622/0.3523, allocations: 0.706 MB / 455.3 MB, free: 15.15 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3523, allocations: 0 / 455.3 MB, free: 15.15 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006013/0.3529, allocations: 151.8 kB / 455.5 MB, free: 15 MB / 366.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 (31): * Single equations (assignments): 20 * 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.001754/0.3546, allocations: 0.4931 MB / 455.9 MB, free: 14.66 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001106/0.3557, allocations: 0.5564 MB / 456.5 MB, free: 14.07 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.3557, allocations: 0 / 456.5 MB, free: 14.07 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005262/0.3563, allocations: 366 kB / 456.9 MB, free: 13.67 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008468/0.3571, allocations: 185.8 kB / 457 MB, free: 13.5 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002239/0.3594, allocations: 1.284 MB / 458.3 MB, free: 12.18 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006978/0.3601, allocations: 0.9367 MB / 459.3 MB, free: 11.21 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000147/0.3602, allocations: 63.42 kB / 459.3 MB, free: 11.15 MB / 366.1 MB Notification: Performance of SimCode: time 1.122e-06/0.3602, allocations: 0 / 459.3 MB, free: 11.15 MB / 366.1 MB Notification: Performance of Templates: time 0.01732/0.3775, allocations: 10.13 MB / 469.4 MB, free: 1.047 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.Interaction1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.Interaction1.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.Interaction1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.Interaction1.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.Interaction1.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.Interaction1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.Interaction1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.Interaction1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/Interaction1/Interaction1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.75538720889017]