Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00227/0.002269, allocations: 186.2 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.08/2.08, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001565/0.001565, allocations: 84.42 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005247/0.0005247, allocations: 8 kB / 327.1 MB, free: 108 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3751/0.3757, allocations: 47.57 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1332/0.5089, allocations: 81.96 MB / 456.6 MB, free: 14.79 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004042/0.5094, allocations: 75.95 kB / 456.7 MB, free: 14.71 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06016/0.5696, allocations: 14.45 MB / 471.1 MB, free: 16 kB / 346.7 MB Notification: Performance of FrontEnd: time 2.896e-06/0.5697, allocations: 0 / 471.1 MB, free: 16 kB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001159/0.5698, allocations: 24.03 kB / 471.1 MB, free: 15.99 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: 201 * Number of variables: 201 Notification: Performance of Generate backend data structure: time 0.002524/0.5723, allocations: 0.9857 MB / 472.1 MB, free: 14.95 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.226e-05/0.5724, allocations: 8.031 kB / 472.1 MB, free: 14.95 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003102/0.5727, allocations: 122.9 kB / 472.2 MB, free: 14.82 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002571/0.573, allocations: 102.8 kB / 472.3 MB, free: 14.71 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001361/0.5744, allocations: 0.5199 MB / 472.9 MB, free: 14.16 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.905e-05/0.5745, allocations: 65.95 kB / 472.9 MB, free: 14.09 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000187/0.5747, allocations: 80 kB / 473 MB, free: 14.01 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002211/0.5769, allocations: 0.8329 MB / 473.8 MB, free: 13.07 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.134e-05/0.5771, allocations: 15.84 kB / 473.9 MB, free: 13.05 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001033/0.5772, allocations: 36 kB / 473.9 MB, free: 13.02 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.071e-05/0.5772, allocations: 20 kB / 473.9 MB, free: 13 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001644/0.5789, allocations: 471.3 kB / 474.4 MB, free: 12.54 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006363/0.5853, allocations: 4.401 MB / 478.8 MB, free: 7.941 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009966/0.5864, allocations: 307.3 kB / 479.1 MB, free: 7.633 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002882/0.5867, allocations: 178.5 kB / 479.2 MB, free: 7.422 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.913e-05/0.5867, allocations: 38.94 kB / 479.3 MB, free: 7.375 MB / 362.7 MB Notification: Performance of pre-optimization done (n=46): time 3.347e-06/0.5867, allocations: 0 / 479.3 MB, free: 7.375 MB / 362.7 MB Notification: Performance of matching and sorting (n=57): time 0.005452/0.5922, allocations: 1.728 MB / 481 MB, free: 5.551 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.256e-05/0.5923, allocations: 59.97 kB / 481.1 MB, free: 5.48 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009291/0.5932, allocations: 475.3 kB / 481.5 MB, free: 5.012 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.169e-05/0.5933, allocations: 33.7 kB / 481.6 MB, free: 4.973 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004441/0.5938, allocations: 0.5008 MB / 482.1 MB, free: 4.465 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002489/0.5941, allocations: 205.1 kB / 482.3 MB, free: 4.262 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.926e-05/0.5941, allocations: 16 kB / 482.3 MB, free: 4.246 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001764/0.5943, allocations: 346.8 kB / 482.6 MB, free: 3.898 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005222/0.5948, allocations: 153.9 kB / 482.8 MB, free: 3.746 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007772/0.5956, allocations: 451.2 kB / 483.2 MB, free: 3.176 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006774/0.5963, allocations: 244.7 kB / 483.5 MB, free: 2.938 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-05/0.5964, allocations: 4 kB / 483.5 MB, free: 2.934 MB / 362.7 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001926/0.5983, allocations: 0.7036 MB / 484.2 MB, free: 2.219 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.409e-05/0.5984, allocations: 8.938 kB / 484.2 MB, free: 2.211 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.725e-05/0.5984, allocations: 12 kB / 484.2 MB, free: 2.199 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002441/0.5987, allocations: 48.84 kB / 484.2 MB, free: 2.148 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001133/0.5998, allocations: 179.7 kB / 484.4 MB, free: 1.973 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00197/0.6018, allocations: 1.53 MB / 485.9 MB, free: 316 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006168/0.6025, allocations: 24 kB / 486 MB, free: 292 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.645e-05/0.6026, allocations: 40 kB / 486 MB, free: 252 kB / 362.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.0005555/0.6031, allocations: 229.6 kB / 486.2 MB, free: 12 kB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001975/0.6033, allocations: 79.22 kB / 486.3 MB, free: 15.93 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001923/0.6035, allocations: 71.08 kB / 486.4 MB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.686e-06/0.6036, allocations: 4 kB / 486.4 MB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.179e-05/0.6036, allocations: 7.953 kB / 486.4 MB, free: 15.85 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.092e-05/0.6036, allocations: 3.984 kB / 486.4 MB, free: 15.84 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00333/0.6069, allocations: 1.42 MB / 487.8 MB, free: 14.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.949e-06/0.607, allocations: 4 kB / 487.8 MB, free: 14.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009694/0.608, allocations: 115.8 kB / 487.9 MB, free: 14.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001523/0.6082, allocations: 29.19 kB / 488 MB, free: 14.17 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.84e-05/0.6082, allocations: 20.02 kB / 488 MB, free: 14.15 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001341/0.6096, allocations: 1.276 MB / 489.2 MB, free: 12.74 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.124e-06/0.6096, allocations: 4 kB / 489.3 MB, free: 12.74 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001977/0.6116, allocations: 0.9117 MB / 490.2 MB, free: 11.7 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00021/0.6119, allocations: 136.2 kB / 490.3 MB, free: 11.55 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001037/0.612, allocations: 19.94 kB / 490.3 MB, free: 11.53 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003556/0.6124, allocations: 16 kB / 490.3 MB, free: 11.52 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001148/0.6125, allocations: 35.95 kB / 490.4 MB, free: 11.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.227e-05/0.6125, allocations: 16 kB / 490.4 MB, free: 11.46 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007086/0.6133, allocations: 359.1 kB / 490.7 MB, free: 11.12 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.6133, allocations: 0 / 490.7 MB, free: 11.12 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001028/0.6143, allocations: 144 kB / 490.9 MB, free: 10.98 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.002721/0.6171, allocations: 2.221 MB / 493.1 MB, free: 8.652 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001603/0.6187, allocations: 0.5769 MB / 493.7 MB, free: 8.066 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.911e-06/0.6188, allocations: 0 / 493.7 MB, free: 8.066 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007089/0.6195, allocations: 306.8 kB / 494 MB, free: 7.754 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007893/0.6203, allocations: 91.25 kB / 494.1 MB, free: 7.668 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2756/0.8959, allocations: 11.05 MB / 0.4933 GB, free: 104 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005614/0.8965, allocations: 0.9795 MB / 0.4942 GB, free: 103.3 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006263/0.8972, allocations: 336.7 kB / 0.4945 GB, free: 103.3 MB / 378.7 MB Notification: Performance of SimCode: time 1.082e-06/0.8972, allocations: 5.656 kB / 0.4946 GB, free: 103.3 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.809/3.706, allocations: 15.21 MB / 0.5094 GB, free: 99.79 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat