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.008463/0.008463, allocations: 99.92 kB / 15.73 MB, free: 6.043 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.001556/0.001556, allocations: 195.9 kB / 16.68 MB, free: 5.961 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.764/1.764, allocations: 205.1 MB / 222.6 MB, free: 4.516 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.001207/0.001207, allocations: 50.67 kB / 326.5 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1168, allocations: 46.62 MB / 373.1 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.004391/0.1212, allocations: 2.51 MB / 375.7 MB, free: 14.79 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003716/0.125, allocations: 1.7 MB / 377.4 MB, free: 13.07 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002968/0.1253, allocations: 7.938 kB / 377.4 MB, free: 13.07 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001362/0.1268, allocations: 0.5532 MB / 377.9 MB, free: 12.51 MB / 318.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.0008783/0.1277, allocations: 414.5 kB / 378.3 MB, free: 12.11 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00178/0.1295, allocations: 0.6353 MB / 379 MB, free: 11.47 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001014/0.1305, allocations: 0.7755 MB / 379.7 MB, free: 10.69 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002763/0.1308, allocations: 113.9 kB / 379.8 MB, free: 10.57 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004235/0.1312, allocations: 338.7 kB / 380.2 MB, free: 10.24 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004376/0.1316, allocations: 350.7 kB / 380.5 MB, free: 9.898 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.358e-05/0.1317, allocations: 40 kB / 380.6 MB, free: 9.859 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004925/0.1322, allocations: 231.7 kB / 380.8 MB, free: 9.633 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002773/0.1325, allocations: 203.3 kB / 381 MB, free: 9.434 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003063/0.1328, allocations: 302.2 kB / 381.3 MB, free: 9.137 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001078/0.1339, allocations: 0.8527 MB / 382.1 MB, free: 8.281 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.1339, allocations: 0 / 382.1 MB, free: 8.281 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.134, allocations: 0 / 382.1 MB, free: 8.281 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.075e-05/0.134, allocations: 0 / 382.1 MB, free: 8.281 MB / 318.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.001874/0.1358, allocations: 1.191 MB / 383.3 MB, free: 6.996 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.796e-05/0.1359, allocations: 8.031 kB / 383.3 MB, free: 6.988 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001533/0.1361, allocations: 91.98 kB / 383.4 MB, free: 6.898 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000879/0.137, allocations: 0.582 MB / 384 MB, free: 6.277 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.073e-05/0.137, allocations: 16.38 kB / 384 MB, free: 6.262 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.243e-05/0.1371, allocations: 28.12 kB / 384 MB, free: 6.234 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006352/0.1377, allocations: 354.8 kB / 384.4 MB, free: 5.844 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.599e-05/0.1377, allocations: 7.938 kB / 384.4 MB, free: 5.836 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.805e-05/0.1378, allocations: 8 kB / 384.4 MB, free: 5.828 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.92e-05/0.1378, allocations: 4 kB / 384.4 MB, free: 5.824 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003805/0.1382, allocations: 179.8 kB / 384.6 MB, free: 5.648 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001694/0.1399, allocations: 1.337 MB / 385.9 MB, free: 4.238 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007308/0.1407, allocations: 354.8 kB / 386.3 MB, free: 3.855 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003232/0.141, allocations: 171.4 kB / 386.4 MB, free: 3.676 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.073e-05/0.141, allocations: 11.98 kB / 386.4 MB, free: 3.664 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007061/0.1418, allocations: 455.1 kB / 386.9 MB, free: 3.164 MB / 318.1 MB Notification: Performance of pre-optimization done (n=42): time 2.574e-06/0.1418, allocations: 4 kB / 386.9 MB, free: 3.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=42): time 0.001423/0.1432, allocations: 0.7397 MB / 387.6 MB, free: 2.395 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002404/0.1435, allocations: 456.9 kB / 388.1 MB, free: 1.844 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001141/0.1446, allocations: 0.934 MB / 389 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.041e-05/0.1447, allocations: 41.7 kB / 389.1 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002519/0.1449, allocations: 304.7 kB / 389.4 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001052/0.145, allocations: 118.6 kB / 389.5 MB, free: 448 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001305/0.1452, allocations: 90.12 kB / 389.6 MB, free: 352 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.1453, allocations: 326 kB / 389.9 MB, free: 20 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003128/0.1457, allocations: 152.9 kB / 390 MB, free: 15.86 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004682/0.1461, allocations: 358.4 kB / 390.4 MB, free: 15.44 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001268/0.1474, allocations: 0.7955 MB / 391.2 MB, free: 14.54 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.1474, allocations: 0 / 391.2 MB, free: 14.54 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001161/0.1486, allocations: 0.6653 MB / 391.8 MB, free: 13.84 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.906e-05/0.1487, allocations: 98.12 kB / 391.9 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.23e-05/0.1487, allocations: 4 kB / 391.9 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.728e-05/0.1488, allocations: 8 kB / 391.9 MB, free: 13.72 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002512/0.149, allocations: 63.84 kB / 392 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.474e-05/0.149, allocations: 11.98 kB / 392 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002945/0.1493, allocations: 55.86 kB / 392.1 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.698e-05/0.1494, allocations: 20 kB / 392.1 MB, free: 13.57 MB / 334.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.0005346/0.15, allocations: 398.8 kB / 392.5 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001268/0.1501, allocations: 87.45 kB / 392.6 MB, free: 13.07 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001479/0.1503, allocations: 78.2 kB / 392.6 MB, free: 12.99 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/0.1503, allocations: 8 kB / 392.7 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.365e-06/0.1503, allocations: 3.938 kB / 392.7 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.653e-06/0.1503, allocations: 7.984 kB / 392.7 MB, free: 12.97 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001303/0.1516, allocations: 0.9542 MB / 393.6 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.766e-06/0.1516, allocations: 3.938 kB / 393.6 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.615e-05/0.1517, allocations: 23.98 kB / 393.6 MB, free: 11.92 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.1517, allocations: 3.938 kB / 393.6 MB, free: 11.92 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.565e-05/0.1518, allocations: 19.92 kB / 393.7 MB, free: 11.9 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.996e-06/0.1518, allocations: 8 kB / 393.7 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.1518, allocations: 0 / 393.7 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00114/0.1529, allocations: 0.7675 MB / 394.4 MB, free: 11.08 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002068/0.1532, allocations: 148.2 kB / 394.6 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001057/0.1533, allocations: 31.94 kB / 394.6 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002415/0.1535, allocations: 27.97 kB / 394.6 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001138/0.1537, allocations: 35.91 kB / 394.7 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.549e-05/0.1537, allocations: 23.98 kB / 394.7 MB, free: 10.8 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001032/0.1547, allocations: 0.6708 MB / 395.4 MB, free: 10.12 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1548, allocations: 0 / 395.4 MB, free: 10.12 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006405/0.1554, allocations: 151.8 kB / 395.5 MB, free: 9.977 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.001287/0.1567, allocations: 0.5033 MB / 396 MB, free: 9.457 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001155/0.1579, allocations: 0.6116 MB / 396.6 MB, free: 8.809 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.1579, allocations: 64 / 396.6 MB, free: 8.809 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005237/0.1584, allocations: 442 kB / 397.1 MB, free: 8.34 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009242/0.1593, allocations: 179.9 kB / 397.2 MB, free: 8.164 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001918/0.1613, allocations: 1.169 MB / 398.4 MB, free: 6.953 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005555/0.1618, allocations: 0.9291 MB / 399.3 MB, free: 5.996 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002751/0.1621, allocations: 100.8 kB / 399.4 MB, free: 5.895 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001348/0.1623, allocations: 55.42 kB / 399.5 MB, free: 5.84 MB / 334.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1623, allocations: 4 kB / 399.5 MB, free: 5.836 MB / 334.1 MB Notification: Performance of Templates: time 0.01819/0.1805, allocations: 9.406 MB / 408.9 MB, free: 12.41 MB / 350.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)