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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.00122/0.00122, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.367/1.367, allocations: 226.7 MB / 245.5 MB, free: 6.977 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009746/0.0009745, allocations: 100.9 kB / 296.7 MB, free: 6.496 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008471/0.0008474, allocations: 51.92 kB / 356.6 MB, free: 10.63 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2458/0.2466, allocations: 50.45 MB / 407 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.003169/0.2499, allocations: 2.624 MB / 409.7 MB, free: 25.21 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002591/0.2525, allocations: 1.997 MB / 411.7 MB, free: 23.21 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000192/0.2527, allocations: 7.938 kB / 411.7 MB, free: 23.2 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008063/0.2535, allocations: 0.5121 MB / 412.2 MB, free: 22.69 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006709/0.2542, allocations: 454.7 kB / 412.6 MB, free: 22.25 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001272/0.2555, allocations: 0.6211 MB / 413.2 MB, free: 21.64 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005712/0.2561, allocations: 0.8065 MB / 414 MB, free: 20.84 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001562/0.2563, allocations: 93.97 kB / 414.1 MB, free: 20.74 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002337/0.2565, allocations: 302.7 kB / 414.4 MB, free: 20.45 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002519/0.2568, allocations: 346.5 kB / 414.8 MB, free: 20.11 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.176e-05/0.2568, allocations: 16 kB / 414.8 MB, free: 20.09 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002712/0.2571, allocations: 191.7 kB / 415 MB, free: 19.9 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001462/0.2572, allocations: 191.3 kB / 415.2 MB, free: 19.71 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001899/0.2574, allocations: 290.1 kB / 415.4 MB, free: 19.43 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000566/0.258, allocations: 0.8385 MB / 416.3 MB, free: 18.59 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.258, allocations: 3.984 kB / 416.3 MB, free: 18.59 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.72e-07/0.258, allocations: 4 kB / 416.3 MB, free: 18.58 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.081e-06/0.258, allocations: 4 kB / 416.3 MB, free: 18.58 MB / 298.7 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.001295/0.2594, allocations: 1.211 MB / 417.5 MB, free: 17.27 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.299e-05/0.2594, allocations: 8.875 kB / 417.5 MB, free: 17.26 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001082/0.2595, allocations: 83.91 kB / 417.6 MB, free: 17.18 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006139/0.2601, allocations: 0.6052 MB / 418.2 MB, free: 16.53 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.601e-05/0.2602, allocations: 24.33 kB / 418.2 MB, free: 16.51 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.003e-05/0.2602, allocations: 28.12 kB / 418.3 MB, free: 16.48 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004645/0.2607, allocations: 354.7 kB / 418.6 MB, free: 16.09 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.163e-05/0.2607, allocations: 4 kB / 418.6 MB, free: 16.08 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.704e-05/0.2607, allocations: 8 kB / 418.6 MB, free: 16.07 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.811e-05/0.2608, allocations: 4 kB / 418.6 MB, free: 16.07 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003034/0.2611, allocations: 183.8 kB / 418.8 MB, free: 15.89 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001159/0.2622, allocations: 1.348 MB / 420.1 MB, free: 14.47 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005565/0.2628, allocations: 350.8 kB / 420.5 MB, free: 14.09 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002354/0.2631, allocations: 175.4 kB / 420.7 MB, free: 13.91 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.117e-05/0.2631, allocations: 12 kB / 420.7 MB, free: 13.89 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004476/0.2635, allocations: 455.2 kB / 421.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of pre-optimization done (n=42): time 2.444e-06/0.2636, allocations: 3.984 kB / 421.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of matching and sorting (n=42): time 0.001091/0.2647, allocations: 0.7509 MB / 421.9 MB, free: 12.62 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.394e-05/0.2648, allocations: 456.9 kB / 422.3 MB, free: 12.07 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008344/0.2656, allocations: 0.9732 MB / 423.3 MB, free: 11.09 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.43e-05/0.2656, allocations: 41.7 kB / 423.3 MB, free: 11.04 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002121/0.2659, allocations: 324.8 kB / 423.6 MB, free: 10.72 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.542e-05/0.2659, allocations: 106.6 kB / 423.7 MB, free: 10.61 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001144/0.2661, allocations: 98.11 kB / 423.8 MB, free: 10.51 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.095e-05/0.2661, allocations: 322 kB / 424.2 MB, free: 10.19 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002539/0.2664, allocations: 153.4 kB / 424.3 MB, free: 10.04 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003229/0.2667, allocations: 348 kB / 424.6 MB, free: 9.629 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005357/0.2673, allocations: 0.5893 MB / 425.2 MB, free: 8.953 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.2673, allocations: 0 / 425.2 MB, free: 8.953 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0008254/0.2681, allocations: 0.6732 MB / 425.9 MB, free: 8.254 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.698e-05/0.2682, allocations: 103.8 kB / 426 MB, free: 8.137 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.2682, allocations: 4 kB / 426 MB, free: 8.133 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.698e-05/0.2682, allocations: 4 kB / 426 MB, free: 8.129 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002285/0.2684, allocations: 67.84 kB / 426.1 MB, free: 8.062 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.726e-06/0.2684, allocations: 4 kB / 426.1 MB, free: 8.059 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002477/0.2687, allocations: 55.94 kB / 426.1 MB, free: 8.004 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.012e-05/0.2687, allocations: 24 kB / 426.2 MB, free: 7.98 MB / 298.7 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.0002891/0.269, allocations: 394.8 kB / 426.6 MB, free: 7.57 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.299e-05/0.2691, allocations: 83 kB / 426.6 MB, free: 7.488 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001059/0.2692, allocations: 82.58 kB / 426.7 MB, free: 7.402 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.349e-06/0.2693, allocations: 4 kB / 426.7 MB, free: 7.398 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.2693, allocations: 0 / 426.7 MB, free: 7.398 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.2693, allocations: 7.938 kB / 426.7 MB, free: 7.391 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009537/0.2702, allocations: 0.9815 MB / 427.7 MB, free: 6.34 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.2703, allocations: 0 / 427.7 MB, free: 6.34 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.499e-05/0.2703, allocations: 20.17 kB / 427.7 MB, free: 6.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.2704, allocations: 4 kB / 427.7 MB, free: 6.316 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.175e-05/0.2704, allocations: 23.92 kB / 427.8 MB, free: 6.293 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.2704, allocations: 7.984 kB / 427.8 MB, free: 6.285 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.2704, allocations: 11.92 kB / 427.8 MB, free: 6.273 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001339/0.2718, allocations: 1.674 MB / 429.4 MB, free: 4.512 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001179/0.2719, allocations: 148.2 kB / 429.6 MB, free: 4.348 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.47e-05/0.272, allocations: 20 kB / 429.6 MB, free: 4.328 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002214/0.2722, allocations: 27.97 kB / 429.6 MB, free: 4.301 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.569e-05/0.2723, allocations: 27.97 kB / 429.7 MB, free: 4.273 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.636e-05/0.2724, allocations: 23.98 kB / 429.7 MB, free: 4.25 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000636/0.273, allocations: 0.7021 MB / 430.4 MB, free: 3.547 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.273, allocations: 0 / 430.4 MB, free: 3.547 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006563/0.2737, allocations: 163.8 kB / 430.6 MB, free: 3.387 MB / 298.7 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.001066/0.2747, allocations: 495.9 kB / 431 MB, free: 3.035 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000792/0.2755, allocations: 0.6152 MB / 431.7 MB, free: 2.383 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.2756, allocations: 0 / 431.7 MB, free: 2.383 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003967/0.276, allocations: 434 kB / 432.1 MB, free: 1.922 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000785/0.2768, allocations: 168.4 kB / 432.2 MB, free: 1.762 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001696/0.2785, allocations: 1.64 MB / 433.9 MB, free: 72 kB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005724/0.2791, allocations: 0.9527 MB / 434.8 MB, free: 15.09 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003292/0.2794, allocations: 109.4 kB / 434.9 MB, free: 14.98 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001288/0.2795, allocations: 55.42 kB / 435 MB, free: 14.93 MB / 314.7 MB Notification: Performance of SimCode: time 4.4e-07/0.2795, allocations: 0 / 435 MB, free: 14.93 MB / 314.7 MB Notification: Performance of Templates: time 0.01697/0.2965, allocations: 9.276 MB / 444.3 MB, free: 5.684 MB / 314.7 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/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Interaction1/Interaction1.csv","../files/Modelica_trunk_Modelica.Blocks.Examples.Interaction1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches