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.001175/0.001174, allocations: 107.6 kB / 17.06 MB, free: 5.824 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.001207/0.001207, allocations: 192 kB / 18 MB, free: 4.977 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.455/1.455, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001017/0.001017, allocations: 43.94 kB / 351.3 MB, free: 3.285 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3447/0.3457, 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.004276/0.35, allocations: 2.541 MB / 403.3 MB, free: 6.348 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003156/0.3532, allocations: 1.8 MB / 405.1 MB, free: 4.543 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001936/0.3534, allocations: 11.94 kB / 405.1 MB, free: 4.531 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001196/0.3546, allocations: 0.5369 MB / 405.6 MB, free: 3.996 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007895/0.3554, allocations: 426.5 kB / 406 MB, free: 3.578 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001744/0.3572, allocations: 0.6765 MB / 406.7 MB, free: 2.914 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008719/0.358, allocations: 0.7872 MB / 407.5 MB, free: 2.125 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002238/0.3583, allocations: 109.9 kB / 407.6 MB, free: 2.008 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003836/0.3587, allocations: 326.8 kB / 407.9 MB, free: 1.688 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003919/0.3591, allocations: 358.7 kB / 408.3 MB, free: 1.336 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.126e-05/0.3592, allocations: 40 kB / 408.3 MB, free: 1.297 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004284/0.3596, allocations: 227.7 kB / 408.5 MB, free: 1.074 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002495/0.3599, allocations: 211.3 kB / 408.7 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003269/0.3602, allocations: 294.2 kB / 409 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000948/0.3611, allocations: 0.8576 MB / 409.9 MB, free: 15.72 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.3612, allocations: 0 / 409.9 MB, free: 15.72 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.3612, allocations: 0 / 409.9 MB, free: 15.72 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.051e-05/0.3612, 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.001697/0.3629, allocations: 1.187 MB / 411.1 MB, free: 14.44 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/0.3629, allocations: 19.89 kB / 411.1 MB, free: 14.42 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001386/0.3631, allocations: 80 kB / 411.2 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008101/0.3639, allocations: 0.5933 MB / 411.7 MB, free: 13.71 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.662e-05/0.3639, allocations: 20 kB / 411.8 MB, free: 13.69 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.652e-05/0.364, allocations: 23.98 kB / 411.8 MB, free: 13.66 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000598/0.3646, allocations: 354.8 kB / 412.1 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.454e-05/0.3646, allocations: 3.938 kB / 412.1 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.54e-05/0.3647, allocations: 11.98 kB / 412.2 MB, free: 13.26 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.454e-05/0.3647, allocations: 12 kB / 412.2 MB, free: 13.25 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003738/0.3651, allocations: 171.8 kB / 412.3 MB, free: 13.08 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001439/0.3665, allocations: 1.34 MB / 413.7 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007403/0.3673, allocations: 350.8 kB / 414 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003247/0.3676, allocations: 175.4 kB / 414.2 MB, free: 11.1 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.24e-05/0.3677, allocations: 4 kB / 414.2 MB, free: 11.1 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006704/0.3683, allocations: 467.2 kB / 414.6 MB, free: 10.59 MB / 334.1 MB Notification: Performance of pre-optimization done (n=42): time 2.013e-06/0.3684, allocations: 0 / 414.6 MB, free: 10.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=42): time 0.001415/0.3698, allocations: 0.7407 MB / 415.4 MB, free: 9.82 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003185/0.3701, allocations: 460.9 kB / 415.8 MB, free: 9.266 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001206/0.3713, allocations: 0.9262 MB / 416.8 MB, free: 8.332 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.353e-05/0.3714, allocations: 45.69 kB / 416.8 MB, free: 8.281 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000279/0.3717, allocations: 308.7 kB / 417.1 MB, free: 7.973 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.892e-05/0.3718, allocations: 114.7 kB / 417.2 MB, free: 7.859 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001481/0.3719, allocations: 94.12 kB / 417.3 MB, free: 7.762 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.3721, allocations: 326 kB / 417.6 MB, free: 7.438 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003099/0.3724, allocations: 152.9 kB / 417.8 MB, free: 7.285 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004501/0.3728, allocations: 354.4 kB / 418.1 MB, free: 6.863 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008431/0.3737, allocations: 0.5821 MB / 418.7 MB, free: 6.195 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.3737, allocations: 3.938 kB / 418.7 MB, free: 6.191 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001096/0.3748, allocations: 0.6652 MB / 419.4 MB, free: 5.5 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.494e-05/0.3749, allocations: 97.09 kB / 419.5 MB, free: 5.387 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.828e-06/0.3749, allocations: 4 kB / 419.5 MB, free: 5.383 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.081e-05/0.375, allocations: 4 kB / 419.5 MB, free: 5.379 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002693/0.3752, allocations: 63.91 kB / 419.5 MB, free: 5.316 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.444e-05/0.3753, allocations: 11.92 kB / 419.6 MB, free: 5.305 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002884/0.3755, allocations: 47.95 kB / 419.6 MB, free: 5.258 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.053e-05/0.3756, allocations: 24 kB / 419.6 MB, free: 5.234 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.0004212/0.376, allocations: 399.5 kB / 420 MB, free: 4.82 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001265/0.3762, allocations: 79.06 kB / 420.1 MB, free: 4.742 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001334/0.3763, allocations: 78.42 kB / 420.2 MB, free: 4.664 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.3763, allocations: 8 kB / 420.2 MB, free: 4.656 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/0.3763, allocations: 4 kB / 420.2 MB, free: 4.652 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.693e-06/0.3763, allocations: 3.984 kB / 420.2 MB, free: 4.648 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001175/0.3775, allocations: 0.9567 MB / 421.1 MB, free: 3.625 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.3775, allocations: 7.938 kB / 421.2 MB, free: 3.617 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.914e-05/0.3777, allocations: 27.92 kB / 421.2 MB, free: 3.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.437e-06/0.3777, allocations: 3.938 kB / 421.2 MB, free: 3.586 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.469e-05/0.3777, allocations: 19.98 kB / 421.2 MB, free: 3.566 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.178e-06/0.3777, allocations: 3.984 kB / 421.2 MB, free: 3.562 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.3777, allocations: 8 kB / 421.2 MB, free: 3.555 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001078/0.3788, allocations: 0.7751 MB / 422 MB, free: 2.734 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001333/0.379, allocations: 152.1 kB / 422.1 MB, free: 2.566 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00011/0.3791, allocations: 20 kB / 422.2 MB, free: 2.547 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002475/0.3793, allocations: 31.97 kB / 422.2 MB, free: 2.516 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001101/0.3794, allocations: 35.95 kB / 422.2 MB, free: 2.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.36e-05/0.3795, allocations: 23.98 kB / 422.2 MB, free: 2.457 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007931/0.3803, allocations: 0.6669 MB / 422.9 MB, free: 1.789 MB / 334.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3803, allocations: 4 kB / 422.9 MB, free: 1.785 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005694/0.3809, allocations: 155.9 kB / 423.1 MB, free: 1.633 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.001183/0.3821, allocations: 0.4971 MB / 423.6 MB, free: 1.281 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009602/0.383, allocations: 0.6188 MB / 424.2 MB, free: 0.625 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.3831, allocations: 0.5625 kB / 424.2 MB, free: 0.625 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005318/0.3836, allocations: 442 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.0008508/0.3845, allocations: 166.2 kB / 424.8 MB, free: 0 / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001947/0.3864, allocations: 1.174 MB / 426 MB, free: 14.79 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000544/0.387, allocations: 0.9291 MB / 426.9 MB, free: 13.83 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002754/0.3873, allocations: 108.8 kB / 427 MB, free: 13.72 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001295/0.3874, allocations: 59.42 kB / 427 MB, free: 13.66 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3874, allocations: 4 kB / 427.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of Templates: time 0.02017/0.4076, allocations: 9.37 MB / 436.4 MB, free: 4.352 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