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.00123/0.00123, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001375/0.001375, allocations: 177.3 kB / 15.94 MB, free: 228 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.57/1.57, allocations: 205.4 MB / 222.1 MB, free: 5.672 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.000513/0.0005133, allocations: 18.66 kB / 278.8 MB, free: 12.87 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2843/0.2848, allocations: 47.58 MB / 326.4 MB, free: 1.445 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.00293/0.2878, allocations: 2.079 MB / 328.5 MB, free: 15.82 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003434/0.2912, allocations: 1.524 MB / 330 MB, free: 14.64 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002853/0.2916, allocations: 11.5 kB / 330 MB, free: 14.63 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001186/0.2927, allocations: 469.1 kB / 330.5 MB, free: 14.39 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006876/0.2934, allocations: 351.2 kB / 330.8 MB, free: 14.18 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001562/0.295, allocations: 0.5246 MB / 331.4 MB, free: 13.84 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007488/0.2958, allocations: 466.1 kB / 331.8 MB, free: 13.54 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000199/0.296, allocations: 94.73 kB / 331.9 MB, free: 13.49 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000359/0.2964, allocations: 270.7 kB / 332.2 MB, free: 13.34 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000396/0.2968, allocations: 283.4 kB / 332.5 MB, free: 13.19 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.107e-05/0.2968, allocations: 13.53 kB / 332.5 MB, free: 13.19 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003227/0.2971, allocations: 148 kB / 332.6 MB, free: 13.13 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002122/0.2974, allocations: 176.5 kB / 332.8 MB, free: 13.03 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001389/0.2975, allocations: 137.3 kB / 332.9 MB, free: 12.93 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006595/0.2982, allocations: 0.6287 MB / 333.6 MB, free: 12.41 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.905e-06/0.2982, allocations: 3.938 kB / 333.6 MB, free: 12.4 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.2982, allocations: 0 / 333.6 MB, free: 12.4 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.704e-06/0.2982, allocations: 0 / 333.6 MB, free: 12.4 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.001543/0.2998, allocations: 1.083 MB / 334.6 MB, free: 11.22 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/0.2998, allocations: 8.031 kB / 334.6 MB, free: 11.21 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000123/0.2999, allocations: 79.06 kB / 334.7 MB, free: 11.13 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007769/0.3007, allocations: 0.5616 MB / 335.3 MB, free: 10.53 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.098e-05/0.3008, allocations: 20 kB / 335.3 MB, free: 10.51 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.907e-05/0.3008, allocations: 20 kB / 335.3 MB, free: 10.49 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000542/0.3014, allocations: 346.8 kB / 335.7 MB, free: 10.11 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.3014, allocations: 0 / 335.7 MB, free: 10.11 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.409e-05/0.3014, allocations: 12 kB / 335.7 MB, free: 10.09 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.493e-05/0.3015, allocations: 11.94 kB / 335.7 MB, free: 10.08 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003873/0.3019, allocations: 175.8 kB / 335.9 MB, free: 9.91 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001572/0.3034, allocations: 1.341 MB / 337.2 MB, free: 8.496 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006478/0.3041, allocations: 362.8 kB / 337.6 MB, free: 8.105 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.321e-05/0.3041, allocations: 7.984 kB / 337.6 MB, free: 8.098 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005785/0.3047, allocations: 459.4 kB / 338 MB, free: 7.594 MB / 270.1 MB Notification: Performance of pre-optimization done (n=42): time 1.964e-06/0.3047, allocations: 0 / 338 MB, free: 7.594 MB / 270.1 MB Notification: Performance of matching and sorting (n=42): time 0.001368/0.3061, allocations: 0.9764 MB / 339 MB, free: 6.539 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002109/0.3063, allocations: 456.9 kB / 339.4 MB, free: 5.988 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00104/0.3074, allocations: 0.9262 MB / 340.4 MB, free: 5.055 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.154e-05/0.3074, allocations: 45.7 kB / 340.4 MB, free: 5.004 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002537/0.3077, allocations: 312.7 kB / 340.7 MB, free: 4.695 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.835e-05/0.3078, allocations: 102.7 kB / 340.8 MB, free: 4.594 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.234e-05/0.3078, allocations: 12 kB / 340.8 MB, free: 4.582 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.308, allocations: 322 kB / 341.1 MB, free: 4.262 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002752/0.3082, allocations: 148.9 kB / 341.3 MB, free: 4.113 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003978/0.3086, allocations: 350.4 kB / 341.6 MB, free: 3.695 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003563/0.309, allocations: 269 kB / 341.9 MB, free: 3.414 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.155e-06/0.309, allocations: 0 / 341.9 MB, free: 3.414 MB / 270.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0009616/0.31, allocations: 0.6613 MB / 342.5 MB, free: 2.727 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.634e-05/0.3101, allocations: 101.4 kB / 342.6 MB, free: 2.609 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.3101, allocations: 4 kB / 342.6 MB, free: 2.605 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.835e-05/0.3101, allocations: 8 kB / 342.7 MB, free: 2.598 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002444/0.3104, allocations: 59.84 kB / 342.7 MB, free: 2.539 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.315e-05/0.3104, allocations: 11.98 kB / 342.7 MB, free: 2.527 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002713/0.3107, allocations: 52.3 kB / 342.8 MB, free: 2.477 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.554e-05/0.3107, allocations: 20 kB / 342.8 MB, free: 2.457 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.000434/0.3112, allocations: 410.4 kB / 343.2 MB, free: 2.031 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.629e-05/0.3113, allocations: 83.05 kB / 343.3 MB, free: 1.949 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001293/0.3114, allocations: 74.41 kB / 343.4 MB, free: 1.867 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.823e-06/0.3114, allocations: 7.984 kB / 343.4 MB, free: 1.859 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.3114, allocations: 0 / 343.4 MB, free: 1.859 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.765e-06/0.3114, allocations: 7.984 kB / 343.4 MB, free: 1.852 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001138/0.3126, allocations: 0.962 MB / 344.3 MB, free: 0.8203 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.3126, allocations: 3.984 kB / 344.3 MB, free: 0.8164 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.958e-05/0.3127, allocations: 19.94 kB / 344.4 MB, free: 0.7969 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.111e-06/0.3127, allocations: 4 kB / 344.4 MB, free: 0.793 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.44e-05/0.3127, allocations: 23.92 kB / 344.4 MB, free: 0.7695 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.326e-05/0.3128, allocations: 4 kB / 344.4 MB, free: 0.7656 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.3128, allocations: 0 / 344.4 MB, free: 0.7656 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001061/0.3138, allocations: 0.8076 MB / 345.2 MB, free: 15.89 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002013/0.314, allocations: 168.1 kB / 345.4 MB, free: 15.71 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001106/0.3142, allocations: 23.98 kB / 345.4 MB, free: 15.69 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002446/0.3144, allocations: 35.88 kB / 345.4 MB, free: 15.65 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001467/0.3146, allocations: 35.95 kB / 345.4 MB, free: 15.62 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.669e-05/0.3146, allocations: 23.98 kB / 345.5 MB, free: 15.59 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0008635/0.3155, allocations: 0.6632 MB / 346.1 MB, free: 14.93 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3155, allocations: 0 / 346.1 MB, free: 14.93 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006448/0.3162, allocations: 159.9 kB / 346.3 MB, free: 14.78 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.00111/0.3173, allocations: 0.4888 MB / 346.8 MB, free: 14.29 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0009346/0.3182, allocations: 0.6075 MB / 347.4 MB, free: 13.64 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.3182, allocations: 0 / 347.4 MB, free: 13.64 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004984/0.3187, allocations: 442 kB / 347.8 MB, free: 13.18 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006693/0.3194, allocations: 152 kB / 348 MB, free: 13.03 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001709/0.3211, allocations: 1.263 MB / 349.2 MB, free: 11.73 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000511/0.3217, allocations: 0.9526 MB / 350.2 MB, free: 10.75 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002747/0.322, allocations: 108.7 kB / 350.3 MB, free: 10.64 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001144/0.3221, allocations: 59.42 kB / 350.3 MB, free: 10.59 MB / 286.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3221, allocations: 0 / 350.3 MB, free: 10.59 MB / 286.1 MB Notification: Performance of Templates: time 0.02303/0.3451, allocations: 8.5 MB / 358.8 MB, free: 2.07 MB / 286.1 MB make -j1 -f Modelica_3.2.1_Modelica.Blocks.Examples.Interaction1.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: