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.0009104/0.0009105, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.325/1.325, allocations: 221.5 MB / 230.3 MB, free: 7.59 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.001062/0.001062, allocations: 90.75 kB / 281.2 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.824e-05/1.827e-05, allocations: 4 kB / 337.1 MB, free: 9.953 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.1049, allocations: 50.42 MB / 387.5 MB, free: 7.496 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.342/0.447, allocations: 81.62 MB / 469.2 MB, free: 13.1 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002288/0.4473, allocations: 73.67 kB / 469.2 MB, free: 13.03 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07191/0.5192, allocations: 26.38 MB / 495.6 MB, free: 2.625 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.5193, allocations: 0 / 495.6 MB, free: 2.625 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.011e-05/0.5193, allocations: 16 kB / 495.6 MB, free: 2.609 MB / 362.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.001511/0.5208, allocations: 0.9954 MB / 496.6 MB, free: 1.523 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.733e-05/0.5209, allocations: 8.031 kB / 496.6 MB, free: 1.516 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001744/0.5211, allocations: 79.06 kB / 496.7 MB, free: 1.438 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001099/0.5222, allocations: 0.6087 MB / 497.3 MB, free: 0.7852 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.035e-05/0.5222, allocations: 8 kB / 497.3 MB, free: 0.7773 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.855e-05/0.5223, allocations: 19.98 kB / 497.3 MB, free: 0.7578 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003219/0.5226, allocations: 172.4 kB / 497.5 MB, free: 0.5898 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004739/0.5231, allocations: 338.8 kB / 497.8 MB, free: 224 kB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.5231, allocations: 0 / 497.8 MB, free: 224 kB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.491e-05/0.5232, allocations: 7.953 kB / 497.9 MB, free: 216 kB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.503e-05/0.5232, allocations: 15.92 kB / 497.9 MB, free: 200 kB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001635/0.5248, allocations: 1.373 MB / 499.2 MB, free: 14.76 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004713/0.5253, allocations: 328.2 kB / 499.6 MB, free: 14.41 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002175/0.5256, allocations: 171.5 kB / 499.7 MB, free: 14.23 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.816e-05/0.5256, allocations: 4 kB / 499.7 MB, free: 14.22 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004961/0.5261, allocations: 451.2 kB / 0.4884 GB, free: 13.72 MB / 378.7 MB Notification: Performance of pre-optimization done (n=42): time 1.803e-06/0.5261, allocations: 0 / 0.4884 GB, free: 13.72 MB / 378.7 MB Notification: Performance of matching and sorting (n=42): time 0.0009456/0.5271, allocations: 0.5196 MB / 0.489 GB, free: 13.19 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001995/0.5273, allocations: 456.9 kB / 0.4894 GB, free: 12.64 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009847/0.5283, allocations: 0.8083 MB / 0.4902 GB, free: 11.83 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.54e-05/0.5283, allocations: 37.69 kB / 0.4902 GB, free: 11.79 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002381/0.5286, allocations: 301.3 kB / 0.4905 GB, free: 11.49 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001271/0.5287, allocations: 106.7 kB / 0.4906 GB, free: 11.38 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.541e-05/0.5287, allocations: 4 kB / 0.4906 GB, free: 11.38 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000109/0.5288, allocations: 325.9 kB / 0.4909 GB, free: 11.05 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002172/0.5291, allocations: 145 kB / 0.4911 GB, free: 10.91 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003491/0.5294, allocations: 354 kB / 0.4914 GB, free: 10.49 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000285/0.5297, allocations: 176.5 kB / 0.4916 GB, free: 10.32 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.5297, allocations: 3.938 kB / 0.4916 GB, free: 10.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0008541/0.5306, allocations: 0.5666 MB / 0.4921 GB, free: 9.742 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.846e-05/0.5307, allocations: 97.08 kB / 0.4922 GB, free: 9.629 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.348e-06/0.5307, allocations: 4 kB / 0.4922 GB, free: 9.625 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.828e-05/0.5307, allocations: 8.281 kB / 0.4922 GB, free: 9.617 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002754/0.531, allocations: 71.84 kB / 0.4923 GB, free: 9.547 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/0.531, allocations: 4 kB / 0.4923 GB, free: 9.543 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002771/0.5313, allocations: 35.73 kB / 0.4923 GB, free: 9.508 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.698e-05/0.5314, allocations: 31.98 kB / 0.4924 GB, free: 9.477 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.0002518/0.5316, allocations: 257.8 kB / 0.4926 GB, free: 9.203 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0009809/0.5326, allocations: 0.5617 MB / 0.4932 GB, free: 8.637 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001624/0.5328, allocations: 87.05 kB / 0.4932 GB, free: 8.551 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007938/0.5336, allocations: 439.2 kB / 0.4937 GB, free: 8.105 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.584e-06/0.5336, allocations: 4 kB / 0.4937 GB, free: 8.102 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.5336, allocations: 0 / 0.4937 GB, free: 8.102 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.027e-06/0.5336, allocations: 7.953 kB / 0.4937 GB, free: 8.094 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001217/0.5349, allocations: 0.941 MB / 0.4946 GB, free: 7.109 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.5349, allocations: 0 / 0.4946 GB, free: 7.109 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001391/0.535, allocations: 35.92 kB / 0.4946 GB, free: 7.074 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.263e-06/0.535, allocations: 4 kB / 0.4946 GB, free: 7.07 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.342e-05/0.5351, allocations: 15.98 kB / 0.4946 GB, free: 7.055 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.479e-06/0.5351, allocations: 4 kB / 0.4946 GB, free: 7.051 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.5351, allocations: 0 / 0.4946 GB, free: 7.051 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009509/0.5361, allocations: 0.7368 MB / 0.4954 GB, free: 6.27 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001967/0.5363, allocations: 196 kB / 0.4956 GB, free: 6.059 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000124/0.5364, allocations: 23.98 kB / 0.4956 GB, free: 6.035 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002885/0.5367, allocations: 23.98 kB / 0.4956 GB, free: 6.012 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001192/0.5368, allocations: 39.95 kB / 0.4956 GB, free: 5.973 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.901e-05/0.5369, allocations: 23.98 kB / 0.4957 GB, free: 5.949 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007935/0.5377, allocations: 0.6202 MB / 0.4963 GB, free: 5.332 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5377, allocations: 4 kB / 0.4963 GB, free: 5.328 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007181/0.5384, allocations: 172 kB / 0.4964 GB, free: 5.156 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) * 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.002079/0.5405, allocations: 1.791 MB / 0.4982 GB, free: 3.406 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007763/0.5413, allocations: 0.5956 MB / 0.4988 GB, free: 2.773 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.5413, allocations: 0.5625 kB / 0.4988 GB, free: 2.773 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004066/0.5417, allocations: 434 kB / 0.4992 GB, free: 2.312 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007417/0.5425, allocations: 163.4 kB / 0.4993 GB, free: 2.156 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001973/0.5444, allocations: 1.135 MB / 0.5004 GB, free: 0.9727 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005408/0.545, allocations: 0.9489 MB / 0.5014 GB, free: 15.99 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.000298/0.5453, allocations: 116.8 kB / 0.5015 GB, free: 15.88 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003221/0.5456, allocations: 243.7 kB / 0.5017 GB, free: 15.64 MB / 394.7 MB Notification: Performance of SimCode: time 2.9e-07/0.5457, allocations: 0 / 0.5017 GB, free: 15.64 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03482/0.5805, allocations: 14.56 MB / 0.5159 GB, free: 1.109 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000193/0.5807, allocations: 151.5 kB / 0.5161 GB, free: 0.918 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.282/2.862, allocations: 0 / 0.5161 GB, free: 0.918 MB / 394.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