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.01145/0.01145, allocations: 99.86 kB / 15.73 MB, free: 6.055 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.002427/0.002427, allocations: 192.1 kB / 16.67 MB, free: 5.969 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.641/1.641, allocations: 205.1 MB / 222.5 MB, free: 12.22 MB / 190.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.00126/0.001261, allocations: 47.94 kB / 326.5 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1358/0.1371, allocations: 46.62 MB / 373.2 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.005426/0.1426, allocations: 2.505 MB / 375.7 MB, free: 2.043 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003293/0.1459, allocations: 1.707 MB / 377.4 MB, free: 332 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002169/0.1461, allocations: 11.94 kB / 377.4 MB, free: 320 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.3107/0.4569, allocations: 0.5232 MB / 377.9 MB, free: 9.844 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.001581/0.4585, allocations: 433.8 kB / 378.3 MB, free: 9.84 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002172/0.4607, allocations: 0.6172 MB / 378.9 MB, free: 9.828 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001532/0.4622, allocations: 0.7976 MB / 379.7 MB, free: 9.824 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002864/0.4625, allocations: 103.7 kB / 379.8 MB, free: 9.805 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006333/0.4631, allocations: 327.8 kB / 380.2 MB, free: 9.762 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006603/0.4638, allocations: 359.5 kB / 380.5 MB, free: 9.703 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00011/0.4639, allocations: 44.16 kB / 380.6 MB, free: 9.703 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000683/0.4646, allocations: 227.8 kB / 380.8 MB, free: 9.703 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000376/0.465, allocations: 204.3 kB / 381 MB, free: 9.676 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003665/0.4654, allocations: 301.1 kB / 381.3 MB, free: 9.57 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001463/0.4669, allocations: 0.8576 MB / 382.1 MB, free: 9.426 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.4669, allocations: 0.5 kB / 382.1 MB, free: 9.426 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.206e-06/0.4669, allocations: 0.625 kB / 382.1 MB, free: 9.426 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.778e-05/0.4669, allocations: 1.438 kB / 382.1 MB, free: 9.426 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.002052/0.469, allocations: 1.228 MB / 383.4 MB, free: 8.508 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.962e-05/0.469, allocations: 9.344 kB / 383.4 MB, free: 8.508 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001571/0.4692, allocations: 83.38 kB / 383.5 MB, free: 8.465 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009649/0.4702, allocations: 0.587 MB / 384 MB, free: 8.117 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.179e-05/0.4702, allocations: 23.8 kB / 384.1 MB, free: 8.105 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.342e-05/0.4703, allocations: 30.06 kB / 384.1 MB, free: 8.102 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007259/0.471, allocations: 355 kB / 384.4 MB, free: 7.895 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.772e-05/0.4711, allocations: 4.656 kB / 384.4 MB, free: 7.895 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.087e-05/0.4711, allocations: 14.31 kB / 384.5 MB, free: 7.887 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.234e-05/0.4711, allocations: 7.219 kB / 384.5 MB, free: 7.887 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005169/0.4717, allocations: 175.5 kB / 384.6 MB, free: 7.84 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002007/0.4737, allocations: 1.332 MB / 386 MB, free: 6.844 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008308/0.4745, allocations: 357.9 kB / 386.3 MB, free: 6.656 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003479/0.4749, allocations: 173.8 kB / 386.5 MB, free: 6.574 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.884e-05/0.475, allocations: 16.98 kB / 386.5 MB, free: 6.566 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007419/0.4757, allocations: 461 kB / 387 MB, free: 6.258 MB / 318.1 MB Notification: Performance of pre-optimization done (n=42): time 2.194e-06/0.4757, allocations: 0 / 387 MB, free: 6.258 MB / 318.1 MB Notification: Performance of matching and sorting (n=42): time 0.001913/0.4776, allocations: 0.7448 MB / 387.7 MB, free: 5.934 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002269/0.4779, allocations: 461.5 kB / 388.2 MB, free: 5.395 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001591/0.4795, allocations: 0.9306 MB / 389.1 MB, free: 5.039 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.111e-05/0.4796, allocations: 48.95 kB / 389.1 MB, free: 4.996 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002813/0.4799, allocations: 304.9 kB / 389.4 MB, free: 4.754 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001165/0.48, allocations: 112.9 kB / 389.5 MB, free: 4.68 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002038/0.4802, allocations: 95.81 kB / 389.6 MB, free: 4.633 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001144/0.4803, allocations: 324.9 kB / 389.9 MB, free: 4.32 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000375/0.4807, allocations: 154.9 kB / 390.1 MB, free: 4.27 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005657/0.4813, allocations: 354.8 kB / 390.4 MB, free: 4 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001432/0.4827, allocations: 0.7918 MB / 391.2 MB, free: 3.387 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/0.4827, allocations: 1.469 kB / 391.2 MB, free: 3.387 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001234/0.484, allocations: 0.6703 MB / 391.9 MB, free: 3.059 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.493e-05/0.4841, allocations: 97.67 kB / 392 MB, free: 2.961 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.568e-05/0.4841, allocations: 16.19 kB / 392 MB, free: 2.949 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.47e-05/0.4841, allocations: 5.938 kB / 392 MB, free: 2.949 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002738/0.4844, allocations: 66.81 kB / 392.1 MB, free: 2.938 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.889e-05/0.4844, allocations: 8.266 kB / 392.1 MB, free: 2.938 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003211/0.4847, allocations: 48.67 kB / 392.1 MB, free: 2.914 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.675e-05/0.4848, allocations: 21.48 kB / 392.2 MB, free: 2.91 MB / 318.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.0005562/0.4854, allocations: 403.5 kB / 392.6 MB, free: 2.617 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001354/0.4855, allocations: 84.34 kB / 392.6 MB, free: 2.574 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001496/0.4857, allocations: 81.08 kB / 392.7 MB, free: 2.535 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.245e-06/0.4857, allocations: 5.344 kB / 392.7 MB, free: 2.535 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.291e-05/0.4857, allocations: 1.156 kB / 392.7 MB, free: 2.535 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/0.4857, allocations: 2.953 kB / 392.7 MB, free: 2.535 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001512/0.4872, allocations: 0.9579 MB / 393.7 MB, free: 1.961 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.4872, allocations: 5.094 kB / 393.7 MB, free: 1.957 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001022/0.4874, allocations: 28.88 kB / 393.7 MB, free: 1.949 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.21e-06/0.4874, allocations: 2.062 kB / 393.7 MB, free: 1.949 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.55e-05/0.4874, allocations: 17.17 kB / 393.7 MB, free: 1.945 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.222e-06/0.4874, allocations: 6.812 kB / 393.7 MB, free: 1.941 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.4874, allocations: 1.984 kB / 393.8 MB, free: 1.941 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001255/0.4887, allocations: 0.7714 MB / 394.5 MB, free: 1.508 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001813/0.4889, allocations: 155.1 kB / 394.7 MB, free: 1.363 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001261/0.489, allocations: 23.11 kB / 394.7 MB, free: 1.355 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002495/0.4893, allocations: 32 kB / 394.7 MB, free: 1.344 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001586/0.4894, allocations: 41.09 kB / 394.8 MB, free: 1.328 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.721e-05/0.4895, allocations: 27.19 kB / 394.8 MB, free: 1.32 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001069/0.4906, allocations: 0.6662 MB / 395.5 MB, free: 1.059 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4906, allocations: 0 / 395.5 MB, free: 1.059 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008309/0.4914, allocations: 157.9 kB / 395.6 MB, free: 1.031 MB / 318.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.001341/0.4928, allocations: 0.4921 MB / 396.1 MB, free: 0.668 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001218/0.494, allocations: 0.6045 MB / 396.7 MB, free: 340 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.69e-06/0.494, allocations: 0 / 396.7 MB, free: 340 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006374/0.4947, allocations: 440.4 kB / 397.1 MB, free: 44 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001077/0.4958, allocations: 193.4 kB / 397.3 MB, free: 15.96 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002784/0.4986, allocations: 1.18 MB / 398.5 MB, free: 15.36 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008792/0.4995, allocations: 0.9322 MB / 399.4 MB, free: 14.62 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0004195/0.4999, allocations: 106.2 kB / 399.5 MB, free: 14.61 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001724/0.5001, allocations: 57.47 kB / 399.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of SimCode: time 7.22e-07/0.5001, allocations: 0 / 399.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of Templates: time 0.02477/0.5248, allocations: 9.388 MB / 409 MB, free: 10.17 MB / 334.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)