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.00109/0.00109, allocations: 98.98 kB / 17 MB, free: 6.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001334/0.001334, allocations: 193.9 kB / 17.9 MB, free: 5.91 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.36/1.36, allocations: 227.3 MB / 246 MB, free: 12 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003866/0.0003867, allocations: 4 kB / 306.8 MB, free: 1.504 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1222/0.1226, allocations: 51.49 MB / 358.3 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.004038/0.1267, allocations: 2.169 MB / 360.5 MB, free: 11.83 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004404/0.1312, allocations: 1.868 MB / 362.3 MB, free: 9.957 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003898/0.1316, allocations: 7.938 kB / 362.3 MB, free: 9.949 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001457/0.1331, allocations: 490.8 kB / 362.8 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001296/0.1344, allocations: 414.2 kB / 363.2 MB, free: 9.066 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00213/0.1366, allocations: 0.5566 MB / 363.8 MB, free: 8.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001351/0.1379, allocations: 0.7206 MB / 364.5 MB, free: 7.797 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000298/0.1382, allocations: 93.66 kB / 364.6 MB, free: 7.703 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005856/0.1388, allocations: 286.8 kB / 364.9 MB, free: 7.422 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000434/0.1393, allocations: 322.7 kB / 365.2 MB, free: 7.105 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.488e-05/0.1394, allocations: 12 kB / 365.2 MB, free: 7.094 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004256/0.1398, allocations: 171.7 kB / 365.4 MB, free: 6.926 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002177/0.14, allocations: 175.4 kB / 365.5 MB, free: 6.754 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001525/0.1402, allocations: 141.3 kB / 365.7 MB, free: 6.609 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007419/0.1409, allocations: 0.6511 MB / 366.3 MB, free: 5.957 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.491e-06/0.1409, allocations: 0 / 366.3 MB, free: 5.957 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1409, allocations: 0 / 366.3 MB, free: 5.957 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.638e-06/0.141, allocations: 4 kB / 366.3 MB, free: 5.953 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.001791/0.1428, allocations: 1.106 MB / 367.4 MB, free: 4.75 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.364e-05/0.1428, allocations: 12.03 kB / 367.4 MB, free: 4.738 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.279e-05/0.1429, allocations: 62.52 kB / 367.5 MB, free: 4.668 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001362/0.1431, allocations: 82.97 kB / 367.6 MB, free: 4.586 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009753/0.1441, allocations: 0.5618 MB / 368.1 MB, free: 3.98 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.414e-05/0.1441, allocations: 23.94 kB / 368.2 MB, free: 3.957 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.771e-05/0.1442, allocations: 24 kB / 368.2 MB, free: 3.934 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006003/0.1448, allocations: 346.7 kB / 368.5 MB, free: 3.547 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.1448, allocations: 4 kB / 368.5 MB, free: 3.543 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.144e-05/0.1448, allocations: 11.98 kB / 368.5 MB, free: 3.531 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.278e-05/0.1449, allocations: 4 kB / 368.5 MB, free: 3.527 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003609/0.1452, allocations: 183.7 kB / 368.7 MB, free: 3.348 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001647/0.1469, allocations: 1.348 MB / 370.1 MB, free: 1.926 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008257/0.1477, allocations: 350.9 kB / 370.4 MB, free: 1.547 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003433/0.1481, allocations: 179.4 kB / 370.6 MB, free: 1.359 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.527e-05/0.1481, allocations: 11.98 kB / 370.6 MB, free: 1.348 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007289/0.1489, allocations: 455.2 kB / 371.1 MB, free: 0.8477 MB / 302.1 MB Notification: Performance of pre-optimization done (n=42): time 4.498e-06/0.1489, allocations: 4 kB / 371.1 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.001369/0.1503, allocations: 0.7484 MB / 371.8 MB, free: 76 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1863/0.3366, allocations: 455.8 kB / 372.2 MB, free: 19.42 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00153/0.3381, allocations: 0.9686 MB / 373.2 MB, free: 19.29 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001339/0.3383, allocations: 44.33 kB / 373.3 MB, free: 19.26 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002485/0.3385, allocations: 317.6 kB / 373.6 MB, free: 19.18 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001201/0.3387, allocations: 102.7 kB / 373.7 MB, free: 19.17 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.757e-05/0.3387, allocations: 10.5 kB / 373.7 MB, free: 19.17 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.245e-05/0.3388, allocations: 325.9 kB / 374 MB, free: 18.87 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004111/0.3392, allocations: 151.1 kB / 374.1 MB, free: 18.86 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004878/0.3397, allocations: 351.3 kB / 374.5 MB, free: 18.66 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004022/0.3401, allocations: 263.5 kB / 374.7 MB, free: 18.57 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.3401, allocations: 5.219 kB / 374.8 MB, free: 18.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001139/0.3413, allocations: 0.6631 MB / 375.4 MB, free: 18.39 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.069e-05/0.3413, allocations: 98.17 kB / 375.5 MB, free: 18.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.114e-05/0.3414, allocations: 3.438 kB / 375.5 MB, free: 18.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.927e-05/0.3414, allocations: 6.781 kB / 375.5 MB, free: 18.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002555/0.3416, allocations: 65.98 kB / 375.6 MB, free: 18.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.614e-05/0.3417, allocations: 9.312 kB / 375.6 MB, free: 18.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002846/0.342, allocations: 51.61 kB / 375.6 MB, free: 18.28 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.819e-05/0.342, allocations: 22.5 kB / 375.7 MB, free: 18.28 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.0003965/0.3424, allocations: 402 kB / 376.1 MB, free: 18.06 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001004/0.3425, allocations: 89.31 kB / 376.1 MB, free: 18.01 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001216/0.3426, allocations: 79.27 kB / 376.2 MB, free: 17.98 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.394e-06/0.3427, allocations: 5.312 kB / 376.2 MB, free: 17.98 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.3427, allocations: 1.438 kB / 376.2 MB, free: 17.98 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.3427, allocations: 2.922 kB / 376.2 MB, free: 17.98 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001093/0.3438, allocations: 0.9789 MB / 377.2 MB, free: 17.4 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.3438, allocations: 4.188 kB / 377.2 MB, free: 17.4 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.248e-05/0.3439, allocations: 32.09 kB / 377.2 MB, free: 17.39 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.3439, allocations: 2.031 kB / 377.3 MB, free: 17.39 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.531e-05/0.3439, allocations: 17.05 kB / 377.3 MB, free: 17.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.3439, allocations: 2.75 kB / 377.3 MB, free: 17.39 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.344, allocations: 1.375 kB / 377.3 MB, free: 17.39 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009495/0.3449, allocations: 0.7764 MB / 378 MB, free: 16.96 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001223/0.345, allocations: 174.7 kB / 378.2 MB, free: 16.81 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001075/0.3452, allocations: 25.94 kB / 378.2 MB, free: 16.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002296/0.3454, allocations: 31.11 kB / 378.3 MB, free: 16.79 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001013/0.3455, allocations: 37.38 kB / 378.3 MB, free: 16.78 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.283e-05/0.3456, allocations: 24.17 kB / 378.3 MB, free: 16.78 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008529/0.3464, allocations: 0.6956 MB / 379 MB, free: 16.5 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3464, allocations: 0 / 379 MB, free: 16.5 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006463/0.3471, allocations: 154 kB / 379.2 MB, free: 16.48 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.002218/0.3493, allocations: 1.715 MB / 380.9 MB, free: 15.4 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009733/0.3503, allocations: 0.6091 MB / 381.5 MB, free: 15.06 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.3503, allocations: 0 / 381.5 MB, free: 15.06 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005278/0.3508, allocations: 440.6 kB / 381.9 MB, free: 14.77 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008761/0.3517, allocations: 169.1 kB / 382.1 MB, free: 14.71 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007514/0.3592, allocations: 4.499 MB / 386.6 MB, free: 12.51 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005527/0.3599, allocations: 0.9405 MB / 387.5 MB, free: 11.78 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004492/0.3603, allocations: 114 kB / 387.6 MB, free: 11.75 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003334/0.3607, allocations: 246.2 kB / 387.9 MB, free: 11.57 MB / 302.1 MB Notification: Performance of SimCode: time 1.874e-06/0.3607, allocations: 0 / 387.9 MB, free: 11.57 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02582/0.3865, allocations: 15.43 MB / 403.3 MB, free: 1.117 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001313/0.3867, allocations: 209.5 kB / 403.5 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.324/2.711, allocations: 0 / 403.5 MB, free: 0.8789 MB / 302.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/linux/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)