Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00143/0.00143, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.281/1.281, allocations: 227.2 MB / 245 MB, free: 5.77 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009245/0.0009245, allocations: 95.5 kB / 297.3 MB, free: 5.945 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002163/0.0002162, allocations: 4 kB / 358 MB, free: 9.203 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2158/0.2161, allocations: 51.49 MB / 409.5 MB, free: 26.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09992/0.316, allocations: 83.85 MB / 493.4 MB, free: 6.711 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002316/0.3163, allocations: 78.08 kB / 493.4 MB, free: 6.637 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03529/0.3516, allocations: 14.76 MB / 0.4963 GB, free: 7.641 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3517, allocations: 4 kB / 0.4963 GB, free: 7.637 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.206e-05/0.3517, allocations: 27.98 kB / 0.4963 GB, free: 7.609 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: 201 * Number of variables: 201 Notification: Performance of Generate backend data structure: time 0.001665/0.3534, allocations: 0.9857 MB / 0.4973 GB, free: 6.57 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.307e-05/0.3535, allocations: 12.03 kB / 0.4973 GB, free: 6.559 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001864/0.3537, allocations: 119 kB / 0.4974 GB, free: 6.434 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002748/0.3539, allocations: 114.8 kB / 0.4975 GB, free: 6.32 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008594/0.3548, allocations: 0.516 MB / 0.498 GB, free: 5.762 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.481e-05/0.3549, allocations: 61.95 kB / 0.4981 GB, free: 5.699 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.923e-05/0.355, allocations: 80 kB / 0.4981 GB, free: 5.621 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001192/0.3562, allocations: 0.8326 MB / 0.499 GB, free: 4.68 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.743e-05/0.3562, allocations: 19.83 kB / 0.499 GB, free: 4.66 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.376e-05/0.3563, allocations: 32 kB / 0.499 GB, free: 4.629 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.898e-05/0.3563, allocations: 24 kB / 0.499 GB, free: 4.605 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008308/0.3571, allocations: 471.3 kB / 0.4995 GB, free: 4.141 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1736/0.5308, allocations: 4.393 MB / 0.5038 GB, free: 87.23 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006979/0.5315, allocations: 294.5 kB / 0.504 GB, free: 87.2 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001588/0.5317, allocations: 173.4 kB / 0.5042 GB, free: 87.02 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.086e-05/0.5317, allocations: 36.83 kB / 0.5043 GB, free: 86.98 MB / 378.7 MB Notification: Performance of pre-optimization done (n=46): time 2.565e-06/0.5317, allocations: 0.5625 kB / 0.5043 GB, free: 86.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=57): time 0.003225/0.5349, allocations: 1.745 MB / 0.506 GB, free: 86.41 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.232e-05/0.535, allocations: 59.95 kB / 0.506 GB, free: 86.35 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004571/0.5355, allocations: 469.6 kB / 0.5065 GB, free: 86.23 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.385e-05/0.5355, allocations: 37 kB / 0.5065 GB, free: 86.2 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002372/0.5357, allocations: 481 kB / 0.507 GB, free: 86 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001266/0.5359, allocations: 212.2 kB / 0.5072 GB, free: 85.87 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.23e-05/0.5359, allocations: 14.56 kB / 0.5072 GB, free: 85.87 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001101/0.536, allocations: 381.1 kB / 0.5075 GB, free: 85.56 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002655/0.5363, allocations: 162.9 kB / 0.5077 GB, free: 85.56 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000358/0.5366, allocations: 454.1 kB / 0.5081 GB, free: 85.21 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003215/0.537, allocations: 234.4 kB / 0.5083 GB, free: 85.21 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.537, allocations: 2.656 kB / 0.5083 GB, free: 85.21 MB / 378.7 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001058/0.538, allocations: 0.7347 MB / 0.5091 GB, free: 85.11 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.835e-05/0.5381, allocations: 13.27 kB / 0.5091 GB, free: 85.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.204e-05/0.5381, allocations: 9.281 kB / 0.5091 GB, free: 85.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001682/0.5383, allocations: 52.61 kB / 0.5091 GB, free: 85.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006161/0.5389, allocations: 180.8 kB / 0.5093 GB, free: 85.11 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001007/0.5399, allocations: 1.526 MB / 0.5108 GB, free: 83.76 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002719/0.5402, allocations: 32.19 kB / 0.5108 GB, free: 83.76 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.18e-05/0.5403, allocations: 37.16 kB / 0.5109 GB, free: 83.76 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (101): * Single equations (assignments): 100 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002497/0.5405, allocations: 228.6 kB / 0.5111 GB, free: 83.64 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001008/0.5406, allocations: 69.16 kB / 0.5112 GB, free: 83.61 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001126/0.5407, allocations: 75.66 kB / 0.5112 GB, free: 83.6 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-06/0.5408, allocations: 13.97 kB / 0.5112 GB, free: 83.59 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.167e-06/0.5408, allocations: 4.312 kB / 0.5112 GB, free: 83.59 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.164e-06/0.5408, allocations: 2.484 kB / 0.5112 GB, free: 83.59 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001632/0.5424, allocations: 1.424 MB / 0.5126 GB, free: 83.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.107e-06/0.5424, allocations: 3.781 kB / 0.5126 GB, free: 83.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004403/0.5429, allocations: 117.2 kB / 0.5127 GB, free: 83.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.261e-05/0.543, allocations: 27.27 kB / 0.5128 GB, free: 83.08 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.654e-05/0.543, allocations: 16.5 kB / 0.5128 GB, free: 83.08 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005178/0.5435, allocations: 1.281 MB / 0.514 GB, free: 81.82 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.5435, allocations: 7.766 kB / 0.514 GB, free: 81.82 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007968/0.5443, allocations: 0.9085 MB / 0.5149 GB, free: 81.34 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.125e-05/0.5444, allocations: 139.8 kB / 0.5151 GB, free: 81.21 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.805e-05/0.5445, allocations: 17.03 kB / 0.5151 GB, free: 81.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001985/0.5447, allocations: 11.12 kB / 0.5151 GB, free: 81.21 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.22e-05/0.5448, allocations: 42.25 kB / 0.5151 GB, free: 81.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.942e-05/0.5448, allocations: 18.25 kB / 0.5152 GB, free: 81.21 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002756/0.5451, allocations: 354.7 kB / 0.5155 GB, free: 81.11 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5451, allocations: 0 / 0.5155 GB, free: 81.11 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005546/0.5456, allocations: 145.1 kB / 0.5156 GB, free: 81.11 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 10 (directMass.mass.s,directMass.mass.v,mass2a.s,mass2a.v,mass2b.s,mass2b.v,mass3a.s,mass3a.v,mass3b.s,mass3b.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001116/0.5467, allocations: 2.227 MB / 0.5178 GB, free: 79.27 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007768/0.5475, allocations: 0.5749 MB / 0.5184 GB, free: 79.01 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.5476, allocations: 4.125 kB / 0.5184 GB, free: 79 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003118/0.5479, allocations: 305.2 kB / 0.5187 GB, free: 78.83 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004065/0.5483, allocations: 92.27 kB / 0.5187 GB, free: 78.79 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00612/0.5544, allocations: 11.01 MB / 0.5295 GB, free: 69.55 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003836/0.5548, allocations: 0.9847 MB / 0.5305 GB, free: 68.84 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002912/0.5551, allocations: 80.17 kB / 0.5305 GB, free: 68.83 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003076/0.5554, allocations: 329.7 kB / 0.5309 GB, free: 68.58 MB / 378.7 MB Notification: Performance of SimCode: time 2.274e-06/0.5555, allocations: 0 / 0.5309 GB, free: 68.58 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02241/0.5779, allocations: 11.55 MB / 0.5421 GB, free: 62.13 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000142/0.578, allocations: 206.7 kB / 0.5423 GB, free: 61.89 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.169/2.747, allocations: 6.359 kB / 0.5423 GB, free: 61.89 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat