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.001787/0.001787, allocations: 108 kB / 18.45 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002027/0.002027, allocations: 211.8 kB / 19.41 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.344/1.344, allocations: 227.4 MB / 247.6 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001458/0.001459, allocations: 63.89 kB / 359.4 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2686/0.2701, allocations: 50.54 MB / 409.9 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.004101/0.2742, allocations: 2.58 MB / 412.5 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003777/0.278, allocations: 1.922 MB / 414.4 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005182/0.2786, allocations: 7.938 kB / 414.4 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001539/0.2801, allocations: 0.5375 MB / 415 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001345/0.2815, allocations: 493.9 kB / 415.5 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00177/0.2833, allocations: 0.5375 MB / 416 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001331/0.2846, allocations: 0.8339 MB / 416.8 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002772/0.2849, allocations: 113.9 kB / 416.9 MB, free: 10.56 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000567/0.2855, allocations: 338.8 kB / 417.3 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005147/0.286, allocations: 370.5 kB / 417.6 MB, free: 9.863 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000123/0.2862, allocations: 40 kB / 417.7 MB, free: 9.824 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004642/0.2866, allocations: 227.8 kB / 417.9 MB, free: 9.602 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002613/0.2869, allocations: 207.3 kB / 418.1 MB, free: 9.398 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003591/0.2873, allocations: 314 kB / 418.4 MB, free: 9.09 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001142/0.2884, allocations: 0.881 MB / 419.3 MB, free: 8.211 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.2884, allocations: 4 kB / 419.3 MB, free: 8.207 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.2884, allocations: 0 / 419.3 MB, free: 8.207 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.58e-05/0.2885, allocations: 4 kB / 419.3 MB, free: 8.203 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.002345/0.2908, allocations: 1.222 MB / 420.5 MB, free: 6.887 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.2909, allocations: 8.031 kB / 420.5 MB, free: 6.879 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002107/0.2911, allocations: 83.94 kB / 420.6 MB, free: 6.797 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001069/0.2922, allocations: 0.6092 MB / 421.2 MB, free: 6.148 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.206e-05/0.2922, allocations: 16.38 kB / 421.2 MB, free: 6.133 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.624e-05/0.2923, allocations: 36.05 kB / 421.3 MB, free: 6.098 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000751/0.2931, allocations: 350.7 kB / 421.6 MB, free: 5.711 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.332e-05/0.2931, allocations: 0 / 421.6 MB, free: 5.711 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.668e-05/0.2931, allocations: 12 kB / 421.6 MB, free: 5.699 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.829e-05/0.2932, allocations: 8 kB / 421.6 MB, free: 5.691 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000404/0.2936, allocations: 179.8 kB / 421.8 MB, free: 5.516 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001832/0.2954, allocations: 1.344 MB / 423.1 MB, free: 4.098 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006988/0.2961, allocations: 362.4 kB / 423.5 MB, free: 3.711 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000311/0.2964, allocations: 179.3 kB / 423.7 MB, free: 3.523 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.101e-05/0.2965, allocations: 4 kB / 423.7 MB, free: 3.52 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005844/0.2971, allocations: 471 kB / 424.1 MB, free: 3.004 MB / 334.1 MB Notification: Performance of pre-optimization done (n=42): time 2.154e-06/0.2971, allocations: 0 / 424.1 MB, free: 3.004 MB / 334.1 MB Notification: Performance of matching and sorting (n=42): time 0.001341/0.2984, allocations: 0.7465 MB / 424.9 MB, free: 2.234 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002124/0.2987, allocations: 456.9 kB / 425.3 MB, free: 1.684 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001226/0.2999, allocations: 0.9733 MB / 426.3 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.771e-05/0.3, allocations: 41.7 kB / 426.3 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002783/0.3003, allocations: 316.8 kB / 426.6 MB, free: 340 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.853e-05/0.3004, allocations: 106.6 kB / 426.8 MB, free: 232 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001509/0.3005, allocations: 98.11 kB / 426.8 MB, free: 128 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001477/0.3007, allocations: 330 kB / 427.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003091/0.301, allocations: 152.9 kB / 427.3 MB, free: 15.65 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004741/0.3015, allocations: 350.4 kB / 427.7 MB, free: 15.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007522/0.3023, allocations: 0.5782 MB / 428.2 MB, free: 14.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.48e-06/0.3023, allocations: 4 kB / 428.2 MB, free: 14.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001188/0.3035, allocations: 0.6658 MB / 428.9 MB, free: 13.87 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.604e-05/0.3036, allocations: 101 kB / 429 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.157e-05/0.3036, allocations: 7.938 kB / 429 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.284e-05/0.3036, allocations: 4 kB / 429 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002657/0.3039, allocations: 63.91 kB / 429.1 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.751e-05/0.3039, allocations: 11.94 kB / 429.1 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000336/0.3043, allocations: 51.62 kB / 429.1 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.739e-05/0.3043, allocations: 23.94 kB / 429.2 MB, free: 13.59 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.0005661/0.3049, allocations: 402.9 kB / 429.6 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001352/0.305, allocations: 86.98 kB / 429.6 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001529/0.3052, allocations: 82.7 kB / 429.7 MB, free: 13.01 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/0.3052, allocations: 4 kB / 429.7 MB, free: 13.01 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.324e-05/0.3052, allocations: 4 kB / 429.7 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.015e-05/0.3052, allocations: 3.984 kB / 429.7 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001415/0.3066, allocations: 0.9776 MB / 430.7 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.3067, allocations: 0 / 430.7 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001047/0.3068, allocations: 27.92 kB / 430.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.783e-06/0.3068, allocations: 4 kB / 430.7 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.965e-05/0.3068, allocations: 19.92 kB / 430.8 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.45e-06/0.3068, allocations: 4 kB / 430.8 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.3068, allocations: 0 / 430.8 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001159/0.308, allocations: 0.7827 MB / 431.6 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001654/0.3082, allocations: 148.2 kB / 431.7 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001176/0.3083, allocations: 27.92 kB / 431.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002527/0.3086, allocations: 23.98 kB / 431.7 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/0.3087, allocations: 35.95 kB / 431.8 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.064e-05/0.3087, allocations: 27.98 kB / 431.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008468/0.3096, allocations: 0.6982 MB / 432.5 MB, free: 10.09 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3096, allocations: 0 / 432.5 MB, free: 10.09 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005697/0.3102, allocations: 151.8 kB / 432.7 MB, free: 9.945 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.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.001107/0.3113, allocations: 0.4894 MB / 433.1 MB, free: 9.586 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00099/0.3123, allocations: 0.6113 MB / 433.8 MB, free: 8.938 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.3123, allocations: 192 / 433.8 MB, free: 8.938 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005145/0.3128, allocations: 429.8 kB / 434.2 MB, free: 8.484 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000829/0.3137, allocations: 193.6 kB / 434.4 MB, free: 8.305 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002074/0.3158, allocations: 1.267 MB / 435.6 MB, free: 6.996 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005608/0.3163, allocations: 0.9407 MB / 436.6 MB, free: 6.027 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001717/0.3165, allocations: 63.42 kB / 436.6 MB, free: 5.965 MB / 350.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3165, allocations: 0 / 436.6 MB, free: 5.965 MB / 350.1 MB Notification: Performance of Templates: time 0.01542/0.3319, allocations: 10.11 MB / 446.7 MB, free: 11.88 MB / 366.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