Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4_1_0-beta_om_Modelica_Blocks_Examples_Interaction1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Interaction1,fileNamePrefix="Modelica_4_1_0-beta_om_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.001854/0.001854, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001951/0.001951, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.45/1.45, allocations: 227.7 MB / 247.2 MB, free: 10.16 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001889/0.001889, allocations: 63.89 kB / 358.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2433/0.2452, allocations: 50.55 MB / 409.1 MB, free: 1.359 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.004001/0.2493, allocations: 2.575 MB / 411.6 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003404/0.2527, allocations: 1.937 MB / 413.6 MB, free: 12.83 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00019/0.2529, allocations: 11.94 kB / 413.6 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001161/0.2541, allocations: 0.5336 MB / 414.1 MB, free: 12.28 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008902/0.255, allocations: 493.8 kB / 414.6 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001329/0.2563, allocations: 0.54 MB / 415.1 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009117/0.2572, allocations: 0.8339 MB / 416 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002166/0.2575, allocations: 110 kB / 416.1 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003887/0.2579, allocations: 342.7 kB / 416.4 MB, free: 9.98 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000432/0.2583, allocations: 362.6 kB / 416.8 MB, free: 9.625 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.852e-05/0.2584, allocations: 48 kB / 416.8 MB, free: 9.578 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004042/0.2588, allocations: 227.7 kB / 417 MB, free: 9.355 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002328/0.259, allocations: 207.4 kB / 417.2 MB, free: 9.152 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000316/0.2594, allocations: 310 kB / 417.5 MB, free: 8.848 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001005/0.2604, allocations: 0.8862 MB / 418.4 MB, free: 7.961 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.2604, allocations: 0 / 418.4 MB, free: 7.961 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.2604, allocations: 0 / 418.4 MB, free: 7.961 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.033e-05/0.2604, allocations: 0 / 418.4 MB, free: 7.961 MB / 334.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.001748/0.2622, allocations: 1.261 MB / 419.7 MB, free: 6.605 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.618e-05/0.2622, allocations: 8.031 kB / 419.7 MB, free: 6.598 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.882e-05/0.2623, allocations: 58.72 kB / 419.8 MB, free: 6.531 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001348/0.2624, allocations: 84.42 kB / 419.8 MB, free: 6.449 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008487/0.2633, allocations: 0.6098 MB / 420.5 MB, free: 5.801 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.495e-05/0.2633, allocations: 24.31 kB / 420.5 MB, free: 5.777 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.32e-05/0.2634, allocations: 23.94 kB / 420.5 MB, free: 5.754 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006143/0.264, allocations: 354.8 kB / 420.8 MB, free: 5.363 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.264, allocations: 0 / 420.8 MB, free: 5.363 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.468e-05/0.2641, allocations: 15.98 kB / 420.9 MB, free: 5.348 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.156e-05/0.2641, allocations: 7.938 kB / 420.9 MB, free: 5.34 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003792/0.2645, allocations: 179.8 kB / 421 MB, free: 5.164 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001557/0.2661, allocations: 1.337 MB / 422.4 MB, free: 3.754 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000722/0.2668, allocations: 362.6 kB / 422.7 MB, free: 3.363 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003203/0.2671, allocations: 179.4 kB / 422.9 MB, free: 3.176 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.23e-05/0.2672, allocations: 8.062 kB / 422.9 MB, free: 3.168 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006187/0.2678, allocations: 459.2 kB / 423.4 MB, free: 2.664 MB / 334.1 MB Notification: Performance of pre-optimization done (n=42): time 1.724e-06/0.2678, allocations: 0 / 423.4 MB, free: 2.664 MB / 334.1 MB Notification: Performance of matching and sorting (n=42): time 0.001373/0.2692, allocations: 0.7489 MB / 424.1 MB, free: 1.891 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002547/0.2694, allocations: 464.8 kB / 424.6 MB, free: 1.332 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001252/0.2707, allocations: 0.981 MB / 425.6 MB, free: 344 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.2e-05/0.2708, allocations: 41.7 kB / 425.6 MB, free: 296 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003276/0.2711, allocations: 309 kB / 425.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001016/0.2712, allocations: 115.1 kB / 426 MB, free: 15.87 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001585/0.2714, allocations: 102.1 kB / 426.1 MB, free: 15.76 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.2715, allocations: 322 kB / 426.4 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003131/0.2719, allocations: 152.9 kB / 426.6 MB, free: 15.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004678/0.2723, allocations: 358.4 kB / 426.9 MB, free: 14.87 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007906/0.2731, allocations: 0.5777 MB / 427.5 MB, free: 14.2 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.2731, allocations: 4 kB / 427.5 MB, free: 14.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001143/0.2743, allocations: 0.6742 MB / 428.2 MB, free: 13.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.651e-05/0.2744, allocations: 101.1 kB / 428.3 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.152e-05/0.2744, allocations: 4 kB / 428.3 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.198e-05/0.2744, allocations: 4 kB / 428.3 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002601/0.2747, allocations: 68.19 kB / 428.3 MB, free: 13.31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.651e-05/0.2747, allocations: 12 kB / 428.4 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002796/0.275, allocations: 51.72 kB / 428.4 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.993e-05/0.2751, allocations: 20 kB / 428.4 MB, free: 13.23 MB / 350.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.000445/0.2755, allocations: 394.7 kB / 428.8 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001323/0.2757, allocations: 87.42 kB / 428.9 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001319/0.2758, allocations: 86.58 kB / 429 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.957e-06/0.2758, allocations: 4 kB / 429 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.2758, allocations: 3.938 kB / 429 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.2759, allocations: 0 / 429 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0013/0.2772, allocations: 0.9771 MB / 430 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.049e-06/0.2772, allocations: 3.984 kB / 430 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.094e-05/0.2773, allocations: 19.94 kB / 430 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.564e-06/0.2773, allocations: 7.938 kB / 430 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.844e-05/0.2773, allocations: 19.98 kB / 430 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.889e-06/0.2773, allocations: 4 kB / 430 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.2774, allocations: 4 kB / 430 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001149/0.2785, allocations: 0.791 MB / 430.8 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000145/0.2787, allocations: 156.7 kB / 431 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001054/0.2788, allocations: 23.94 kB / 431 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002396/0.279, allocations: 31.95 kB / 431 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001059/0.2791, allocations: 27.97 kB / 431.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.296e-05/0.2792, allocations: 23.98 kB / 431.1 MB, free: 10.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008842/0.2801, allocations: 0.7021 MB / 431.8 MB, free: 9.723 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2801, allocations: 0 / 431.8 MB, free: 9.723 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005458/0.2806, allocations: 167.8 kB / 431.9 MB, free: 9.559 MB / 350.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.002932/0.2836, allocations: 1.716 MB / 433.7 MB, free: 7.945 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001002/0.2846, allocations: 0.6111 MB / 434.3 MB, free: 7.297 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.2846, allocations: 0.5625 kB / 434.3 MB, free: 7.297 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005653/0.2852, allocations: 438 kB / 434.7 MB, free: 6.832 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00086/0.286, allocations: 187.2 kB / 434.9 MB, free: 6.664 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008847/0.2949, allocations: 6.352 MB / 441.2 MB, free: 52 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006428/0.2956, allocations: 0.9484 MB / 442.2 MB, free: 15.07 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000299/0.2959, allocations: 108.8 kB / 442.3 MB, free: 14.96 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003383/0.2962, allocations: 243.3 kB / 442.5 MB, free: 14.73 MB / 366.1 MB Notification: Performance of SimCode: time 7.61e-07/0.2962, allocations: 3.938 kB / 442.5 MB, free: 14.72 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04228/0.3385, allocations: 16.11 MB / 458.6 MB, free: 14.78 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.263/9.602, allocations: 11.98 kB / 458.7 MB, free: 14.77 MB / 382.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Interaction1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Interaction1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Interaction1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Interaction1.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Interaction1_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_Interaction1.fmu > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Interaction1.pipe 2>&1)