Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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.1_Modelica.Blocks.Examples.Interaction1") translateModel(Modelica.Blocks.Examples.Interaction1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_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.0015/0.0015, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001543/0.001543, allocations: 196.6 kB / 16.53 MB, free: 6.664 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.565/1.565, allocations: 205.1 MB / 222.4 MB, free: 4.59 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.002245/0.002246, allocations: 51.92 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.275/0.2773, allocations: 46.64 MB / 325.3 MB, free: 1.824 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.004627/0.282, allocations: 2.508 MB / 327.8 MB, free: 15.84 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003294/0.2853, allocations: 1.705 MB / 329.5 MB, free: 14.5 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004307/0.2857, allocations: 9.375 kB / 329.5 MB, free: 14.49 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001509/0.2873, allocations: 0.5322 MB / 330.1 MB, free: 14.19 MB / 270.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.001096/0.2884, allocations: 422.1 kB / 330.5 MB, free: 13.91 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002035/0.2905, allocations: 0.6195 MB / 331.1 MB, free: 13.48 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001278/0.2918, allocations: 0.7898 MB / 331.9 MB, free: 13.02 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002753/0.292, allocations: 103.5 kB / 332 MB, free: 12.97 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006612/0.2927, allocations: 324.4 kB / 332.3 MB, free: 12.79 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006216/0.2934, allocations: 359.1 kB / 332.6 MB, free: 12.57 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001316/0.2935, allocations: 40 kB / 332.7 MB, free: 12.53 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00055/0.2941, allocations: 215.7 kB / 332.9 MB, free: 12.32 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003055/0.2944, allocations: 199.4 kB / 333.1 MB, free: 12.12 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003816/0.2948, allocations: 302.2 kB / 333.4 MB, free: 11.82 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009031/0.2957, allocations: 0.8424 MB / 334.2 MB, free: 10.98 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.2957, allocations: 0 / 334.2 MB, free: 10.98 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2957, allocations: 0 / 334.2 MB, free: 10.98 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.159e-05/0.2957, allocations: 4 kB / 334.2 MB, free: 10.98 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.001819/0.2975, allocations: 1.191 MB / 335.4 MB, free: 9.684 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.667e-05/0.2976, allocations: 8.031 kB / 335.4 MB, free: 9.676 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001778/0.2978, allocations: 83.98 kB / 335.5 MB, free: 9.594 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008665/0.2987, allocations: 0.5781 MB / 336.1 MB, free: 8.973 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.943e-05/0.2987, allocations: 12.38 kB / 336.1 MB, free: 8.961 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.217e-05/0.2988, allocations: 36.11 kB / 336.1 MB, free: 8.926 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000613/0.2994, allocations: 354.8 kB / 336.5 MB, free: 8.535 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.356e-05/0.2994, allocations: 3.938 kB / 336.5 MB, free: 8.531 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.63e-05/0.2994, allocations: 8 kB / 336.5 MB, free: 8.523 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.603e-05/0.2995, allocations: 15.92 kB / 336.5 MB, free: 8.508 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003933/0.2999, allocations: 171.8 kB / 336.7 MB, free: 8.34 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001608/0.3015, allocations: 1.344 MB / 338 MB, free: 6.922 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007243/0.3022, allocations: 366.7 kB / 338.4 MB, free: 6.527 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003054/0.3025, allocations: 163.4 kB / 338.5 MB, free: 6.355 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.617e-05/0.3026, allocations: 15.98 kB / 338.6 MB, free: 6.34 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006282/0.3032, allocations: 462.9 kB / 339 MB, free: 5.832 MB / 270.1 MB Notification: Performance of pre-optimization done (n=42): time 2.835e-06/0.3032, allocations: 4 kB / 339 MB, free: 5.828 MB / 270.1 MB Notification: Performance of matching and sorting (n=42): time 0.001377/0.3046, allocations: 0.7325 MB / 339.7 MB, free: 5.07 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002285/0.3049, allocations: 456.9 kB / 340.2 MB, free: 4.52 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001189/0.3061, allocations: 0.934 MB / 341.1 MB, free: 3.578 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.896e-05/0.3061, allocations: 45.69 kB / 341.2 MB, free: 3.527 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002677/0.3064, allocations: 300.8 kB / 341.5 MB, free: 3.23 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000118/0.3065, allocations: 114.7 kB / 341.6 MB, free: 3.117 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001501/0.3067, allocations: 98.02 kB / 341.7 MB, free: 3.016 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001313/0.3068, allocations: 326 kB / 342 MB, free: 2.691 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003239/0.3072, allocations: 144.9 kB / 342.1 MB, free: 2.547 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004725/0.3076, allocations: 362.3 kB / 342.5 MB, free: 2.117 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001198/0.3089, allocations: 0.7836 MB / 343.3 MB, free: 1.223 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.211e-06/0.3089, allocations: 0 / 343.3 MB, free: 1.223 MB / 270.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001133/0.31, allocations: 0.6769 MB / 343.9 MB, free: 0.5195 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.74e-05/0.3101, allocations: 101 kB / 344 MB, free: 412 kB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.24e-05/0.3101, allocations: 4 kB / 344.1 MB, free: 408 kB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.43e-05/0.3102, allocations: 8 kB / 344.1 MB, free: 400 kB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002797/0.3104, allocations: 59.84 kB / 344.1 MB, free: 340 kB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.372e-05/0.3105, allocations: 8 kB / 344.1 MB, free: 332 kB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002882/0.3108, allocations: 52.08 kB / 344.2 MB, free: 280 kB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.176e-05/0.3108, allocations: 24 kB / 344.2 MB, free: 256 kB / 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],$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,$PRE.stop.table.y,$PRE.stop.reset[1],stop.pre_reset[1],stop.table.combiTimeTable.nextTimeEventScaled,$PRE.stop.table.combiTimeTable.nextTimeEventScaled,stop.table.combiTimeTable.nextTimeEvent,stop.table.y,$whenCondition5,$whenCondition4,$PRE.start.table.y,$PRE.start.reset[1],start.pre_reset[1],start.table.combiTimeTable.nextTimeEventScaled,$PRE.start.table.combiTimeTable.nextTimeEventScaled,start.table.combiTimeTable.nextTimeEvent,start.table.y,$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.0004697/0.3113, allocations: 402.8 kB / 344.6 MB, free: 15.83 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001241/0.3114, allocations: 83 kB / 344.7 MB, free: 15.75 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001325/0.3116, allocations: 82.2 kB / 344.8 MB, free: 15.66 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.092e-06/0.3116, allocations: 4 kB / 344.8 MB, free: 15.66 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/0.3116, allocations: 0 / 344.8 MB, free: 15.66 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.3116, allocations: 4 kB / 344.8 MB, free: 15.65 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001381/0.313, allocations: 0.9581 MB / 345.7 MB, free: 14.62 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.313, allocations: 0 / 345.7 MB, free: 14.62 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.785e-05/0.3131, allocations: 23.98 kB / 345.7 MB, free: 14.6 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.05e-06/0.3131, allocations: 4 kB / 345.7 MB, free: 14.6 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.042e-05/0.3132, allocations: 27.86 kB / 345.8 MB, free: 14.57 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.169e-06/0.3132, allocations: 4 kB / 345.8 MB, free: 14.57 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.3132, allocations: 0 / 345.8 MB, free: 14.57 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00109/0.3143, allocations: 0.7675 MB / 346.5 MB, free: 13.75 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001452/0.3144, allocations: 156.1 kB / 346.7 MB, free: 13.58 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001181/0.3146, allocations: 27.92 kB / 346.7 MB, free: 13.55 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002371/0.3148, allocations: 19.98 kB / 346.7 MB, free: 13.54 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001038/0.3149, allocations: 43.88 kB / 346.8 MB, free: 13.49 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.076e-05/0.315, allocations: 23.98 kB / 346.8 MB, free: 13.47 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0009718/0.316, allocations: 0.6669 MB / 347.5 MB, free: 12.8 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.316, allocations: 0 / 347.5 MB, free: 12.8 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0007472/0.3167, allocations: 163.8 kB / 347.6 MB, free: 12.64 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 (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.001376/0.3181, allocations: 0.4895 MB / 348.1 MB, free: 12.15 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001116/0.3192, allocations: 0.6348 MB / 348.8 MB, free: 11.48 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 7.343e-06/0.3193, allocations: 0 / 348.8 MB, free: 11.48 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006463/0.3199, allocations: 437.9 kB / 349.2 MB, free: 11.02 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000963/0.3209, allocations: 172 kB / 349.4 MB, free: 10.85 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001929/0.3228, allocations: 1.187 MB / 350.5 MB, free: 9.625 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006446/0.3235, allocations: 0.9328 MB / 351.5 MB, free: 8.664 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0003407/0.3238, allocations: 109.1 kB / 351.6 MB, free: 8.559 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001355/0.324, allocations: 55.42 kB / 351.6 MB, free: 8.504 MB / 286.1 MB Notification: Performance of SimCode: time 9.62e-07/0.324, allocations: 4 kB / 351.6 MB, free: 8.5 MB / 286.1 MB Notification: Performance of Templates: time 0.01871/0.3427, allocations: 9.342 MB / 361 MB, free: 15.14 MB / 302.1 MB make -j1 -f Modelica_3.1_Modelica.Blocks.Examples.Interaction1.makefile (rm -f Modelica_3.1_Modelica.Blocks.Examples.Interaction1.pipe ; mkfifo Modelica_3.1_Modelica.Blocks.Examples.Interaction1.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Blocks.Examples.Interaction1.pipe >> ../files/Modelica_3.1_Modelica.Blocks.Examples.Interaction1.sim & ./Modelica_3.1_Modelica.Blocks.Examples.Interaction1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Blocks.Examples.Interaction1.pipe 2>&1)