Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Blocks.Examples.Interaction1") translateModel(Modelica.Blocks.Examples.Interaction1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.001161/0.001161, allocations: 92.31 kB / 15.06 MB, free: 1.098 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.001538/0.001538, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.447/1.447, allocations: 205.4 MB / 222.1 MB, free: 5.523 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.000442/0.0004422, allocations: 8 kB / 278.9 MB, free: 12.71 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2096/0.2101, allocations: 47.58 MB / 326.5 MB, free: 1.426 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.002155/0.2122, allocations: 2.105 MB / 328.6 MB, free: 15.77 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002448/0.2147, allocations: 1.593 MB / 330.2 MB, free: 14.53 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001548/0.2149, allocations: 11.47 kB / 330.2 MB, free: 14.52 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009909/0.2159, allocations: 498.5 kB / 330.7 MB, free: 14.25 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006389/0.2165, allocations: 354.5 kB / 331 MB, free: 14.04 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001409/0.218, allocations: 0.5312 MB / 331.5 MB, free: 13.7 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009241/0.2189, allocations: 0.6808 MB / 332.2 MB, free: 13.29 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002008/0.2191, allocations: 86.81 kB / 332.3 MB, free: 13.25 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005338/0.2196, allocations: 272.5 kB / 332.6 MB, free: 13.11 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006154/0.2203, allocations: 318.2 kB / 332.9 MB, free: 12.94 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001172/0.2204, allocations: 13.81 kB / 332.9 MB, free: 12.94 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003996/0.2208, allocations: 163.7 kB / 333 MB, free: 12.87 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000243/0.221, allocations: 184.9 kB / 333.2 MB, free: 12.7 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001868/0.2212, allocations: 141.3 kB / 333.4 MB, free: 12.55 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007171/0.222, allocations: 0.621 MB / 334 MB, free: 11.93 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.222, allocations: 0 / 334 MB, free: 11.93 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.222, allocations: 0 / 334 MB, free: 11.93 MB / 270.1 MB Notification: Performance of Transformations before backend: time 2.172e-05/0.222, allocations: 0 / 334 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.001718/0.2237, allocations: 1.09 MB / 335.1 MB, free: 10.74 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.5e-05/0.2238, allocations: 8.031 kB / 335.1 MB, free: 10.73 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001547/0.2239, allocations: 79.06 kB / 335.2 MB, free: 10.66 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008024/0.2248, allocations: 0.5501 MB / 335.7 MB, free: 10.06 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.423e-05/0.2248, allocations: 19.97 kB / 335.7 MB, free: 10.04 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.207e-05/0.2248, allocations: 32 kB / 335.8 MB, free: 10.01 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005677/0.2254, allocations: 346.7 kB / 336.1 MB, free: 9.629 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.466e-05/0.2254, allocations: 7.984 kB / 336.1 MB, free: 9.621 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.704e-05/0.2255, allocations: 15.98 kB / 336.1 MB, free: 9.605 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.325e-05/0.2255, allocations: 4 kB / 336.1 MB, free: 9.602 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000359/0.2259, allocations: 175.8 kB / 336.3 MB, free: 9.43 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001597/0.2275, allocations: 1.341 MB / 337.6 MB, free: 8.016 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006449/0.2282, allocations: 350.8 kB / 338 MB, free: 7.637 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002924/0.2285, allocations: 179.4 kB / 338.2 MB, free: 7.449 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.028e-05/0.2285, allocations: 4 kB / 338.2 MB, free: 7.445 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006465/0.2292, allocations: 467.2 kB / 338.6 MB, free: 6.934 MB / 270.1 MB Notification: Performance of pre-optimization done (n=42): time 2.375e-06/0.2292, allocations: 0 / 338.6 MB, free: 6.934 MB / 270.1 MB Notification: Performance of matching and sorting (n=42): time 0.00131/0.2305, allocations: 0.7271 MB / 339.3 MB, free: 6.184 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000229/0.2307, allocations: 460.9 kB / 339.8 MB, free: 5.629 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001207/0.2319, allocations: 0.9262 MB / 340.7 MB, free: 4.695 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.925e-05/0.232, allocations: 49.64 kB / 340.8 MB, free: 4.641 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002991/0.2323, allocations: 312.7 kB / 341.1 MB, free: 4.332 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001056/0.2324, allocations: 110.6 kB / 341.2 MB, free: 4.223 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.406e-05/0.2324, allocations: 8 kB / 341.2 MB, free: 4.215 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001112/0.2326, allocations: 329.9 kB / 341.5 MB, free: 3.887 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002861/0.2329, allocations: 148.9 kB / 341.7 MB, free: 3.738 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004233/0.2333, allocations: 354.4 kB / 342 MB, free: 3.316 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004053/0.2337, allocations: 257.5 kB / 342.3 MB, free: 3.047 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.931e-06/0.2337, allocations: 4 kB / 342.3 MB, free: 3.043 MB / 270.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001127/0.2349, allocations: 0.6652 MB / 342.9 MB, free: 2.352 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.015e-05/0.2349, allocations: 97.09 kB / 343 MB, free: 2.238 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.235, allocations: 12.27 kB / 343 MB, free: 2.227 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.646e-05/0.235, allocations: 4 kB / 343 MB, free: 2.223 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002497/0.2352, allocations: 67.84 kB / 343.1 MB, free: 2.156 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.047e-05/0.2353, allocations: 4 kB / 343.1 MB, free: 2.152 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002676/0.2355, allocations: 51.67 kB / 343.2 MB, free: 2.102 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.487e-05/0.2356, allocations: 20 kB / 343.2 MB, free: 2.082 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.0004355/0.236, allocations: 406.4 kB / 343.6 MB, free: 1.66 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.816e-05/0.2361, allocations: 79.19 kB / 343.7 MB, free: 1.582 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000131/0.2363, allocations: 78.22 kB / 343.7 MB, free: 1.496 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.624e-06/0.2363, allocations: 11.98 kB / 343.7 MB, free: 1.484 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/0.2363, allocations: 0 / 343.7 MB, free: 1.484 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.2363, allocations: 0 / 343.7 MB, free: 1.484 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00111/0.2374, allocations: 0.962 MB / 344.7 MB, free: 464 kB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.2374, allocations: 0 / 344.7 MB, free: 464 kB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.488e-05/0.2375, allocations: 28.27 kB / 344.7 MB, free: 436 kB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.2375, allocations: 0 / 344.7 MB, free: 436 kB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.72e-05/0.2376, allocations: 19.98 kB / 344.8 MB, free: 416 kB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.886e-06/0.2376, allocations: 3.938 kB / 344.8 MB, free: 412 kB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.2376, allocations: 4 kB / 344.8 MB, free: 408 kB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001052/0.2386, allocations: 0.7713 MB / 345.5 MB, free: 15.58 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001481/0.2388, allocations: 168.1 kB / 345.7 MB, free: 15.4 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001085/0.2389, allocations: 23.98 kB / 345.7 MB, free: 15.38 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000225/0.2392, allocations: 31.92 kB / 345.7 MB, free: 15.34 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.484e-05/0.2393, allocations: 35.95 kB / 345.8 MB, free: 15.31 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.432e-05/0.2393, allocations: 27.97 kB / 345.8 MB, free: 15.28 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0008137/0.2401, allocations: 0.6708 MB / 346.5 MB, free: 14.61 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2401, allocations: 0 / 346.5 MB, free: 14.61 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005523/0.2407, allocations: 147.8 kB / 346.6 MB, free: 14.47 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.001159/0.2419, allocations: 0.4891 MB / 347.1 MB, free: 13.98 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001018/0.2429, allocations: 0.611 MB / 347.7 MB, free: 13.33 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.2429, allocations: 0 / 347.7 MB, free: 13.33 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005022/0.2434, allocations: 450.8 kB / 348.2 MB, free: 12.86 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007502/0.2442, allocations: 166.8 kB / 348.3 MB, free: 12.69 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001743/0.2459, allocations: 1.263 MB / 349.6 MB, free: 11.39 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005303/0.2465, allocations: 0.9293 MB / 350.5 MB, free: 10.44 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.000295/0.2468, allocations: 112.7 kB / 350.6 MB, free: 10.33 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001234/0.2469, allocations: 55.42 kB / 350.7 MB, free: 10.27 MB / 286.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2469, allocations: 0 / 350.7 MB, free: 10.27 MB / 286.1 MB Notification: Performance of Templates: time 0.01467/0.2616, allocations: 8.512 MB / 359.2 MB, free: 1.746 MB / 286.1 MB make -j1 -f Modelica_3.2.1_Modelica.Blocks.Examples.Interaction1.makefile (rm -f Modelica_3.2.1_Modelica.Blocks.Examples.Interaction1.pipe ; mkfifo Modelica_3.2.1_Modelica.Blocks.Examples.Interaction1.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Blocks.Examples.Interaction1.pipe >> ../files/Modelica_3.2.1_Modelica.Blocks.Examples.Interaction1.sim & ./Modelica_3.2.1_Modelica.Blocks.Examples.Interaction1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Blocks.Examples.Interaction1.pipe 2>&1)