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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001212/0.001212, allocations: 110.3 kB / 17.06 MB, free: 6.137 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0013/0.0013, allocations: 191 kB / 18 MB, free: 5.219 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.402/1.402, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009697/0.0009697, allocations: 43.94 kB / 351.3 MB, free: 3.277 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2785/0.2795, allocations: 49.43 MB / 400.7 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.003946/0.2835, allocations: 2.549 MB / 403.3 MB, free: 6.336 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002881/0.2864, allocations: 1.792 MB / 405 MB, free: 4.539 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001988/0.2866, allocations: 11.88 kB / 405.1 MB, free: 4.527 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001205/0.2878, allocations: 0.5289 MB / 405.6 MB, free: 4 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007463/0.2885, allocations: 434.5 kB / 406 MB, free: 3.574 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00154/0.2901, allocations: 0.6654 MB / 406.7 MB, free: 2.918 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007347/0.2908, allocations: 0.7988 MB / 407.5 MB, free: 2.117 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001924/0.291, allocations: 97.95 kB / 407.6 MB, free: 2.012 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003454/0.2914, allocations: 326.9 kB / 407.9 MB, free: 1.691 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004186/0.2918, allocations: 362.6 kB / 408.2 MB, free: 1.336 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.489e-05/0.2919, allocations: 44 kB / 408.3 MB, free: 1.293 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003433/0.2922, allocations: 227.8 kB / 408.5 MB, free: 1.07 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001959/0.2925, allocations: 207.3 kB / 408.7 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002486/0.2927, allocations: 298.2 kB / 409 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008039/0.2935, allocations: 0.8538 MB / 409.9 MB, free: 15.72 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.2935, allocations: 0 / 409.9 MB, free: 15.72 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2935, allocations: 0 / 409.9 MB, free: 15.72 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.176e-06/0.2936, allocations: 0 / 409.9 MB, free: 15.72 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.00153/0.2951, allocations: 1.195 MB / 411.1 MB, free: 14.43 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.2951, allocations: 11.89 kB / 411.1 MB, free: 14.42 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001622/0.2953, allocations: 80 kB / 411.1 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008073/0.2961, allocations: 0.5895 MB / 411.7 MB, free: 13.71 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.895e-05/0.2962, allocations: 23.98 kB / 411.8 MB, free: 13.69 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.953e-05/0.2962, allocations: 23.98 kB / 411.8 MB, free: 13.66 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006087/0.2968, allocations: 358.7 kB / 412.1 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/0.2969, allocations: 3.938 kB / 412.1 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.696e-05/0.2969, allocations: 15.98 kB / 412.1 MB, free: 13.25 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.207e-05/0.297, allocations: 11.98 kB / 412.2 MB, free: 13.24 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003864/0.2973, allocations: 171.8 kB / 412.3 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001644/0.299, allocations: 1.329 MB / 413.7 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007363/0.2997, allocations: 362.5 kB / 414 MB, free: 11.28 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002992/0.3001, allocations: 171.4 kB / 414.2 MB, free: 11.1 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.286e-05/0.3001, allocations: 8 kB / 414.2 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005818/0.3007, allocations: 467.2 kB / 414.6 MB, free: 10.58 MB / 334.1 MB Notification: Performance of pre-optimization done (n=42): time 3.566e-06/0.3007, allocations: 0 / 414.6 MB, free: 10.58 MB / 334.1 MB Notification: Performance of matching and sorting (n=42): time 0.001393/0.3021, allocations: 0.7374 MB / 415.4 MB, free: 9.82 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000255/0.3024, allocations: 464.9 kB / 415.8 MB, free: 9.262 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001139/0.3035, allocations: 0.9301 MB / 416.8 MB, free: 8.324 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.088e-05/0.3036, allocations: 49.69 kB / 416.8 MB, free: 8.27 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002386/0.3038, allocations: 304.7 kB / 417.1 MB, free: 7.965 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.5e-05/0.3039, allocations: 106.7 kB / 417.2 MB, free: 7.859 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001365/0.3041, allocations: 98.11 kB / 417.3 MB, free: 7.758 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001106/0.3042, allocations: 326 kB / 417.6 MB, free: 7.434 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002914/0.3045, allocations: 156.9 kB / 417.8 MB, free: 7.277 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00043/0.3049, allocations: 354.4 kB / 418.1 MB, free: 6.855 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007287/0.3057, allocations: 0.5699 MB / 418.7 MB, free: 6.199 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.3057, allocations: 3.938 kB / 418.7 MB, free: 6.195 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001045/0.3067, allocations: 0.6656 MB / 419.4 MB, free: 5.504 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.343e-05/0.3068, allocations: 97.09 kB / 419.5 MB, free: 5.391 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.577e-06/0.3068, allocations: 4.328 kB / 419.5 MB, free: 5.387 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.91e-05/0.3069, allocations: 15.92 kB / 419.5 MB, free: 5.371 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002617/0.3071, allocations: 67.84 kB / 419.5 MB, free: 5.305 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.214e-05/0.3072, allocations: 4 kB / 419.6 MB, free: 5.301 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002834/0.3074, allocations: 51.66 kB / 419.6 MB, free: 5.25 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.079e-05/0.3075, allocations: 24 kB / 419.6 MB, free: 5.227 MB / 334.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.0004152/0.3079, allocations: 399.8 kB / 420 MB, free: 4.812 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00011/0.308, allocations: 79.06 kB / 420.1 MB, free: 4.734 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001362/0.3082, allocations: 82.19 kB / 420.2 MB, free: 4.652 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.3082, allocations: 4 kB / 420.2 MB, free: 4.648 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.565e-06/0.3082, allocations: 4 kB / 420.2 MB, free: 4.645 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.708e-06/0.3082, allocations: 0 / 420.2 MB, free: 4.645 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001162/0.3094, allocations: 0.9644 MB / 421.1 MB, free: 3.613 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.251e-06/0.3094, allocations: 3.938 kB / 421.1 MB, free: 3.609 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000102/0.3095, allocations: 27.98 kB / 421.2 MB, free: 3.582 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.3095, allocations: 0 / 421.2 MB, free: 3.582 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.111e-05/0.3096, allocations: 19.98 kB / 421.2 MB, free: 3.562 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.088e-06/0.3096, allocations: 3.938 kB / 421.2 MB, free: 3.559 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.3096, allocations: 4 kB / 421.2 MB, free: 3.555 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001055/0.3106, allocations: 0.7752 MB / 422 MB, free: 2.734 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001337/0.3108, allocations: 156.1 kB / 422.1 MB, free: 2.562 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.812e-05/0.3109, allocations: 20 kB / 422.2 MB, free: 2.543 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002293/0.3111, allocations: 27.97 kB / 422.2 MB, free: 2.516 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001124/0.3112, allocations: 35.91 kB / 422.2 MB, free: 2.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.548e-05/0.3113, allocations: 27.97 kB / 422.2 MB, free: 2.453 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007476/0.3121, allocations: 0.6708 MB / 422.9 MB, free: 1.781 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3121, allocations: 4 kB / 422.9 MB, free: 1.777 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005499/0.3126, allocations: 155.9 kB / 423.1 MB, free: 1.625 MB / 334.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.001104/0.3137, allocations: 0.5019 MB / 423.6 MB, free: 1.27 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009175/0.3147, allocations: 0.6151 MB / 424.2 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.3147, allocations: 0 / 424.2 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005101/0.3152, allocations: 434 kB / 424.6 MB, free: 160 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000787/0.316, allocations: 175.8 kB / 424.8 MB, free: 0 / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001713/0.3177, allocations: 1.177 MB / 426 MB, free: 14.79 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004852/0.3182, allocations: 0.9291 MB / 426.9 MB, free: 13.83 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002441/0.3185, allocations: 113.5 kB / 427 MB, free: 13.71 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001214/0.3186, allocations: 55.42 kB / 427.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3186, allocations: 0 / 427.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of Templates: time 0.01592/0.3345, allocations: 9.375 MB / 436.4 MB, free: 4.344 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.makefile (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) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Interaction1/Interaction1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches