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.001291/0.001291, allocations: 108.6 kB / 21.18 MB, free: 0.7617 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.001686/0.001686, allocations: 189.2 kB / 24.48 MB, free: 4.164 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.365/1.365, allocations: 225.6 MB / 253.3 MB, free: 13.03 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.001538/0.001538, allocations: 47.92 kB / 371.7 MB, free: 9.363 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2225/0.224, allocations: 52.18 MB / 423.9 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.004135/0.2282, allocations: 2.582 MB / 426.4 MB, free: 12.08 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00323/0.2314, allocations: 1.816 MB / 428.3 MB, free: 10.26 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003236/0.2317, allocations: 19.81 kB / 428.3 MB, free: 10.24 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001272/0.233, allocations: 0.5492 MB / 428.8 MB, free: 9.691 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000907/0.2339, allocations: 437 kB / 429.3 MB, free: 9.266 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001709/0.2356, allocations: 0.6871 MB / 429.9 MB, free: 8.59 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001002/0.2366, allocations: 0.7831 MB / 430.7 MB, free: 7.805 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001883/0.2368, allocations: 58.17 kB / 430.8 MB, free: 7.734 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005117/0.2373, allocations: 346.7 kB / 431.1 MB, free: 7.395 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005585/0.2379, allocations: 390.6 kB / 431.5 MB, free: 7.012 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000101/0.238, allocations: 40 kB / 431.5 MB, free: 6.973 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004569/0.2384, allocations: 247.7 kB / 431.8 MB, free: 6.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002374/0.2387, allocations: 211.2 kB / 432 MB, free: 6.523 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000333/0.239, allocations: 310.1 kB / 432.3 MB, free: 6.219 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001054/0.2401, allocations: 0.8572 MB / 433.1 MB, free: 5.367 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.2401, allocations: 0 / 433.1 MB, free: 5.367 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2401, allocations: 0 / 433.1 MB, free: 5.367 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.112e-05/0.2401, allocations: 0 / 433.1 MB, free: 5.367 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.001913/0.242, allocations: 1.15 MB / 434.3 MB, free: 4.141 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.242, allocations: 8.031 kB / 434.3 MB, free: 4.133 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001689/0.2422, allocations: 88.42 kB / 434.4 MB, free: 4.047 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008708/0.2431, allocations: 0.5285 MB / 434.9 MB, free: 3.492 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.302e-05/0.2431, allocations: 16 kB / 434.9 MB, free: 3.477 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.182e-05/0.2431, allocations: 24 kB / 435 MB, free: 3.453 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006263/0.2438, allocations: 354.7 kB / 435.3 MB, free: 3.062 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.234e-05/0.2438, allocations: 0 / 435.3 MB, free: 3.062 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.321e-05/0.2438, allocations: 15.92 kB / 435.3 MB, free: 3.047 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.29e-05/0.2438, allocations: 8 kB / 435.3 MB, free: 3.039 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003802/0.2442, allocations: 179.8 kB / 435.5 MB, free: 2.863 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001575/0.2458, allocations: 1.305 MB / 436.8 MB, free: 1.492 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006821/0.2465, allocations: 322.8 kB / 437.1 MB, free: 1.141 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002974/0.2468, allocations: 151.4 kB / 437.3 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.252e-05/0.2468, allocations: 16.06 kB / 437.3 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006335/0.2474, allocations: 459.4 kB / 437.7 MB, free: 472 kB / 334.1 MB Notification: Performance of pre-optimization done (n=42): time 1.894e-06/0.2474, allocations: 0 / 437.7 MB, free: 472 kB / 334.1 MB Notification: Performance of matching and sorting (n=42): time 0.001392/0.2488, allocations: 0.747 MB / 438.5 MB, free: 15.69 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002531/0.2491, allocations: 460.9 kB / 438.9 MB, free: 15.14 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001128/0.2502, allocations: 0.9224 MB / 439.9 MB, free: 14.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.331e-05/0.2503, allocations: 49.69 kB / 439.9 MB, free: 14.15 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002757/0.2505, allocations: 312.8 kB / 440.2 MB, free: 13.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001094/0.2507, allocations: 115.2 kB / 440.3 MB, free: 13.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001431/0.2508, allocations: 94.12 kB / 440.4 MB, free: 13.63 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001412/0.2509, allocations: 326 kB / 440.7 MB, free: 13.31 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003132/0.2513, allocations: 156.8 kB / 440.9 MB, free: 13.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004648/0.2517, allocations: 350.1 kB / 441.2 MB, free: 12.74 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007773/0.2525, allocations: 0.5899 MB / 441.8 MB, free: 12.06 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.2525, allocations: 0 / 441.8 MB, free: 12.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001091/0.2536, allocations: 0.6735 MB / 442.5 MB, free: 11.36 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.864e-05/0.2537, allocations: 97.09 kB / 442.6 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.379e-05/0.2537, allocations: 4 kB / 442.6 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.006e-05/0.2537, allocations: 4 kB / 442.6 MB, free: 11.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002551/0.254, allocations: 67.84 kB / 442.7 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.207e-05/0.254, allocations: 7.984 kB / 442.7 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002736/0.2542, allocations: 51.72 kB / 442.7 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.404e-05/0.2543, allocations: 24.45 kB / 442.7 MB, free: 11.09 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.0004142/0.2547, allocations: 398.6 kB / 443.1 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001192/0.2548, allocations: 79.53 kB / 443.2 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009452/0.2558, allocations: 0.511 MB / 443.7 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.778e-06/0.2558, allocations: 15.92 kB / 443.7 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.2558, allocations: 0 / 443.7 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.2558, allocations: 0 / 443.7 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001231/0.257, allocations: 0.9338 MB / 444.7 MB, free: 9.059 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.257, allocations: 0 / 444.7 MB, free: 9.059 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.956e-05/0.2571, allocations: 23.92 kB / 444.7 MB, free: 9.035 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.38e-06/0.2571, allocations: 4 kB / 444.7 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.557e-05/0.2571, allocations: 16 kB / 444.7 MB, free: 9.016 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.122e-06/0.2572, allocations: 11.98 kB / 444.7 MB, free: 9.004 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.2572, allocations: 3.938 kB / 444.7 MB, free: 9 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001118/0.2583, allocations: 0.7716 MB / 445.5 MB, free: 8.184 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001323/0.2584, allocations: 79.39 kB / 445.6 MB, free: 8.105 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001136/0.2585, allocations: 35.92 kB / 445.6 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002407/0.2588, allocations: 19.98 kB / 445.6 MB, free: 8.051 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.7e-05/0.2589, allocations: 36.03 kB / 445.7 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.106e-05/0.2589, allocations: 24.17 kB / 445.7 MB, free: 7.992 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008221/0.2597, allocations: 0.6747 MB / 446.4 MB, free: 7.316 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2597, allocations: 3.938 kB / 446.4 MB, free: 7.312 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005588/0.2603, allocations: 151.8 kB / 446.5 MB, free: 7.164 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 (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.001667/0.2619, allocations: 0.4958 MB / 447 MB, free: 6.82 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009347/0.2629, allocations: 0.5569 MB / 447.6 MB, free: 6.227 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.2629, allocations: 64 / 447.6 MB, free: 6.227 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005043/0.2634, allocations: 366.4 kB / 447.9 MB, free: 5.832 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008041/0.2642, allocations: 187.6 kB / 448.1 MB, free: 5.66 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001993/0.2662, allocations: 1.248 MB / 449.4 MB, free: 4.367 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005902/0.2668, allocations: 0.929 MB / 450.3 MB, free: 3.41 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001534/0.2669, allocations: 59.42 kB / 450.3 MB, free: 3.352 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.2669, allocations: 0 / 450.3 MB, free: 3.352 MB / 350.1 MB Notification: Performance of Templates: time 0.01567/0.2826, allocations: 9.851 MB / 460.2 MB, free: 9.535 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.04092788300477]