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.001445/0.001445, allocations: 117.2 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001703/0.001703, allocations: 204.6 kB / 18.74 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.416/1.416, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001143/0.001143, allocations: 63.89 kB / 358.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.324/0.3251, allocations: 50.54 MB / 409.2 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.004433/0.3296, allocations: 2.576 MB / 411.8 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003432/0.3331, allocations: 1.929 MB / 413.7 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002244/0.3333, allocations: 7.938 kB / 413.7 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001169/0.3345, allocations: 0.5414 MB / 414.3 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008551/0.3354, allocations: 486.3 kB / 414.8 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001344/0.3367, allocations: 0.5486 MB / 415.3 MB, free: 11.47 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008337/0.3376, allocations: 0.8378 MB / 416.2 MB, free: 10.63 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002157/0.3378, allocations: 113.9 kB / 416.3 MB, free: 10.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000374/0.3382, allocations: 334.8 kB / 416.6 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003872/0.3386, allocations: 370.5 kB / 417 MB, free: 9.824 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.988e-05/0.3386, allocations: 44 kB / 417 MB, free: 9.781 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003828/0.339, allocations: 227.8 kB / 417.2 MB, free: 9.559 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002207/0.3393, allocations: 207.3 kB / 417.4 MB, free: 9.355 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002759/0.3395, allocations: 314 kB / 417.7 MB, free: 9.047 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008739/0.3404, allocations: 0.8849 MB / 418.6 MB, free: 8.164 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.3404, allocations: 4 kB / 418.6 MB, free: 8.16 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.3404, allocations: 0 / 418.6 MB, free: 8.16 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.207e-06/0.3405, allocations: 0 / 418.6 MB, free: 8.16 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.001715/0.3422, allocations: 1.214 MB / 419.8 MB, free: 6.852 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.178e-05/0.3422, allocations: 12.03 kB / 419.8 MB, free: 6.84 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000146/0.3424, allocations: 87.92 kB / 419.9 MB, free: 6.754 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008335/0.3432, allocations: 0.6013 MB / 420.5 MB, free: 6.113 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.402e-05/0.3433, allocations: 28.34 kB / 420.6 MB, free: 6.086 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.569e-05/0.3433, allocations: 24.12 kB / 420.6 MB, free: 6.062 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005909/0.3439, allocations: 358.6 kB / 420.9 MB, free: 5.668 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.274e-05/0.3439, allocations: 8 kB / 420.9 MB, free: 5.66 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.258e-05/0.344, allocations: 8 kB / 420.9 MB, free: 5.652 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.389e-05/0.344, allocations: 8 kB / 421 MB, free: 5.645 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003783/0.3444, allocations: 175.8 kB / 421.1 MB, free: 5.473 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001493/0.3459, allocations: 1.344 MB / 422.5 MB, free: 4.055 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006992/0.3466, allocations: 358.7 kB / 422.8 MB, free: 3.668 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000282/0.3469, allocations: 171.4 kB / 423 MB, free: 3.488 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.732e-05/0.347, allocations: 11.94 kB / 423 MB, free: 3.477 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005891/0.3476, allocations: 463 kB / 423.5 MB, free: 2.969 MB / 334.1 MB Notification: Performance of pre-optimization done (n=42): time 1.944e-06/0.3476, allocations: 4 kB / 423.5 MB, free: 2.965 MB / 334.1 MB Notification: Performance of matching and sorting (n=42): time 0.001326/0.3489, allocations: 0.7387 MB / 424.2 MB, free: 2.203 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002238/0.3491, allocations: 460.9 kB / 424.6 MB, free: 1.648 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001112/0.3503, allocations: 0.9732 MB / 425.6 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.786e-05/0.3503, allocations: 45.7 kB / 425.7 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002495/0.3506, allocations: 316.8 kB / 426 MB, free: 300 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.388e-05/0.3507, allocations: 106.6 kB / 426.1 MB, free: 192 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00014/0.3508, allocations: 98.12 kB / 426.2 MB, free: 88 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.351, allocations: 326 kB / 426.5 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000287/0.3513, allocations: 152.9 kB / 426.6 MB, free: 15.61 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004444/0.3517, allocations: 354.4 kB / 427 MB, free: 15.19 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007059/0.3524, allocations: 0.5744 MB / 427.6 MB, free: 14.53 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.049e-06/0.3525, allocations: 4 kB / 427.6 MB, free: 14.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001039/0.3535, allocations: 0.6732 MB / 428.2 MB, free: 13.83 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.215e-05/0.3536, allocations: 101 kB / 428.3 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.901e-05/0.3536, allocations: 7.984 kB / 428.3 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.778e-05/0.3536, allocations: 8 kB / 428.4 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002459/0.3539, allocations: 63.84 kB / 428.4 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.19e-05/0.3539, allocations: 8 kB / 428.4 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002752/0.3542, allocations: 47.64 kB / 428.5 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.829e-05/0.3542, allocations: 20 kB / 428.5 MB, free: 13.56 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.0003919/0.3546, allocations: 402.7 kB / 428.9 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001145/0.3548, allocations: 87.12 kB / 429 MB, free: 13.06 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001344/0.3549, allocations: 78.58 kB / 429 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.075e-05/0.3549, allocations: 8 kB / 429 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.732e-06/0.3549, allocations: 3.938 kB / 429.1 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.3549, allocations: 4 kB / 429.1 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001205/0.3561, allocations: 0.9776 MB / 430 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.3562, allocations: 0 / 430 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.667e-05/0.3563, allocations: 27.92 kB / 430.1 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.3563, allocations: 0 / 430.1 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.398e-05/0.3563, allocations: 27.92 kB / 430.1 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.3563, allocations: 0 / 430.1 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.3563, allocations: 0 / 430.1 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001081/0.3574, allocations: 0.7827 MB / 430.9 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000137/0.3576, allocations: 152.2 kB / 431 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001046/0.3577, allocations: 23.94 kB / 431 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002751/0.358, allocations: 27.97 kB / 431.1 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001115/0.3581, allocations: 39.91 kB / 431.1 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.114e-05/0.3581, allocations: 23.98 kB / 431.1 MB, free: 10.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009167/0.3591, allocations: 0.6982 MB / 431.8 MB, free: 10.05 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3591, allocations: 0 / 431.8 MB, free: 10.05 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00059/0.3597, allocations: 159.8 kB / 432 MB, free: 9.898 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.001137/0.3608, allocations: 0.4891 MB / 432.5 MB, free: 9.539 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009209/0.3617, allocations: 0.6072 MB / 433.1 MB, free: 8.895 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.3618, allocations: 0 / 433.1 MB, free: 8.895 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005213/0.3623, allocations: 438.3 kB / 433.5 MB, free: 8.43 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007778/0.3631, allocations: 183.5 kB / 433.7 MB, free: 8.262 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001867/0.3649, allocations: 1.221 MB / 434.9 MB, free: 7.004 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004846/0.3654, allocations: 0.9407 MB / 435.9 MB, free: 6.035 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002527/0.3657, allocations: 112.8 kB / 436 MB, free: 5.926 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001296/0.3658, allocations: 63.42 kB / 436 MB, free: 5.863 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3658, allocations: 0 / 436 MB, free: 5.863 MB / 350.1 MB Notification: Performance of Templates: time 0.01737/0.3832, allocations: 9.5 MB / 445.5 MB, free: 12.4 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/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_trunk_Modelica.Blocks.Examples.Interaction1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches