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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001176/0.001176, allocations: 180.2 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.333/1.333, allocations: 223.2 MB / 240.3 MB, free: 10.15 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008249/0.0008249, allocations: 92.89 kB / 291.5 MB, free: 10.69 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002501/0.0002502, allocations: 4 kB / 351.2 MB, free: 15.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2299/0.2301, allocations: 50.41 MB / 401.6 MB, free: 32.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1076/0.3378, allocations: 82.36 MB / 483.9 MB, free: 13.97 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002277/0.3381, allocations: 71.97 kB / 484 MB, free: 13.9 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07245/0.4105, allocations: 26.66 MB / 0.4987 GB, free: 3.199 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.374e-06/0.4106, allocations: 192 / 0.4987 GB, free: 3.199 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.881e-05/0.4107, allocations: 19.94 kB / 0.4987 GB, free: 3.18 MB / 378.7 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.001711/0.4124, allocations: 1.135 MB / 0.4998 GB, free: 1.949 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/0.4124, allocations: 8.031 kB / 0.4998 GB, free: 1.941 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.101e-05/0.4125, allocations: 58.55 kB / 0.4999 GB, free: 1.875 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001503/0.4127, allocations: 79.06 kB / 0.5 GB, free: 1.797 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001092/0.4138, allocations: 0.6126 MB / 0.5006 GB, free: 1.145 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.217e-05/0.4138, allocations: 19.98 kB / 0.5006 GB, free: 1.125 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.277e-05/0.4139, allocations: 27.98 kB / 0.5006 GB, free: 1.098 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006541/0.4146, allocations: 366.7 kB / 0.5009 GB, free: 0.6992 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.436e-05/0.4146, allocations: 0 / 0.5009 GB, free: 0.6992 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.899e-05/0.4146, allocations: 19.89 kB / 0.501 GB, free: 0.6797 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.387e-05/0.4147, allocations: 8 kB / 0.501 GB, free: 0.6719 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003855/0.4151, allocations: 195.8 kB / 0.5012 GB, free: 492 kB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.209/0.6241, allocations: 1.42 MB / 0.5025 GB, free: 93.36 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008204/0.625, allocations: 375.9 kB / 0.5029 GB, free: 93.26 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.774e-05/0.625, allocations: 14.5 kB / 0.5029 GB, free: 93.26 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006607/0.6257, allocations: 473.6 kB / 0.5034 GB, free: 93.02 MB / 378.7 MB Notification: Performance of pre-optimization done (n=42): time 2.915e-06/0.6257, allocations: 0 / 0.5034 GB, free: 93.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=42): time 0.001774/0.6275, allocations: 1.029 MB / 0.5044 GB, free: 92.61 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001198/0.6276, allocations: 457.7 kB / 0.5048 GB, free: 92.08 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001384/0.629, allocations: 0.8412 MB / 0.5056 GB, free: 91.96 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.584e-05/0.6291, allocations: 46.91 kB / 0.5057 GB, free: 91.93 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002594/0.6294, allocations: 304.7 kB / 0.506 GB, free: 91.83 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.764e-05/0.6295, allocations: 110.5 kB / 0.5061 GB, free: 91.79 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.362e-05/0.6295, allocations: 11.31 kB / 0.5061 GB, free: 91.79 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.842e-05/0.6296, allocations: 327.6 kB / 0.5064 GB, free: 91.48 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003024/0.6299, allocations: 169.1 kB / 0.5066 GB, free: 91.47 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00043/0.6303, allocations: 375.8 kB / 0.5069 GB, free: 91.28 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004458/0.6308, allocations: 282.3 kB / 0.5072 GB, free: 91.18 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.171e-06/0.6308, allocations: 1.312 kB / 0.5072 GB, free: 91.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001218/0.632, allocations: 0.7011 MB / 0.5079 GB, free: 91.02 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.788e-05/0.6321, allocations: 102.6 kB / 0.508 GB, free: 90.92 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.172e-05/0.6321, allocations: 5.906 kB / 0.508 GB, free: 90.92 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.939e-05/0.6321, allocations: 3.844 kB / 0.508 GB, free: 90.92 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002462/0.6324, allocations: 65.5 kB / 0.508 GB, free: 90.92 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.117e-05/0.6324, allocations: 9.438 kB / 0.508 GB, free: 90.92 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003033/0.6327, allocations: 53.03 kB / 0.5081 GB, free: 90.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.887e-05/0.6328, allocations: 25.72 kB / 0.5081 GB, free: 90.91 MB / 378.7 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.0003712/0.6331, allocations: 398.8 kB / 0.5085 GB, free: 90.7 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001132/0.6333, allocations: 77.81 kB / 0.5086 GB, free: 90.67 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008318/0.6341, allocations: 0.5441 MB / 0.5091 GB, free: 90.55 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.6341, allocations: 3.5 kB / 0.5091 GB, free: 90.55 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.982e-06/0.6341, allocations: 3.938 kB / 0.5091 GB, free: 90.55 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.6341, allocations: 7.172 kB / 0.5091 GB, free: 90.55 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001255/0.6354, allocations: 1.078 MB / 0.5102 GB, free: 90.19 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.6354, allocations: 3.562 kB / 0.5102 GB, free: 90.19 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001148/0.6355, allocations: 29.77 kB / 0.5102 GB, free: 90.19 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.6356, allocations: 3.906 kB / 0.5102 GB, free: 90.19 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.791e-05/0.6356, allocations: 20.03 kB / 0.5102 GB, free: 90.19 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.6356, allocations: 2.625 kB / 0.5102 GB, free: 90.19 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.6356, allocations: 2.656 kB / 0.5102 GB, free: 90.19 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001037/0.6367, allocations: 0.8743 MB / 0.5111 GB, free: 89.84 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002312/0.6369, allocations: 186.6 kB / 0.5113 GB, free: 89.71 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001175/0.637, allocations: 31.19 kB / 0.5113 GB, free: 89.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002521/0.6373, allocations: 31.05 kB / 0.5113 GB, free: 89.71 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001103/0.6374, allocations: 43.86 kB / 0.5114 GB, free: 89.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.435e-05/0.6375, allocations: 24.77 kB / 0.5114 GB, free: 89.7 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007109/0.6382, allocations: 0.666 MB / 0.512 GB, free: 89.61 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.6382, allocations: 0 / 0.512 GB, free: 89.61 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00067/0.6389, allocations: 189.3 kB / 0.5122 GB, free: 89.61 MB / 378.7 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.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,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 (35): * Single equations (assignments): 24 * 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.002032/0.6409, allocations: 1.993 MB / 0.5142 GB, free: 88.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008114/0.6417, allocations: 0.6523 MB / 0.5148 GB, free: 88.31 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.6417, allocations: 2.594 kB / 0.5148 GB, free: 88.31 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004252/0.6422, allocations: 459.9 kB / 0.5152 GB, free: 88.06 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006967/0.6429, allocations: 152.9 kB / 0.5154 GB, free: 88.02 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005513/0.6484, allocations: 6.608 MB / 0.5218 GB, free: 83.68 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003479/0.6488, allocations: 0.9534 MB / 0.5228 GB, free: 82.94 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003049/0.6491, allocations: 120.1 kB / 0.5229 GB, free: 82.93 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002705/0.6494, allocations: 245.7 kB / 0.5231 GB, free: 82.76 MB / 378.7 MB Notification: Performance of SimCode: time 1.062e-06/0.6494, allocations: 3.906 kB / 0.5231 GB, free: 82.76 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02691/0.6763, allocations: 15.77 MB / 0.5385 GB, free: 71.91 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002283/0.6766, allocations: 204.1 kB / 0.5387 GB, free: 71.68 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.298/2.974, allocations: 3.844 kB / 0.5387 GB, free: 71.68 MB / 378.7 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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1_res.mat does not exist to compare? outputFormat=mat