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.00118/0.00118, allocations: 174.8 kB / 13.63 MB, free: 1.684 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.39/1.39, allocations: 221.3 MB / 235.5 MB, free: 2.953 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001115/0.001115, allocations: 91.53 kB / 286.5 MB, free: 236 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.246e-05/2.255e-05, allocations: 0 / 343.9 MB, free: 4.234 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09958/0.09962, allocations: 50.42 MB / 394.3 MB, free: 1.777 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3533/0.453, allocations: 82.28 MB / 476.6 MB, free: 5.203 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002062/0.4532, allocations: 71.97 kB / 476.7 MB, free: 5.133 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.073/0.5262, allocations: 26.6 MB / 0.4915 GB, free: 10.5 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.5263, allocations: 0 / 0.4915 GB, free: 10.5 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.253e-05/0.5263, allocations: 19.98 kB / 0.4915 GB, free: 10.48 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.001357/0.5277, allocations: 0.9912 MB / 0.4925 GB, free: 9.391 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.501e-05/0.5277, allocations: 8.031 kB / 0.4925 GB, free: 9.383 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.782e-05/0.5278, allocations: 54.53 kB / 0.4925 GB, free: 9.32 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001331/0.528, allocations: 79.06 kB / 0.4926 GB, free: 9.242 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00106/0.529, allocations: 0.6087 MB / 0.4932 GB, free: 8.594 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.052e-05/0.5291, allocations: 24 kB / 0.4932 GB, free: 8.57 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.997e-05/0.5291, allocations: 20 kB / 0.4933 GB, free: 8.551 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005683/0.5297, allocations: 359.7 kB / 0.4936 GB, free: 8.16 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.698e-06/0.5297, allocations: 0 / 0.4936 GB, free: 8.16 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.459e-05/0.5298, allocations: 11.95 kB / 0.4936 GB, free: 8.148 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.405e-05/0.5298, allocations: 12 kB / 0.4936 GB, free: 8.137 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003223/0.5301, allocations: 191.8 kB / 0.4938 GB, free: 7.949 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00164/0.5318, allocations: 1.423 MB / 0.4952 GB, free: 6.453 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005007/0.5323, allocations: 358.9 kB / 0.4955 GB, free: 6.066 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002494/0.5326, allocations: 175.5 kB / 0.4957 GB, free: 5.883 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.175e-05/0.5326, allocations: 12.06 kB / 0.4957 GB, free: 5.871 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005494/0.5331, allocations: 463.2 kB / 0.4962 GB, free: 5.359 MB / 378.7 MB Notification: Performance of pre-optimization done (n=42): time 3.537e-06/0.5332, allocations: 0 / 0.4962 GB, free: 5.359 MB / 378.7 MB Notification: Performance of matching and sorting (n=42): time 0.001029/0.5342, allocations: 0.6291 MB / 0.4968 GB, free: 4.699 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002091/0.5344, allocations: 460.9 kB / 0.4972 GB, free: 4.145 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001148/0.5356, allocations: 0.8434 MB / 0.498 GB, free: 3.293 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.275e-05/0.5356, allocations: 45.7 kB / 0.4981 GB, free: 3.242 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002539/0.5359, allocations: 308.9 kB / 0.4984 GB, free: 2.938 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001007/0.536, allocations: 102.7 kB / 0.4985 GB, free: 2.836 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.596e-05/0.536, allocations: 12 kB / 0.4985 GB, free: 2.824 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.5362, allocations: 326 kB / 0.4988 GB, free: 2.5 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002605/0.5365, allocations: 157 kB / 0.4989 GB, free: 2.348 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004207/0.5369, allocations: 370.4 kB / 0.4993 GB, free: 1.91 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003704/0.5373, allocations: 261.4 kB / 0.4995 GB, free: 1.637 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.982e-06/0.5373, allocations: 4 kB / 0.4995 GB, free: 1.633 MB / 378.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001028/0.5383, allocations: 0.6889 MB / 0.5002 GB, free: 0.918 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001024/0.5384, allocations: 97.08 kB / 0.5003 GB, free: 0.8047 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.291e-05/0.5384, allocations: 8.062 kB / 0.5003 GB, free: 0.7969 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.767e-05/0.5385, allocations: 8 kB / 0.5003 GB, free: 0.7891 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003003/0.5388, allocations: 63.84 kB / 0.5004 GB, free: 0.7266 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.411e-05/0.5388, allocations: 7.953 kB / 0.5004 GB, free: 0.7188 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003118/0.5391, allocations: 47.73 kB / 0.5004 GB, free: 0.6719 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.076e-05/0.5392, allocations: 36.05 kB / 0.5005 GB, free: 0.6367 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 () * 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.0002693/0.5395, allocations: 266 kB / 0.5007 GB, free: 368 kB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001328/0.5396, allocations: 83.06 kB / 0.5008 GB, free: 284 kB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008952/0.5405, allocations: 0.5151 MB / 0.5013 GB, free: 15.74 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.782e-06/0.5405, allocations: 4 kB / 0.5013 GB, free: 15.74 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.174e-06/0.5406, allocations: 8 kB / 0.5013 GB, free: 15.73 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.506e-06/0.5406, allocations: 7.938 kB / 0.5013 GB, free: 15.72 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001349/0.5419, allocations: 1.066 MB / 0.5024 GB, free: 14.59 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.125e-06/0.5419, allocations: 0 / 0.5024 GB, free: 14.59 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001211/0.5421, allocations: 31.92 kB / 0.5024 GB, free: 14.56 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/0.5421, allocations: 0 / 0.5024 GB, free: 14.56 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.789e-05/0.5421, allocations: 28.27 kB / 0.5024 GB, free: 14.53 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.117e-05/0.5421, allocations: 3.953 kB / 0.5024 GB, free: 14.53 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.694e-06/0.5422, allocations: 8 kB / 0.5024 GB, free: 14.52 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001086/0.5432, allocations: 0.8553 MB / 0.5033 GB, free: 13.6 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002045/0.5435, allocations: 192.1 kB / 0.5035 GB, free: 13.39 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001449/0.5436, allocations: 23.98 kB / 0.5035 GB, free: 13.37 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002632/0.5439, allocations: 27.98 kB / 0.5035 GB, free: 13.34 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001127/0.544, allocations: 35.95 kB / 0.5035 GB, free: 13.3 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.037e-05/0.5441, allocations: 23.98 kB / 0.5036 GB, free: 13.28 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0009081/0.545, allocations: 0.6631 MB / 0.5042 GB, free: 12.61 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.545, allocations: 4 kB / 0.5042 GB, free: 12.61 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007054/0.5457, allocations: 184 kB / 0.5044 GB, free: 12.43 MB / 394.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) * 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.002403/0.5481, allocations: 1.931 MB / 0.5063 GB, free: 10.54 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0008814/0.549, allocations: 0.6333 MB / 0.5069 GB, free: 9.875 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.549, allocations: 4.062 kB / 0.5069 GB, free: 9.871 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005249/0.5496, allocations: 450 kB / 0.5073 GB, free: 9.395 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007598/0.5503, allocations: 154.8 kB / 0.5075 GB, free: 9.25 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002159/0.5525, allocations: 1.164 MB / 0.5086 GB, free: 8.035 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005421/0.5531, allocations: 0.9452 MB / 0.5095 GB, free: 7.059 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.000348/0.5534, allocations: 128.7 kB / 0.5097 GB, free: 6.93 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003555/0.5538, allocations: 247.3 kB / 0.5099 GB, free: 6.688 MB / 394.7 MB Notification: Performance of SimCode: time 9.32e-07/0.5538, allocations: 0 / 0.5099 GB, free: 6.688 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03468/0.5885, allocations: 15.56 MB / 0.5251 GB, free: 7.223 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001905/0.5887, allocations: 185.9 kB / 0.5253 GB, free: 6.992 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.317/2.906, allocations: 0 / 0.5253 GB, free: 6.992 MB / 410.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