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.009495/0.009495, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.001589/0.001589, allocations: 193.5 kB / 16.67 MB, free: 6.375 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.572/1.572, allocations: 205.1 MB / 222.6 MB, free: 4.492 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.001273/0.001273, allocations: 46.06 kB / 326.5 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.1173, allocations: 46.63 MB / 373.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.004317/0.1217, allocations: 2.506 MB / 375.7 MB, free: 14.79 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003165/0.1248, allocations: 1.703 MB / 377.4 MB, free: 13.07 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003208/0.1252, allocations: 11.94 kB / 377.4 MB, free: 13.06 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001374/0.1266, allocations: 0.5454 MB / 377.9 MB, free: 12.52 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.0009625/0.1276, allocations: 426.5 kB / 378.3 MB, free: 12.1 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001618/0.1292, allocations: 0.6276 MB / 379 MB, free: 11.47 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001186/0.1304, allocations: 0.7832 MB / 379.7 MB, free: 10.68 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002977/0.1307, allocations: 117.9 kB / 379.9 MB, free: 10.56 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007471/0.1314, allocations: 326.8 kB / 380.2 MB, free: 10.24 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000623/0.1321, allocations: 358.7 kB / 380.5 MB, free: 9.891 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001327/0.1322, allocations: 47.98 kB / 380.6 MB, free: 9.844 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005234/0.1328, allocations: 223.8 kB / 380.8 MB, free: 9.625 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000297/0.1331, allocations: 203.3 kB / 381 MB, free: 9.426 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000439/0.1335, allocations: 306.1 kB / 381.3 MB, free: 9.125 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0012/0.1347, allocations: 0.8449 MB / 382.1 MB, free: 8.277 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.1347, allocations: 0 / 382.1 MB, free: 8.277 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.1347, allocations: 4 kB / 382.1 MB, free: 8.273 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.3e-05/0.1348, allocations: 0 / 382.1 MB, free: 8.273 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.002639/0.1374, allocations: 1.207 MB / 383.4 MB, free: 6.973 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.86e-05/0.1375, allocations: 8.031 kB / 383.4 MB, free: 6.965 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002139/0.1377, allocations: 76 kB / 383.4 MB, free: 6.891 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008642/0.1386, allocations: 0.582 MB / 384 MB, free: 6.27 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.947e-05/0.1386, allocations: 20.38 kB / 384 MB, free: 6.25 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.51e-05/0.1387, allocations: 24.12 kB / 384.1 MB, free: 6.227 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006152/0.1393, allocations: 354.7 kB / 384.4 MB, free: 5.836 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.454e-05/0.1393, allocations: 4 kB / 384.4 MB, free: 5.832 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.657e-05/0.1394, allocations: 8 kB / 384.4 MB, free: 5.824 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.723e-05/0.1394, allocations: 8 kB / 384.4 MB, free: 5.816 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004063/0.1398, allocations: 183.8 kB / 384.6 MB, free: 5.637 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002134/0.142, allocations: 1.333 MB / 385.9 MB, free: 4.23 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001015/0.143, allocations: 350.8 kB / 386.3 MB, free: 3.852 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004568/0.1435, allocations: 175.4 kB / 386.5 MB, free: 3.668 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.871e-05/0.1435, allocations: 4 kB / 386.5 MB, free: 3.664 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009088/0.1444, allocations: 459.1 kB / 386.9 MB, free: 3.16 MB / 318.1 MB Notification: Performance of pre-optimization done (n=42): time 2.725e-06/0.1445, allocations: 0 / 386.9 MB, free: 3.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=42): time 0.002115/0.1466, allocations: 0.7401 MB / 387.6 MB, free: 2.395 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003272/0.1469, allocations: 456.9 kB / 388.1 MB, free: 1.844 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001748/0.1487, allocations: 0.9417 MB / 389 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.146e-05/0.1488, allocations: 41.7 kB / 389.1 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004149/0.1492, allocations: 316.6 kB / 389.4 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001544/0.1494, allocations: 110.6 kB / 389.5 MB, free: 436 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002253/0.1496, allocations: 94.11 kB / 389.6 MB, free: 336 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001669/0.1498, allocations: 326 kB / 389.9 MB, free: 4 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004554/0.1503, allocations: 144.9 kB / 390 MB, free: 15.86 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000693/0.151, allocations: 354.4 kB / 390.4 MB, free: 15.44 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001724/0.1527, allocations: 0.7991 MB / 391.2 MB, free: 14.53 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.06e-06/0.1527, allocations: 0 / 391.2 MB, free: 14.53 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001606/0.1544, allocations: 0.6614 MB / 391.8 MB, free: 13.84 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001216/0.1545, allocations: 101 kB / 391.9 MB, free: 13.72 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.576e-05/0.1545, allocations: 7.938 kB / 392 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.62e-05/0.1545, allocations: 4.281 kB / 392 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003712/0.1549, allocations: 67.89 kB / 392 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.088e-05/0.155, allocations: 11.94 kB / 392 MB, free: 13.63 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004457/0.1554, allocations: 51.86 kB / 392.1 MB, free: 13.58 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.75e-05/0.1555, allocations: 20.12 kB / 392.1 MB, free: 13.56 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.0008179/0.1563, allocations: 406.6 kB / 392.5 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001886/0.1565, allocations: 90.98 kB / 392.6 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001923/0.1567, allocations: 70.22 kB / 392.7 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.548e-06/0.1567, allocations: 4 kB / 392.7 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.007e-05/0.1568, allocations: 0 / 392.7 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.988e-06/0.1568, allocations: 3.984 kB / 392.7 MB, free: 12.97 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001896/0.1587, allocations: 0.962 MB / 393.6 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.899e-06/0.1587, allocations: 7.938 kB / 393.6 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001516/0.1589, allocations: 19.94 kB / 393.7 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.215e-06/0.1589, allocations: 4 kB / 393.7 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.639e-05/0.159, allocations: 24.06 kB / 393.7 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.875e-06/0.159, allocations: 8 kB / 393.7 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.159, allocations: 0 / 393.7 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001617/0.1606, allocations: 0.7713 MB / 394.5 MB, free: 11.06 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000201/0.1609, allocations: 152.2 kB / 394.6 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001509/0.161, allocations: 27.92 kB / 394.6 MB, free: 10.87 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003873/0.1614, allocations: 23.98 kB / 394.7 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001518/0.1616, allocations: 31.97 kB / 394.7 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.584e-05/0.1617, allocations: 23.98 kB / 394.7 MB, free: 10.79 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001212/0.1629, allocations: 0.6747 MB / 395.4 MB, free: 10.11 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.1629, allocations: 0 / 395.4 MB, free: 10.11 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009517/0.1639, allocations: 151.8 kB / 395.5 MB, free: 9.965 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.001703/0.1656, allocations: 499.4 kB / 396 MB, free: 9.461 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001666/0.1673, allocations: 0.6228 MB / 396.7 MB, free: 8.801 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.1673, allocations: 0 / 396.7 MB, free: 8.801 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009462/0.1682, allocations: 434 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.001465/0.1697, allocations: 180.2 kB / 397.3 MB, free: 8.164 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003079/0.1728, allocations: 1.178 MB / 398.4 MB, free: 6.945 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009075/0.1737, allocations: 0.9291 MB / 399.4 MB, free: 5.988 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005034/0.1743, allocations: 104.8 kB / 399.5 MB, free: 5.883 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002466/0.1745, allocations: 59.42 kB / 399.5 MB, free: 5.824 MB / 334.1 MB Notification: Performance of SimCode: time 6.61e-07/0.1746, allocations: 0 / 399.5 MB, free: 5.824 MB / 334.1 MB Notification: Performance of Templates: time 0.03222/0.2068, allocations: 9.398 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)