Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Interaction1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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.Interaction1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booleanTable.y|integerTable.y|start.on|start.reset.1.|stop.on|stop.reset.1.",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.Interaction1") translateModel(Modelica.Blocks.Examples.Interaction1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booleanTable.y|integerTable.y|start.on|start.reset.1.|stop.on|stop.reset.1.",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.Interaction1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009449/0.0009448, allocations: 95.8 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001166/0.001166, allocations: 208.3 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.317/1.317, allocations: 227.7 MB / 247.5 MB, free: 9.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000225/0.0002249, allocations: 4 kB / 308.4 MB, free: 0.5977 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08546/0.0857, allocations: 51.53 MB / 359.9 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.002763/0.08849, allocations: 2.234 MB / 362.1 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003139/0.09166, allocations: 1.918 MB / 364.1 MB, free: 8.895 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003328/0.09202, allocations: 7.938 kB / 364.1 MB, free: 8.887 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001066/0.0931, allocations: 0.5105 MB / 364.6 MB, free: 8.375 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009107/0.09402, allocations: 450.6 kB / 365 MB, free: 7.938 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001197/0.09523, allocations: 494.5 kB / 365.5 MB, free: 7.457 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008608/0.0961, allocations: 0.7987 MB / 366.3 MB, free: 6.656 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001996/0.09631, allocations: 102 kB / 366.4 MB, free: 6.559 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004288/0.09674, allocations: 282.7 kB / 366.7 MB, free: 6.281 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004092/0.09716, allocations: 342.6 kB / 367 MB, free: 5.945 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.622e-05/0.09724, allocations: 15.94 kB / 367 MB, free: 5.93 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003182/0.09756, allocations: 187.7 kB / 367.2 MB, free: 5.746 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001895/0.09776, allocations: 179.3 kB / 367.4 MB, free: 5.57 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002709/0.09804, allocations: 299.8 kB / 367.7 MB, free: 5.27 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006114/0.09866, allocations: 0.6511 MB / 368.3 MB, free: 4.617 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.09868, allocations: 3.938 kB / 368.3 MB, free: 4.613 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.09868, allocations: 4 kB / 368.3 MB, free: 4.609 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.047e-05/0.09871, allocations: 0 / 368.3 MB, free: 4.609 MB / 302.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.001486/0.1002, allocations: 1.104 MB / 369.4 MB, free: 3.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.184e-05/0.1002, allocations: 8.031 kB / 369.4 MB, free: 3.402 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001589/0.1004, allocations: 83.91 kB / 369.5 MB, free: 3.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007764/0.1012, allocations: 0.5936 MB / 370.1 MB, free: 2.684 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.271e-05/0.1012, allocations: 20.36 kB / 370.1 MB, free: 2.664 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.834e-05/0.1013, allocations: 36.11 kB / 370.2 MB, free: 2.629 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005712/0.1019, allocations: 350.8 kB / 370.5 MB, free: 2.238 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.254e-05/0.1019, allocations: 4 kB / 370.5 MB, free: 2.234 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.442e-05/0.1019, allocations: 11.98 kB / 370.5 MB, free: 2.223 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.104e-05/0.102, allocations: 7.938 kB / 370.5 MB, free: 2.215 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003611/0.1023, allocations: 171.8 kB / 370.7 MB, free: 2.047 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001434/0.1038, allocations: 1.356 MB / 372.1 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006574/0.1044, allocations: 354.2 kB / 372.4 MB, free: 244 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000285/0.1047, allocations: 183.3 kB / 372.6 MB, free: 48 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.645e-05/0.1048, allocations: 20.05 kB / 372.6 MB, free: 28 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.1533/0.2581, allocations: 446.2 kB / 373 MB, free: 18.84 MB / 302.1 MB Notification: Performance of pre-optimization done (n=42): time 3.547e-06/0.2581, allocations: 1.969 kB / 373 MB, free: 18.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.001493/0.2596, allocations: 0.7397 MB / 373.8 MB, free: 18.72 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001106/0.2598, allocations: 460.2 kB / 374.2 MB, free: 18.19 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001517/0.2613, allocations: 0.9734 MB / 375.2 MB, free: 18.06 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.289e-05/0.2614, allocations: 42.16 kB / 375.3 MB, free: 18.03 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003058/0.2617, allocations: 318.9 kB / 375.6 MB, free: 17.94 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001134/0.2618, allocations: 106.2 kB / 375.7 MB, free: 17.89 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.339e-05/0.2619, allocations: 52.97 kB / 375.7 MB, free: 17.88 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.361e-05/0.262, allocations: 329.8 kB / 376 MB, free: 17.57 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003065/0.2623, allocations: 153.1 kB / 376.2 MB, free: 17.57 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004018/0.2627, allocations: 354.8 kB / 376.5 MB, free: 17.36 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006927/0.2634, allocations: 0.5805 MB / 377.1 MB, free: 16.98 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.757e-06/0.2634, allocations: 1.125 kB / 377.1 MB, free: 16.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001079/0.2645, allocations: 0.6729 MB / 377.8 MB, free: 16.65 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.296e-05/0.2645, allocations: 94.02 kB / 377.9 MB, free: 16.56 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.063e-05/0.2646, allocations: 3.875 kB / 377.9 MB, free: 16.56 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.373e-05/0.2646, allocations: 6.312 kB / 377.9 MB, free: 16.56 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002482/0.2648, allocations: 68.05 kB / 378 MB, free: 16.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.183e-05/0.2649, allocations: 11.08 kB / 378 MB, free: 16.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003289/0.2652, allocations: 51.03 kB / 378 MB, free: 16.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.935e-05/0.2652, allocations: 25.53 kB / 378 MB, free: 16.52 MB / 302.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.0003694/0.2656, allocations: 405.9 kB / 378.4 MB, free: 16.23 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001191/0.2658, allocations: 90.56 kB / 378.5 MB, free: 16.19 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001284/0.2659, allocations: 83.7 kB / 378.6 MB, free: 16.15 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.172e-06/0.2659, allocations: 8.625 kB / 378.6 MB, free: 16.15 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-06/0.2659, allocations: 1.375 kB / 378.6 MB, free: 16.15 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.581e-06/0.2659, allocations: 3.062 kB / 378.6 MB, free: 16.15 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001142/0.2671, allocations: 0.9716 MB / 379.6 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.2671, allocations: 4.234 kB / 379.6 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.61e-05/0.2672, allocations: 24.55 kB / 379.6 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.793e-06/0.2672, allocations: 5.891 kB / 379.6 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.868e-05/0.2672, allocations: 22.95 kB / 379.7 MB, free: 15.56 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.2673, allocations: 2.562 kB / 379.7 MB, free: 15.56 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.2673, allocations: 1.25 kB / 379.7 MB, free: 15.56 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009869/0.2683, allocations: 0.7776 MB / 380.4 MB, free: 15.13 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000139/0.2684, allocations: 169.1 kB / 380.6 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001171/0.2685, allocations: 29.03 kB / 380.6 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002498/0.2688, allocations: 30.16 kB / 380.7 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.07e-05/0.2689, allocations: 37.33 kB / 380.7 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.11e-05/0.2689, allocations: 23.45 kB / 380.7 MB, free: 14.95 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008359/0.2698, allocations: 0.6979 MB / 381.4 MB, free: 14.66 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.2698, allocations: 0 / 381.4 MB, free: 14.66 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005963/0.2704, allocations: 153.8 kB / 381.6 MB, free: 14.64 MB / 302.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.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,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.00104/0.2714, allocations: 0.4943 MB / 382.1 MB, free: 14.44 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008583/0.2723, allocations: 0.6108 MB / 382.7 MB, free: 14.1 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.2723, allocations: 1.375 kB / 382.7 MB, free: 14.1 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000466/0.2728, allocations: 426.3 kB / 383.1 MB, free: 13.82 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009493/0.2738, allocations: 170.7 kB / 383.3 MB, free: 13.76 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002118/0.2759, allocations: 1.442 MB / 384.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004409/0.2763, allocations: 0.941 MB / 385.6 MB, free: 12.2 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001717/0.2765, allocations: 57.73 kB / 385.7 MB, free: 12.18 MB / 302.1 MB Notification: Performance of SimCode: time 7.22e-07/0.2765, allocations: 0 / 385.7 MB, free: 12.18 MB / 302.1 MB Notification: Performance of Templates: time 0.01566/0.2922, allocations: 9.91 MB / 395.6 MB, free: 8.367 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.Interaction1.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.Interaction1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Interaction1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Interaction1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Interaction1.sim & ./Modelica_trunk_Modelica.Blocks.Examples.Interaction1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.Interaction1.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Blocks.Examples.Interaction1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches