Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Interaction1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.Interaction1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Interaction1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Interaction1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Interaction1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001401/0.001401, allocations: 106 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00162/0.00162, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.388/1.388, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001166/0.001166, allocations: 61.55 kB / 307 MB, free: 0.5195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0823/0.08349, allocations: 50.52 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.004029/0.08755, allocations: 2.578 MB / 360.1 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003177/0.09076, allocations: 1.933 MB / 362.1 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003319/0.09111, allocations: 11.94 kB / 362.1 MB, free: 9.453 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001147/0.09227, allocations: 0.5297 MB / 362.6 MB, free: 8.922 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009252/0.0932, allocations: 486.3 kB / 363.1 MB, free: 8.445 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001311/0.09453, allocations: 0.5491 MB / 363.6 MB, free: 7.902 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009023/0.09544, allocations: 0.83 MB / 364.5 MB, free: 7.07 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002139/0.09566, allocations: 117.9 kB / 364.6 MB, free: 6.957 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004321/0.0961, allocations: 330.8 kB / 364.9 MB, free: 6.633 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004485/0.09656, allocations: 370.5 kB / 365.3 MB, free: 6.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001066/0.09668, allocations: 43.98 kB / 365.3 MB, free: 6.227 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003704/0.09705, allocations: 215.8 kB / 365.5 MB, free: 6.016 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002247/0.09729, allocations: 207.3 kB / 365.7 MB, free: 5.812 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003191/0.09762, allocations: 318 kB / 366 MB, free: 5.5 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009198/0.09854, allocations: 0.8646 MB / 366.9 MB, free: 4.633 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.09856, allocations: 0 / 366.9 MB, free: 4.633 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.09857, allocations: 0 / 366.9 MB, free: 4.633 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.775e-05/0.09859, allocations: 0 / 366.9 MB, free: 4.633 MB / 302.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.001753/0.1003, allocations: 1.226 MB / 368.1 MB, free: 3.309 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.598e-05/0.1004, allocations: 12.02 kB / 368.1 MB, free: 3.297 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.805e-05/0.1005, allocations: 66.67 kB / 368.2 MB, free: 3.223 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001511/0.1006, allocations: 79.91 kB / 368.3 MB, free: 3.145 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007935/0.1014, allocations: 0.5936 MB / 368.9 MB, free: 2.508 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.454e-05/0.1015, allocations: 20.38 kB / 368.9 MB, free: 2.488 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.418e-05/0.1015, allocations: 23.94 kB / 368.9 MB, free: 2.465 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006025/0.1021, allocations: 358.8 kB / 369.3 MB, free: 2.066 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.1022, allocations: 3.938 kB / 369.3 MB, free: 2.062 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.156e-05/0.1022, allocations: 8 kB / 369.3 MB, free: 2.055 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.97e-05/0.1022, allocations: 4 kB / 369.3 MB, free: 2.051 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003762/0.1026, allocations: 175.8 kB / 369.5 MB, free: 1.879 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001459/0.1041, allocations: 1.356 MB / 370.8 MB, free: 460 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006762/0.1048, allocations: 362.7 kB / 371.2 MB, free: 60 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1492/0.254, allocations: 170.5 kB / 371.3 MB, free: 20.04 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.525e-05/0.2541, allocations: 4.812 kB / 371.3 MB, free: 20.04 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009461/0.2551, allocations: 460 kB / 371.8 MB, free: 19.8 MB / 302.1 MB Notification: Performance of pre-optimization done (n=42): time 5.36e-06/0.2551, allocations: 0 / 371.8 MB, free: 19.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.002124/0.2572, allocations: 0.7497 MB / 372.5 MB, free: 19.68 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001349/0.2574, allocations: 459.6 kB / 373 MB, free: 19.14 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001946/0.2593, allocations: 0.9653 MB / 374 MB, free: 19.02 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.709e-05/0.2594, allocations: 45.72 kB / 374 MB, free: 18.98 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003246/0.2598, allocations: 317.4 kB / 374.3 MB, free: 18.76 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001364/0.2599, allocations: 107.6 kB / 374.4 MB, free: 18.71 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002108/0.2601, allocations: 96.39 kB / 374.5 MB, free: 18.67 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.003e-05/0.2602, allocations: 324.6 kB / 374.8 MB, free: 18.36 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004737/0.2607, allocations: 156 kB / 375 MB, free: 18.3 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005471/0.2613, allocations: 351.3 kB / 375.3 MB, free: 18.04 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009118/0.2622, allocations: 0.5784 MB / 375.9 MB, free: 17.6 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.746e-06/0.2622, allocations: 5.469 kB / 375.9 MB, free: 17.6 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001506/0.2637, allocations: 0.6732 MB / 376.6 MB, free: 17.27 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.13e-05/0.2638, allocations: 97.78 kB / 376.7 MB, free: 17.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.973e-05/0.2638, allocations: 2.75 kB / 376.7 MB, free: 17.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.005e-05/0.2639, allocations: 6.875 kB / 376.7 MB, free: 17.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000346/0.2642, allocations: 72.31 kB / 376.8 MB, free: 17.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.995e-05/0.2643, allocations: 6.531 kB / 376.8 MB, free: 17.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004574/0.2647, allocations: 47.41 kB / 376.8 MB, free: 17.15 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.75e-05/0.2648, allocations: 23.36 kB / 376.8 MB, free: 17.14 MB / 302.1 MB 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,stop.pre_reset[1],stop.table.combiTimeTable.nextTimeEventScaled,$PRE.stop.table.combiTimeTable.nextTimeEventScaled,stop.table.combiTimeTable.nextTimeEvent,stop.table.y,$PRE.stop.table.y,$PRE.stop.reset[1],$whenCondition5,$whenCondition4,start.pre_reset[1],start.table.combiTimeTable.nextTimeEventScaled,$PRE.start.table.combiTimeTable.nextTimeEventScaled,start.table.combiTimeTable.nextTimeEvent,start.table.y,$PRE.start.table.y,$PRE.start.reset[1],$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.0005009/0.2653, allocations: 418.1 kB / 377.2 MB, free: 16.86 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001557/0.2655, allocations: 86.23 kB / 377.3 MB, free: 16.82 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001726/0.2657, allocations: 79.27 kB / 377.4 MB, free: 16.79 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.578e-06/0.2657, allocations: 5.484 kB / 377.4 MB, free: 16.79 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.264e-05/0.2657, allocations: 1.375 kB / 377.4 MB, free: 16.79 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.2657, allocations: 2.641 kB / 377.4 MB, free: 16.79 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001574/0.2673, allocations: 0.974 MB / 378.4 MB, free: 16.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.2673, allocations: 0 / 378.4 MB, free: 16.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001329/0.2675, allocations: 24.95 kB / 378.4 MB, free: 16.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.879e-06/0.2675, allocations: 10.83 kB / 378.4 MB, free: 16.2 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.512e-05/0.2675, allocations: 15 kB / 378.4 MB, free: 16.2 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/0.2675, allocations: 1.375 kB / 378.4 MB, free: 16.2 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.2676, allocations: 1.406 kB / 378.4 MB, free: 16.2 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001342/0.2689, allocations: 0.7847 MB / 379.2 MB, free: 15.76 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001503/0.2691, allocations: 162.6 kB / 379.4 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001556/0.2692, allocations: 23.22 kB / 379.4 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003445/0.2696, allocations: 25.02 kB / 379.4 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001218/0.2697, allocations: 37.16 kB / 379.5 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.606e-05/0.2698, allocations: 27.34 kB / 379.5 MB, free: 15.59 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001153/0.271, allocations: 0.7008 MB / 380.2 MB, free: 15.3 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.271, allocations: 0 / 380.2 MB, free: 15.3 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009128/0.2719, allocations: 145.6 kB / 380.3 MB, free: 15.29 MB / 302.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.00265/0.2745, allocations: 1.724 MB / 382.1 MB, free: 14.22 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009793/0.2755, allocations: 0.6236 MB / 382.7 MB, free: 13.88 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.2756, allocations: 0 / 382.7 MB, free: 13.88 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004552/0.276, allocations: 438.1 kB / 383.1 MB, free: 13.59 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008826/0.2769, allocations: 179.5 kB / 383.3 MB, free: 13.52 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009477/0.2864, allocations: 6.618 MB / 389.9 MB, free: 9.895 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005828/0.287, allocations: 0.9369 MB / 390.8 MB, free: 9.168 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005619/0.2876, allocations: 108.1 kB / 390.9 MB, free: 9.145 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004012/0.288, allocations: 242.6 kB / 391.2 MB, free: 8.973 MB / 302.1 MB Notification: Performance of SimCode: time 2.695e-06/0.288, allocations: 1.375 kB / 391.2 MB, free: 8.973 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0426/0.3306, allocations: 15.9 MB / 407.1 MB, free: 12.55 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.421/8.752, allocations: 22.77 kB / 407.1 MB, free: 12.53 MB / 318.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.Interaction1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Interaction1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Interaction1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Interaction1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.Interaction1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_Interaction1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_Interaction1.fmu > Modelica_trunk_Modelica.Blocks.Examples.Interaction1.pipe 2>&1)