Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009019/0.0009021, allocations: 175 kB / 16.72 MB, free: 5.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.384/1.384, allocations: 205.4 MB / 222.9 MB, free: 9.035 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007532/0.0007536, allocations: 88.92 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003475/0.0003475, allocations: 19.98 kB / 327.5 MB, free: 15.89 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2612/0.2616, allocations: 47.57 MB / 375.1 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.002474/0.2641, allocations: 2.1 MB / 377.2 MB, free: 43.77 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002281/0.2664, allocations: 1.606 MB / 378.8 MB, free: 42.51 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002378/0.2667, allocations: 8.625 kB / 378.8 MB, free: 42.51 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001056/0.2678, allocations: 493.1 kB / 379.3 MB, free: 42.25 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006264/0.2684, allocations: 358.4 kB / 379.6 MB, free: 42.04 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001436/0.2699, allocations: 0.5263 MB / 380.2 MB, free: 41.71 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007339/0.2706, allocations: 0.6807 MB / 380.8 MB, free: 41.3 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002623/0.2709, allocations: 106.3 kB / 380.9 MB, free: 41.24 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005178/0.2714, allocations: 281 kB / 381.2 MB, free: 41.09 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004613/0.2719, allocations: 315.6 kB / 381.5 MB, free: 40.93 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.143e-05/0.2719, allocations: 12.88 kB / 381.5 MB, free: 40.93 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004743/0.2724, allocations: 164.7 kB / 381.7 MB, free: 40.86 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002329/0.2727, allocations: 181.2 kB / 381.9 MB, free: 40.76 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002773/0.273, allocations: 272.2 kB / 382.1 MB, free: 40.55 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006584/0.2736, allocations: 0.63 MB / 382.8 MB, free: 40.12 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.2736, allocations: 0 / 382.8 MB, free: 40.12 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.397e-06/0.2736, allocations: 4 kB / 382.8 MB, free: 40.11 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.388e-06/0.2737, allocations: 3.938 kB / 382.8 MB, free: 40.11 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.001354/0.275, allocations: 1.076 MB / 383.8 MB, free: 39.11 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.049e-05/0.2751, allocations: 9.281 kB / 383.9 MB, free: 39.11 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001177/0.2752, allocations: 77.41 kB / 383.9 MB, free: 39.07 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006886/0.2759, allocations: 0.5819 MB / 384.5 MB, free: 38.59 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.616e-05/0.2759, allocations: 23.2 kB / 384.5 MB, free: 38.57 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.622e-05/0.276, allocations: 25.22 kB / 384.6 MB, free: 38.57 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005304/0.2765, allocations: 352.9 kB / 384.9 MB, free: 38.3 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/0.2765, allocations: 1.094 kB / 384.9 MB, free: 38.3 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.379e-05/0.2766, allocations: 9.25 kB / 384.9 MB, free: 38.29 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.556e-05/0.2766, allocations: 6.094 kB / 384.9 MB, free: 38.29 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003433/0.277, allocations: 182.3 kB / 385.1 MB, free: 38.21 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001187/0.2782, allocations: 1.343 MB / 386.4 MB, free: 37.01 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000571/0.2787, allocations: 357.7 kB / 386.8 MB, free: 36.7 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002612/0.279, allocations: 175.4 kB / 387 MB, free: 36.52 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.174e-05/0.2791, allocations: 4 kB / 387 MB, free: 36.51 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004506/0.2795, allocations: 467.2 kB / 387.4 MB, free: 36 MB / 298.7 MB Notification: Performance of pre-optimization done (n=42): time 1.964e-06/0.2795, allocations: 0 / 387.4 MB, free: 36 MB / 298.7 MB Notification: Performance of matching and sorting (n=42): time 0.001087/0.2806, allocations: 0.7362 MB / 388.2 MB, free: 35.24 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001003/0.2807, allocations: 460.9 kB / 388.6 MB, free: 34.68 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008456/0.2816, allocations: 0.9262 MB / 389.5 MB, free: 33.75 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.935e-05/0.2816, allocations: 45.69 kB / 389.6 MB, free: 33.7 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001729/0.2818, allocations: 308.7 kB / 389.9 MB, free: 33.39 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.461e-05/0.2819, allocations: 106.7 kB / 390 MB, free: 33.29 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.067e-05/0.2819, allocations: 8 kB / 390 MB, free: 33.28 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.797e-05/0.282, allocations: 330 kB / 390.3 MB, free: 32.95 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002451/0.2822, allocations: 144.9 kB / 390.5 MB, free: 32.81 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000326/0.2826, allocations: 358.4 kB / 390.8 MB, free: 32.39 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009229/0.2835, allocations: 0.7757 MB / 391.6 MB, free: 31.5 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.2835, allocations: 4 kB / 391.6 MB, free: 31.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0008335/0.2844, allocations: 0.669 MB / 392.3 MB, free: 30.8 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.907e-05/0.2844, allocations: 97.03 kB / 392.4 MB, free: 30.69 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/0.2844, allocations: 4 kB / 392.4 MB, free: 30.68 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.679e-05/0.2845, allocations: 8 kB / 392.4 MB, free: 30.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002192/0.2847, allocations: 68.12 kB / 392.4 MB, free: 30.61 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.918e-06/0.2847, allocations: 11.98 kB / 392.4 MB, free: 30.6 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002611/0.285, allocations: 51.67 kB / 392.5 MB, free: 30.55 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.141e-05/0.285, allocations: 20 kB / 392.5 MB, free: 30.53 MB / 298.7 MB Warning: Assuming fixed start value for the following 2 variables: stop.table.y:DISCRETE(flow=false fixed = true protected = true ) "Connector of Boolean output signal" type: Boolean start.table.y:DISCRETE(flow=false fixed = true protected = true ) "Connector of Boolean output signal" type: Boolean 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],$whenCondition9,$PRE.integerTable.combiTimeTable.nextTimeEvent,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,$PRE.integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEventScaled,$whenCondition8,$PRE.booleanTable.combiTimeTable.nextTimeEvent,booleanTable.y,booleanTable.combiTimeTable.nextTimeEvent,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,$PRE.stop.table.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.start.table.combiTimeTable.nextTimeEvent,start.reset[1],$PRE.stop.on,stop.on,$PRE.start.on,start.on,stop.reset[1],$PRE.stop.reset[1],$PRE.stop.table.y,$whenCondition4,$whenCondition5,stop.table.y,stop.table.combiTimeTable.nextTimeEvent,$PRE.stop.table.combiTimeTable.nextTimeEventScaled,stop.table.combiTimeTable.nextTimeEventScaled,stop.pre_reset[1],$PRE.start.reset[1],$PRE.start.table.y,$whenCondition6,$whenCondition7,start.table.y,start.table.combiTimeTable.nextTimeEvent,$PRE.start.table.combiTimeTable.nextTimeEventScaled,start.table.combiTimeTable.nextTimeEventScaled,start.pre_reset[1],$whenCondition1,timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003761/0.2854, allocations: 412.3 kB / 392.9 MB, free: 30.1 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.605e-05/0.2855, allocations: 86.98 kB / 393 MB, free: 30.02 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001083/0.2856, allocations: 74.22 kB / 393.1 MB, free: 29.93 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.56e-06/0.2856, allocations: 4 kB / 393.1 MB, free: 29.93 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.167e-06/0.2856, allocations: 4.188 kB / 393.1 MB, free: 29.93 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.2856, allocations: 3.984 kB / 393.1 MB, free: 29.92 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009323/0.2866, allocations: 0.9659 MB / 394.1 MB, free: 28.89 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.2866, allocations: 0 / 394.1 MB, free: 28.89 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.507e-05/0.2867, allocations: 16 kB / 394.1 MB, free: 28.87 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/0.2867, allocations: 4 kB / 394.1 MB, free: 28.87 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.447e-05/0.2867, allocations: 19.92 kB / 394.1 MB, free: 28.85 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.466e-06/0.2867, allocations: 4 kB / 394.1 MB, free: 28.84 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.307e-06/0.2867, allocations: 7.938 kB / 394.1 MB, free: 28.84 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008451/0.2876, allocations: 0.7675 MB / 394.9 MB, free: 28.02 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001109/0.2877, allocations: 164.1 kB / 395 MB, free: 27.84 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001004/0.2878, allocations: 31.92 kB / 395.1 MB, free: 27.81 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000222/0.2881, allocations: 23.98 kB / 395.1 MB, free: 27.79 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001117/0.2882, allocations: 39.95 kB / 395.1 MB, free: 27.75 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.166e-05/0.2882, allocations: 27.92 kB / 395.2 MB, free: 27.72 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0006637/0.2889, allocations: 0.663 MB / 395.8 MB, free: 27.06 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2889, allocations: 0 / 395.8 MB, free: 27.06 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005809/0.2895, allocations: 155.8 kB / 396 MB, free: 26.91 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000993/0.2905, allocations: 498.7 kB / 396.5 MB, free: 26.43 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008239/0.2913, allocations: 0.6074 MB / 397.1 MB, free: 25.79 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.2913, allocations: 0 / 397.1 MB, free: 25.79 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003774/0.2917, allocations: 426 kB / 397.5 MB, free: 25.33 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000793/0.2925, allocations: 171.5 kB / 397.6 MB, free: 25.17 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001459/0.294, allocations: 1.327 MB / 399 MB, free: 23.8 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003159/0.2943, allocations: 0.9356 MB / 399.9 MB, free: 22.84 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001169/0.2944, allocations: 59.42 kB / 400 MB, free: 22.78 MB / 298.7 MB Notification: Performance of SimCode: time 4.31e-07/0.2945, allocations: 0 / 400 MB, free: 22.78 MB / 298.7 MB Notification: Performance of Templates: time 0.011/0.3055, allocations: 9.654 MB / 409.6 MB, free: 13.11 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1.sim & ./Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/Interaction1/Interaction1.csv","../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches