Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_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.001174/0.001174, allocations: 181.2 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.409/1.409, allocations: 205.4 MB / 223.1 MB, free: 9.121 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.0009122/0.0009122, allocations: 92.09 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000346/0.0003463, allocations: 8 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2845/0.2849, allocations: 47.57 MB / 375.9 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1075/0.3924, allocations: 81.95 MB / 457.9 MB, free: 14.69 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002429/0.3927, allocations: 83.89 kB / 457.9 MB, free: 14.61 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03513/0.4278, allocations: 14.45 MB / 472.4 MB, free: 15.91 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.724e-06/0.4279, allocations: 0 / 472.4 MB, free: 15.91 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.777e-05/0.428, allocations: 27.98 kB / 472.4 MB, free: 15.89 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.001552/0.4295, allocations: 0.978 MB / 473.4 MB, free: 14.86 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.381e-05/0.4296, allocations: 8.031 kB / 473.4 MB, free: 14.85 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001487/0.4297, allocations: 130.9 kB / 473.5 MB, free: 14.71 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001664/0.4299, allocations: 102.8 kB / 473.6 MB, free: 14.61 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007861/0.4307, allocations: 0.516 MB / 474.1 MB, free: 14.05 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.887e-05/0.4308, allocations: 61.95 kB / 474.2 MB, free: 13.99 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001014/0.4309, allocations: 80 kB / 474.3 MB, free: 13.91 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001269/0.4322, allocations: 0.8368 MB / 475.1 MB, free: 12.97 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.482e-05/0.4322, allocations: 11.84 kB / 475.1 MB, free: 12.96 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.986e-05/0.4323, allocations: 36 kB / 475.2 MB, free: 12.92 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.258e-05/0.4323, allocations: 20 kB / 475.2 MB, free: 12.9 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008359/0.4332, allocations: 475.3 kB / 475.6 MB, free: 12.43 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003991/0.4372, allocations: 4.401 MB / 480 MB, free: 7.84 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005517/0.4377, allocations: 299.3 kB / 480.3 MB, free: 7.539 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000227/0.438, allocations: 182.5 kB / 480.5 MB, free: 7.324 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.9e-05/0.438, allocations: 38.94 kB / 480.6 MB, free: 7.277 MB / 362.7 MB Notification: Performance of pre-optimization done (n=46): time 2.866e-06/0.438, allocations: 0 / 480.6 MB, free: 7.277 MB / 362.7 MB Notification: Performance of matching and sorting (n=57): time 0.003185/0.4412, allocations: 1.732 MB / 482.3 MB, free: 5.449 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.825e-05/0.4413, allocations: 55.97 kB / 482.3 MB, free: 5.383 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005281/0.4418, allocations: 471.3 kB / 482.8 MB, free: 4.918 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.463e-05/0.4418, allocations: 37.7 kB / 482.8 MB, free: 4.875 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003047/0.4422, allocations: 478.4 kB / 483.3 MB, free: 4.398 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000154/0.4423, allocations: 209.1 kB / 483.5 MB, free: 4.191 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.693e-05/0.4423, allocations: 20 kB / 483.5 MB, free: 4.172 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001785/0.4425, allocations: 382.8 kB / 483.9 MB, free: 3.789 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002702/0.4428, allocations: 157.9 kB / 484.1 MB, free: 3.633 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004757/0.4433, allocations: 455.2 kB / 484.5 MB, free: 3.059 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003575/0.4437, allocations: 232.7 kB / 484.7 MB, free: 2.832 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.01e-06/0.4437, allocations: 4 kB / 484.7 MB, free: 2.828 MB / 362.7 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001069/0.4447, allocations: 0.7384 MB / 485.5 MB, free: 2.078 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.866e-05/0.4448, allocations: 17.03 kB / 485.5 MB, free: 2.062 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.294e-05/0.4448, allocations: 8.094 kB / 485.5 MB, free: 2.055 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001544/0.445, allocations: 52.84 kB / 485.5 MB, free: 2 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005589/0.4455, allocations: 187.7 kB / 485.7 MB, free: 1.816 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001327/0.4469, allocations: 1.522 MB / 487.3 MB, free: 164 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000278/0.4472, allocations: 28 kB / 487.3 MB, free: 136 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.518e-05/0.4472, allocations: 40 kB / 487.3 MB, free: 96 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.0003508/0.4476, allocations: 229.6 kB / 487.5 MB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.092e-05/0.4477, allocations: 71.06 kB / 487.6 MB, free: 15.79 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001368/0.4478, allocations: 79.09 kB / 487.7 MB, free: 15.71 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.4478, allocations: 8 kB / 487.7 MB, free: 15.7 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.165e-05/0.4478, allocations: 7.938 kB / 487.7 MB, free: 15.7 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.618e-06/0.4479, allocations: 3.938 kB / 487.7 MB, free: 15.69 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001813/0.4497, allocations: 1.404 MB / 489.1 MB, free: 14.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.367e-06/0.4497, allocations: 4 kB / 489.1 MB, free: 14.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004819/0.4502, allocations: 119.8 kB / 489.2 MB, free: 14.06 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.778e-05/0.4503, allocations: 24.86 kB / 489.3 MB, free: 14.03 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.677e-05/0.4503, allocations: 19.94 kB / 489.3 MB, free: 14.01 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008691/0.4512, allocations: 1.288 MB / 490.6 MB, free: 12.59 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/0.4512, allocations: 4 kB / 490.6 MB, free: 12.59 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001181/0.4524, allocations: 0.908 MB / 491.5 MB, free: 11.55 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001153/0.4525, allocations: 132.3 kB / 491.6 MB, free: 11.41 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.116e-05/0.4526, allocations: 23.95 kB / 491.6 MB, free: 11.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001948/0.4528, allocations: 19.98 kB / 491.7 MB, free: 11.36 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.423e-05/0.4529, allocations: 39.95 kB / 491.7 MB, free: 11.32 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.375e-05/0.4529, allocations: 12 kB / 491.7 MB, free: 11.31 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003687/0.4533, allocations: 359.1 kB / 492.1 MB, free: 10.96 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4533, allocations: 4 kB / 492.1 MB, free: 10.96 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006234/0.4539, allocations: 136 kB / 492.2 MB, free: 10.83 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.001679/0.4556, allocations: 2.233 MB / 494.4 MB, free: 8.492 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009131/0.4565, allocations: 0.5761 MB / 495 MB, free: 7.906 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.4565, allocations: 0 / 495 MB, free: 7.906 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003751/0.4569, allocations: 312 kB / 495.3 MB, free: 7.59 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004441/0.4574, allocations: 94.86 kB / 495.4 MB, free: 7.504 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2011/0.6585, allocations: 11 MB / 0.4945 GB, free: 104 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004984/0.6591, allocations: 0.9843 MB / 0.4955 GB, free: 103.3 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003151/0.6594, allocations: 86.28 kB / 0.4956 GB, free: 103.3 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003755/0.6598, allocations: 328.5 kB / 0.4959 GB, free: 103.3 MB / 378.7 MB Notification: Performance of SimCode: time 1.513e-06/0.6598, allocations: 0 / 0.4959 GB, free: 103.3 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02606/0.6859, allocations: 11.55 MB / 0.5072 GB, free: 101.9 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001493/0.6861, allocations: 210.1 kB / 0.5074 GB, free: 101.6 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.561/3.247, allocations: 4 kB / 0.5074 GB, free: 101.6 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat