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.0008277/0.0008277, allocations: 91.72 kB / 16.31 MB, free: 5.637 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.0008557/0.0008559, allocations: 178.7 kB / 17.2 MB, free: 5.559 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.359/1.359, allocations: 223.2 MB / 241.2 MB, free: 5.41 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002704/0.0002706, allocations: 7.875 kB / 300.9 MB, free: 5.996 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1014, allocations: 50.43 MB / 351.3 MB, free: 11.58 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.002592/0.104, allocations: 2.111 MB / 353.4 MB, free: 9.449 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002659/0.1067, allocations: 1.688 MB / 355.1 MB, free: 7.758 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001938/0.1069, allocations: 7.938 kB / 355.1 MB, free: 7.75 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009803/0.1079, allocations: 490.8 kB / 355.6 MB, free: 7.27 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006211/0.1086, allocations: 366.8 kB / 356 MB, free: 6.91 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001287/0.1098, allocations: 0.5496 MB / 356.5 MB, free: 6.371 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007231/0.1106, allocations: 0.6856 MB / 357.2 MB, free: 5.684 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001892/0.1108, allocations: 96.78 kB / 357.3 MB, free: 5.59 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002996/0.1111, allocations: 274.8 kB / 357.6 MB, free: 5.32 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003507/0.1114, allocations: 310.8 kB / 357.9 MB, free: 5.016 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.936e-05/0.1115, allocations: 16 kB / 357.9 MB, free: 5 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003169/0.1118, allocations: 167.7 kB / 358.1 MB, free: 4.836 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002003/0.112, allocations: 175.4 kB / 358.2 MB, free: 4.664 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001282/0.1122, allocations: 141.3 kB / 358.4 MB, free: 4.52 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000643/0.1128, allocations: 0.6236 MB / 359 MB, free: 3.895 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/0.1128, allocations: 0 / 359 MB, free: 3.895 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.1128, allocations: 0 / 359 MB, free: 3.895 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.536e-06/0.1129, allocations: 0 / 359 MB, free: 3.895 MB / 286.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.001487/0.1144, allocations: 1.086 MB / 360.1 MB, free: 2.711 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.444e-05/0.1144, allocations: 16.03 kB / 360.1 MB, free: 2.695 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.145e-05/0.1145, allocations: 62.48 kB / 360.1 MB, free: 2.625 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000113/0.1146, allocations: 75.06 kB / 360.2 MB, free: 2.551 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007216/0.1153, allocations: 0.5502 MB / 360.8 MB, free: 1.957 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.629e-05/0.1154, allocations: 19.98 kB / 360.8 MB, free: 1.938 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.879e-05/0.1154, allocations: 20 kB / 360.8 MB, free: 1.918 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005367/0.116, allocations: 350.8 kB / 361.2 MB, free: 1.535 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.12e-05/0.116, allocations: 0 / 361.2 MB, free: 1.535 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.384e-05/0.116, allocations: 23.91 kB / 361.2 MB, free: 1.512 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.432e-05/0.116, allocations: 11.95 kB / 361.2 MB, free: 1.5 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003373/0.1164, allocations: 175.8 kB / 361.4 MB, free: 1.328 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001387/0.1178, allocations: 1.337 MB / 362.7 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000632/0.1184, allocations: 358.7 kB / 363 MB, free: 15.53 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002752/0.1187, allocations: 171.4 kB / 363.2 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.802e-05/0.1188, allocations: 4 kB / 363.2 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005435/0.1193, allocations: 467.2 kB / 363.7 MB, free: 14.83 MB / 302.1 MB Notification: Performance of pre-optimization done (n=42): time 2.164e-06/0.1193, allocations: 0 / 363.7 MB, free: 14.83 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.001232/0.1206, allocations: 0.7434 MB / 364.4 MB, free: 14.06 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001926/0.1208, allocations: 456.9 kB / 364.9 MB, free: 13.51 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009991/0.1218, allocations: 0.934 MB / 365.8 MB, free: 12.57 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.35e-05/0.1218, allocations: 41.7 kB / 365.8 MB, free: 12.52 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002401/0.1221, allocations: 304.8 kB / 366.1 MB, free: 12.22 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.815e-05/0.1222, allocations: 110.6 kB / 366.2 MB, free: 12.11 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.531e-05/0.1222, allocations: 8 kB / 366.3 MB, free: 12.11 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001041/0.1223, allocations: 330 kB / 366.6 MB, free: 11.78 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002804/0.1226, allocations: 156.9 kB / 366.7 MB, free: 11.62 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003962/0.123, allocations: 350.4 kB / 367.1 MB, free: 11.21 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003558/0.1234, allocations: 260.9 kB / 367.3 MB, free: 10.94 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.1234, allocations: 0 / 367.3 MB, free: 10.94 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0009684/0.1243, allocations: 0.6652 MB / 368 MB, free: 10.25 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.048e-05/0.1244, allocations: 103.4 kB / 368.1 MB, free: 10.13 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.1244, allocations: 0 / 368.1 MB, free: 10.13 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.731e-05/0.1245, allocations: 8 kB / 368.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002383/0.1247, allocations: 67.84 kB / 368.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.333e-05/0.1247, allocations: 7.953 kB / 368.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003129/0.1251, allocations: 52.02 kB / 368.2 MB, free: 9.996 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.482e-05/0.1251, allocations: 24 kB / 368.2 MB, free: 9.973 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],$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.0004035/0.1255, allocations: 395.3 kB / 368.6 MB, free: 9.562 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.783e-05/0.1256, allocations: 79.06 kB / 368.7 MB, free: 9.484 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001219/0.1258, allocations: 74.22 kB / 368.8 MB, free: 9.402 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.584e-06/0.1258, allocations: 11.98 kB / 368.8 MB, free: 9.391 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.096e-05/0.1258, allocations: 4 kB / 368.8 MB, free: 9.387 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.915e-06/0.1258, allocations: 3.953 kB / 368.8 MB, free: 9.383 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001074/0.1269, allocations: 0.9563 MB / 369.8 MB, free: 8.359 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.1269, allocations: 0 / 369.8 MB, free: 8.359 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.437e-05/0.127, allocations: 24.2 kB / 369.8 MB, free: 8.336 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.939e-06/0.127, allocations: 4 kB / 369.8 MB, free: 8.332 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.306e-05/0.127, allocations: 19.98 kB / 369.8 MB, free: 8.312 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.12e-06/0.1271, allocations: 11.89 kB / 369.8 MB, free: 8.301 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.1271, allocations: 0 / 369.8 MB, free: 8.301 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009823/0.128, allocations: 0.7711 MB / 370.6 MB, free: 7.484 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001318/0.1282, allocations: 168.1 kB / 370.8 MB, free: 7.301 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001083/0.1283, allocations: 27.98 kB / 370.8 MB, free: 7.273 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002328/0.1285, allocations: 23.98 kB / 370.8 MB, free: 7.25 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.551e-05/0.1287, allocations: 47.78 kB / 370.9 MB, free: 7.203 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.107e-05/0.1287, allocations: 23.98 kB / 370.9 MB, free: 7.18 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007221/0.1294, allocations: 0.6669 MB / 371.5 MB, free: 6.516 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1294, allocations: 0 / 371.5 MB, free: 6.516 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005295/0.13, allocations: 155.9 kB / 371.7 MB, free: 6.363 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 (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.002223/0.1322, allocations: 1.71 MB / 373.4 MB, free: 4.758 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009149/0.1331, allocations: 0.6108 MB / 374 MB, free: 4.109 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.1331, allocations: 4.5 kB / 374 MB, free: 4.105 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005293/0.1337, allocations: 445.9 kB / 374.5 MB, free: 3.633 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007756/0.1345, allocations: 150.8 kB / 374.6 MB, free: 3.484 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006628/0.1411, allocations: 4.344 MB / 378.9 MB, free: 14.99 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000503/0.1416, allocations: 0.9293 MB / 379.9 MB, free: 14.04 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003147/0.142, allocations: 113.1 kB / 380 MB, free: 13.92 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002966/0.1423, allocations: 231.3 kB / 380.2 MB, free: 13.7 MB / 318.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1423, allocations: 0 / 380.2 MB, free: 13.7 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03158/0.1739, allocations: 15.05 MB / 395.3 MB, free: 14.81 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002078/0.1741, allocations: 219.8 kB / 395.5 MB, free: 14.57 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.122/2.296, allocations: 3.938 kB / 395.5 MB, free: 14.56 MB / 334.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/linux/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)