Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(Modelica.Blocks.Examples.Interaction1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Interaction1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Interaction1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Interaction1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001011/0.001012, allocations: 91.02 kB / 16.65 MB, free: 6.59 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.001248/0.001249, allocations: 185.2 kB / 17.57 MB, free: 6.199 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.491/1.491, allocations: 223.3 MB / 241.6 MB, free: 112 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002915/0.0002916, allocations: 12.62 kB / 301.5 MB, free: 6.035 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1241/0.1244, allocations: 50.42 MB / 351.9 MB, free: 3.613 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.003191/0.1276, allocations: 2.205 MB / 354.1 MB, free: 1.387 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003002/0.1306, allocations: 1.773 MB / 355.9 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001892/0.1308, allocations: 7.938 kB / 355.9 MB, free: 15.6 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001121/0.132, allocations: 0.5105 MB / 356.4 MB, free: 15.09 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007201/0.1327, allocations: 396 kB / 356.8 MB, free: 14.7 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001667/0.1344, allocations: 0.6059 MB / 357.4 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009003/0.1353, allocations: 0.7597 MB / 358.2 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002309/0.1355, allocations: 105.8 kB / 358.3 MB, free: 13.24 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003441/0.1359, allocations: 278.7 kB / 358.6 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003943/0.1363, allocations: 330.6 kB / 358.9 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.956e-05/0.1363, allocations: 16 kB / 358.9 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003553/0.1367, allocations: 183.8 kB / 359.1 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002112/0.1369, allocations: 179.3 kB / 359.3 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002934/0.1372, allocations: 299.9 kB / 359.5 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008366/0.1381, allocations: 0.7865 MB / 360.3 MB, free: 11.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.1381, allocations: 4 kB / 360.3 MB, free: 11.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1381, allocations: 0 / 360.3 MB, free: 11.18 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.168e-06/0.1381, allocations: 0 / 360.3 MB, free: 11.18 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.001681/0.1398, allocations: 1.083 MB / 361.4 MB, free: 9.996 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.871e-05/0.1399, allocations: 8.031 kB / 361.4 MB, free: 9.988 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.814e-05/0.14, allocations: 58.73 kB / 361.5 MB, free: 9.922 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001547/0.1401, allocations: 83.98 kB / 361.6 MB, free: 9.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000816/0.141, allocations: 0.5855 MB / 362.2 MB, free: 9.211 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.759e-05/0.141, allocations: 19.95 kB / 362.2 MB, free: 9.191 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.652e-05/0.1411, allocations: 23.98 kB / 362.2 MB, free: 9.168 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006057/0.1417, allocations: 354.8 kB / 362.5 MB, free: 8.781 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.1417, allocations: 0 / 362.5 MB, free: 8.781 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.645e-05/0.1417, allocations: 12 kB / 362.6 MB, free: 8.77 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.597e-05/0.1418, allocations: 11.98 kB / 362.6 MB, free: 8.758 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003837/0.1422, allocations: 171.8 kB / 362.7 MB, free: 8.59 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00157/0.1437, allocations: 1.348 MB / 364.1 MB, free: 7.168 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007034/0.1445, allocations: 358.8 kB / 364.4 MB, free: 6.781 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003129/0.1448, allocations: 179.2 kB / 364.6 MB, free: 6.594 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.276e-05/0.1448, allocations: 7.984 kB / 364.6 MB, free: 6.586 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006391/0.1455, allocations: 463.1 kB / 365.1 MB, free: 6.078 MB / 302.1 MB Notification: Performance of pre-optimization done (n=42): time 1.663e-06/0.1455, allocations: 0 / 365.1 MB, free: 6.078 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.001365/0.1469, allocations: 0.7441 MB / 365.8 MB, free: 5.309 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002523/0.1471, allocations: 456.9 kB / 366.3 MB, free: 4.758 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00116/0.1483, allocations: 0.9262 MB / 367.2 MB, free: 3.824 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.423e-05/0.1484, allocations: 49.7 kB / 367.2 MB, free: 3.77 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002659/0.1486, allocations: 308.7 kB / 367.5 MB, free: 3.465 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001112/0.1487, allocations: 98.7 kB / 367.6 MB, free: 3.367 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.721e-05/0.1488, allocations: 57.69 kB / 367.7 MB, free: 3.305 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001654/0.149, allocations: 326 kB / 368 MB, free: 2.98 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003174/0.1493, allocations: 152.9 kB / 368.2 MB, free: 2.832 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004571/0.1498, allocations: 354.4 kB / 368.5 MB, free: 2.414 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007769/0.1506, allocations: 0.5816 MB / 369.1 MB, free: 1.746 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.73e-06/0.1506, allocations: 0 / 369.1 MB, free: 1.746 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001087/0.1517, allocations: 0.6692 MB / 369.8 MB, free: 1.051 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.721e-05/0.1518, allocations: 97.09 kB / 369.8 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.212e-05/0.1518, allocations: 7.984 kB / 369.9 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.845e-05/0.1518, allocations: 4.281 kB / 369.9 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002468/0.1521, allocations: 63.91 kB / 369.9 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.487e-05/0.1521, allocations: 11.92 kB / 369.9 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002962/0.1524, allocations: 51.95 kB / 370 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.716e-05/0.1525, allocations: 24 kB / 370 MB, free: 0.7773 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.0005017/0.153, allocations: 394.9 kB / 370.4 MB, free: 376 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001034/0.1531, allocations: 86.94 kB / 370.5 MB, free: 288 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001342/0.1532, allocations: 78.2 kB / 370.6 MB, free: 200 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.1533, allocations: 4 kB / 370.6 MB, free: 196 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.817e-06/0.1533, allocations: 4 kB / 370.6 MB, free: 192 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.066e-05/0.1533, allocations: 3.984 kB / 370.6 MB, free: 188 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2182/0.3715, allocations: 0.9599 MB / 371.5 MB, free: 24.65 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.745e-06/0.3716, allocations: 0.9688 kB / 371.5 MB, free: 24.65 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001332/0.3717, allocations: 22.58 kB / 371.5 MB, free: 24.65 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.948e-06/0.3717, allocations: 2.562 kB / 371.6 MB, free: 24.65 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.569e-05/0.3718, allocations: 19.27 kB / 371.6 MB, free: 24.65 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.247e-06/0.3718, allocations: 2.969 kB / 371.6 MB, free: 24.65 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.3718, allocations: 1.312 kB / 371.6 MB, free: 24.65 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001383/0.3732, allocations: 0.7701 MB / 372.3 MB, free: 24.4 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001939/0.3734, allocations: 166.4 kB / 372.5 MB, free: 24.31 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000121/0.3736, allocations: 26.62 kB / 372.5 MB, free: 24.31 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002687/0.3738, allocations: 25.92 kB / 372.6 MB, free: 24.31 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001461/0.374, allocations: 39.64 kB / 372.6 MB, free: 24.31 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6e-05/0.3741, allocations: 21.72 kB / 372.6 MB, free: 24.31 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001129/0.3752, allocations: 0.6699 MB / 373.3 MB, free: 24.21 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3752, allocations: 1.438 kB / 373.3 MB, free: 24.21 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001047/0.3762, allocations: 149.6 kB / 373.4 MB, free: 24.21 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.002842/0.3791, allocations: 1.737 MB / 375.2 MB, free: 23.38 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0011/0.3802, allocations: 0.6081 MB / 375.8 MB, free: 23.19 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.3802, allocations: 1.281 kB / 375.8 MB, free: 23.19 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005568/0.3808, allocations: 436.2 kB / 376.2 MB, free: 22.98 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009904/0.3818, allocations: 153.8 kB / 376.4 MB, free: 22.93 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01079/0.3926, allocations: 6.616 MB / 383 MB, free: 19.24 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006156/0.3933, allocations: 0.9254 MB / 383.9 MB, free: 18.52 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004645/0.3937, allocations: 106.5 kB / 384 MB, free: 18.5 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003222/0.3941, allocations: 233.5 kB / 384.2 MB, free: 18.33 MB / 302.1 MB Notification: Performance of SimCode: time 1.623e-06/0.3941, allocations: 4 kB / 384.2 MB, free: 18.33 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02946/0.4235, allocations: 14.68 MB / 398.9 MB, free: 9.172 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002513/0.4238, allocations: 231.8 kB / 399.1 MB, free: 8.914 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.464/2.888, allocations: 0 / 399.1 MB, free: 8.914 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_Interaction1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_Interaction1.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.pipe 2>&1)