Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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 3.2.3+maint.om/package.mo", uses=false) 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 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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Blocks.Examples.Interaction1") translateModel(Modelica.Blocks.Examples.Interaction1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.0008836/0.000884, allocations: 87.89 kB / 16.31 MB, free: 6.457 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.0009538/0.000954, allocations: 183.9 kB / 17.21 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.59/1.59, allocations: 205.4 MB / 223.4 MB, free: 5.262 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005278/0.0005278, allocations: 12 kB / 280.1 MB, free: 12.69 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3358/0.3363, allocations: 47.59 MB / 327.7 MB, free: 1.441 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.003215/0.3396, allocations: 2.103 MB / 329.8 MB, free: 15.79 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002902/0.3425, allocations: 1.597 MB / 331.4 MB, free: 14.54 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002384/0.3428, allocations: 7.062 kB / 331.4 MB, free: 14.54 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001292/0.3441, allocations: 0.4902 MB / 331.9 MB, free: 14.27 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007221/0.3448, allocations: 354.2 kB / 332.3 MB, free: 14.05 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001643/0.3465, allocations: 0.5238 MB / 332.8 MB, free: 13.72 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009166/0.3474, allocations: 0.6887 MB / 333.5 MB, free: 13.3 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002166/0.3476, allocations: 86.92 kB / 333.6 MB, free: 13.26 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003965/0.348, allocations: 275.8 kB / 333.8 MB, free: 13.12 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004162/0.3485, allocations: 310.9 kB / 334.1 MB, free: 12.96 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.23e-05/0.3485, allocations: 17.78 kB / 334.2 MB, free: 12.95 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003737/0.3489, allocations: 164.7 kB / 334.3 MB, free: 12.87 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002642/0.3492, allocations: 183.4 kB / 334.5 MB, free: 12.69 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001495/0.3493, allocations: 133.3 kB / 334.6 MB, free: 12.55 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006911/0.35, allocations: 0.621 MB / 335.2 MB, free: 11.93 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.3501, allocations: 0 / 335.2 MB, free: 11.93 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3501, allocations: 0 / 335.2 MB, free: 11.93 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.807e-06/0.3501, allocations: 0 / 335.2 MB, free: 11.93 MB / 270.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.001661/0.3517, allocations: 1.086 MB / 336.3 MB, free: 10.75 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.615e-05/0.3518, allocations: 12.03 kB / 336.3 MB, free: 10.73 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001195/0.3519, allocations: 75.06 kB / 336.4 MB, free: 10.66 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008054/0.3527, allocations: 0.5617 MB / 337 MB, free: 10.05 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.819e-05/0.3528, allocations: 16 kB / 337 MB, free: 10.04 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.757e-05/0.3528, allocations: 24 kB / 337 MB, free: 10.02 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006416/0.3535, allocations: 358.7 kB / 337.4 MB, free: 9.621 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.501e-05/0.3535, allocations: 0 / 337.4 MB, free: 9.621 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.718e-05/0.3536, allocations: 12 kB / 337.4 MB, free: 9.609 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.021e-05/0.3536, allocations: 8 kB / 337.4 MB, free: 9.602 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003694/0.354, allocations: 175.8 kB / 337.6 MB, free: 9.43 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001669/0.3557, allocations: 1.345 MB / 338.9 MB, free: 8.012 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006552/0.3563, allocations: 350.8 kB / 339.2 MB, free: 7.633 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002811/0.3566, allocations: 175.4 kB / 339.4 MB, free: 7.449 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.684e-05/0.3567, allocations: 8 kB / 339.4 MB, free: 7.441 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006104/0.3573, allocations: 451.2 kB / 339.9 MB, free: 6.945 MB / 270.1 MB Notification: Performance of pre-optimization done (n=42): time 3.616e-06/0.3573, allocations: 4 kB / 339.9 MB, free: 6.941 MB / 270.1 MB Notification: Performance of matching and sorting (n=42): time 0.001328/0.3586, allocations: 0.7469 MB / 340.6 MB, free: 6.172 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002573/0.3589, allocations: 456.9 kB / 341.1 MB, free: 5.621 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001153/0.3601, allocations: 0.934 MB / 342 MB, free: 4.68 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.318e-05/0.3601, allocations: 45.64 kB / 342 MB, free: 4.629 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002672/0.3604, allocations: 304.7 kB / 342.3 MB, free: 4.328 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.916e-05/0.3605, allocations: 106.7 kB / 342.4 MB, free: 4.223 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.21e-05/0.3605, allocations: 12 kB / 342.5 MB, free: 4.211 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.3607, allocations: 325.9 kB / 342.8 MB, free: 3.887 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002796/0.361, allocations: 148.9 kB / 342.9 MB, free: 3.738 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004241/0.3614, allocations: 350.4 kB / 343.3 MB, free: 3.32 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003899/0.3618, allocations: 261 kB / 343.5 MB, free: 3.047 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.3618, allocations: 0 / 343.5 MB, free: 3.047 MB / 270.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001192/0.363, allocations: 0.6693 MB / 344.2 MB, free: 2.352 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.916e-05/0.3631, allocations: 97.09 kB / 344.3 MB, free: 2.238 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.236e-05/0.3631, allocations: 7.984 kB / 344.3 MB, free: 2.23 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.252e-05/0.3632, allocations: 4 kB / 344.3 MB, free: 2.227 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002647/0.3634, allocations: 68.12 kB / 344.4 MB, free: 2.16 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.227e-05/0.3635, allocations: 8 kB / 344.4 MB, free: 2.152 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002878/0.3638, allocations: 55.66 kB / 344.4 MB, free: 2.098 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.531e-05/0.3638, allocations: 20 kB / 344.4 MB, free: 2.078 MB / 270.1 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],$whenCondition4,$whenCondition5,$PRE.stop.reset[1],$PRE.stop.table.y,stop.table.y,stop.table.combiTimeTable.nextTimeEvent,$PRE.stop.table.combiTimeTable.nextTimeEventScaled,stop.table.combiTimeTable.nextTimeEventScaled,stop.pre_reset[1],$whenCondition6,$whenCondition7,$PRE.start.reset[1],$PRE.start.table.y,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.0004954/0.3643, allocations: 410.6 kB / 344.8 MB, free: 1.652 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001046/0.3644, allocations: 79.06 kB / 344.9 MB, free: 1.574 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001442/0.3646, allocations: 78.2 kB / 345 MB, free: 1.488 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.663e-06/0.3646, allocations: 4 kB / 345 MB, free: 1.484 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.074e-05/0.3646, allocations: 0 / 345 MB, free: 1.484 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.126e-06/0.3646, allocations: 3.984 kB / 345 MB, free: 1.48 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001369/0.366, allocations: 0.9543 MB / 346 MB, free: 468 kB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.64e-06/0.366, allocations: 11.88 kB / 346 MB, free: 456 kB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.665e-05/0.3661, allocations: 24.27 kB / 346 MB, free: 432 kB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.701e-06/0.3661, allocations: 4 kB / 346 MB, free: 428 kB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.815e-05/0.3662, allocations: 15.98 kB / 346 MB, free: 412 kB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.3662, allocations: 3.938 kB / 346 MB, free: 408 kB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.3662, allocations: 4 kB / 346 MB, free: 404 kB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001243/0.3674, allocations: 0.7791 MB / 346.8 MB, free: 15.57 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001735/0.3676, allocations: 168.1 kB / 347 MB, free: 15.38 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001048/0.3677, allocations: 20 kB / 347 MB, free: 15.36 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002422/0.368, allocations: 31.97 kB / 347 MB, free: 15.33 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001185/0.3681, allocations: 35.95 kB / 347 MB, free: 15.3 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.336e-05/0.3682, allocations: 23.98 kB / 347.1 MB, free: 15.27 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0008611/0.369, allocations: 0.6669 MB / 347.7 MB, free: 14.61 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.369, allocations: 0 / 347.7 MB, free: 14.61 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006332/0.3697, allocations: 151.8 kB / 347.9 MB, free: 14.46 MB / 286.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 (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.001484/0.3712, allocations: 0.4935 MB / 348.4 MB, free: 13.97 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001027/0.3722, allocations: 0.611 MB / 349 MB, free: 13.32 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.3722, allocations: 4 kB / 349 MB, free: 13.32 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005774/0.3728, allocations: 441.9 kB / 349.4 MB, free: 12.85 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008931/0.3737, allocations: 167.3 kB / 349.6 MB, free: 12.69 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002042/0.3758, allocations: 1.258 MB / 350.8 MB, free: 11.39 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005638/0.3763, allocations: 0.9293 MB / 351.8 MB, free: 10.44 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.000283/0.3766, allocations: 109.6 kB / 351.9 MB, free: 10.33 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001228/0.3768, allocations: 59.41 kB / 351.9 MB, free: 10.27 MB / 286.1 MB Notification: Performance of SimCode: time 3.9e-07/0.3768, allocations: 0 / 351.9 MB, free: 10.27 MB / 286.1 MB Notification: Performance of Templates: time 0.01699/0.3938, allocations: 8.512 MB / 360.5 MB, free: 1.746 MB / 286.1 MB make -j1 -f Modelica_3.2.2_Modelica.Blocks.Examples.Interaction1.makefile (rm -f Modelica_3.2.2_Modelica.Blocks.Examples.Interaction1.pipe ; mkfifo Modelica_3.2.2_Modelica.Blocks.Examples.Interaction1.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Blocks.Examples.Interaction1.pipe >> ../files/Modelica_3.2.2_Modelica.Blocks.Examples.Interaction1.sim & ./Modelica_3.2.2_Modelica.Blocks.Examples.Interaction1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Blocks.Examples.Interaction1.pipe 2>&1)