Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.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.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",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.001362/0.001362, allocations: 180.6 kB / 16.39 MB, free: 5.762 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.45/1.45, allocations: 223.2 MB / 240.3 MB, free: 10.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001196/0.001196, allocations: 95.27 kB / 291.5 MB, free: 10.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002605/0.0002605, allocations: 8 kB / 351.2 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2246/0.2249, allocations: 50.41 MB / 401.6 MB, free: 32.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1003/0.3252, allocations: 83.04 MB / 484.6 MB, free: 13.36 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002713/0.3255, allocations: 80.48 kB / 484.7 MB, free: 13.29 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03654/0.3621, allocations: 14.67 MB / 499.4 MB, free: 14.38 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.777e-06/0.3621, allocations: 0 / 499.4 MB, free: 14.38 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.253e-05/0.3622, allocations: 23.98 kB / 499.4 MB, free: 14.36 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.001714/0.3639, allocations: 0.9782 MB / 0.4886 GB, free: 13.33 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.787e-05/0.364, allocations: 8.031 kB / 0.4886 GB, free: 13.32 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001702/0.3642, allocations: 134.9 kB / 0.4888 GB, free: 13.18 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001711/0.3644, allocations: 106.8 kB / 0.4889 GB, free: 13.07 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009303/0.3653, allocations: 0.516 MB / 0.4894 GB, free: 12.52 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.679e-05/0.3654, allocations: 58 kB / 0.4894 GB, free: 12.46 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001143/0.3655, allocations: 80 kB / 0.4895 GB, free: 12.38 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001486/0.367, allocations: 0.8364 MB / 0.4903 GB, free: 11.44 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.347e-05/0.3671, allocations: 7.906 kB / 0.4903 GB, free: 11.43 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.576e-05/0.3671, allocations: 43.95 kB / 0.4904 GB, free: 11.39 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.124e-05/0.3672, allocations: 23.94 kB / 0.4904 GB, free: 11.36 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000869/0.368, allocations: 467.3 kB / 0.4908 GB, free: 10.9 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004248/0.3723, allocations: 4.396 MB / 0.4951 GB, free: 6.312 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006159/0.3729, allocations: 303.5 kB / 0.4954 GB, free: 6.008 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002395/0.3732, allocations: 170.6 kB / 0.4956 GB, free: 5.805 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.051e-05/0.3732, allocations: 34.94 kB / 0.4956 GB, free: 5.762 MB / 378.7 MB Notification: Performance of pre-optimization done (n=46): time 2.955e-06/0.3732, allocations: 0 / 0.4956 GB, free: 5.762 MB / 378.7 MB Notification: Performance of matching and sorting (n=57): time 0.003359/0.3766, allocations: 1.735 MB / 0.4973 GB, free: 3.941 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.941e-05/0.3767, allocations: 63.92 kB / 0.4974 GB, free: 3.867 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005522/0.3772, allocations: 471.3 kB / 0.4978 GB, free: 3.402 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.954e-05/0.3773, allocations: 33.7 kB / 0.4979 GB, free: 3.363 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003389/0.3776, allocations: 482.4 kB / 0.4983 GB, free: 2.883 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000155/0.3778, allocations: 209 kB / 0.4985 GB, free: 2.676 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.416e-05/0.3778, allocations: 16 kB / 0.4985 GB, free: 2.66 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001847/0.378, allocations: 382.8 kB / 0.4989 GB, free: 2.277 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002793/0.3783, allocations: 161.9 kB / 0.499 GB, free: 2.117 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004931/0.3788, allocations: 463.1 kB / 0.4995 GB, free: 1.535 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003868/0.3792, allocations: 236.7 kB / 0.4997 GB, free: 1.301 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.3792, allocations: 0 / 0.4997 GB, free: 1.301 MB / 378.7 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001085/0.3803, allocations: 0.7418 MB / 0.5004 GB, free: 0.5469 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.369e-05/0.3803, allocations: 8 kB / 0.5004 GB, free: 0.5391 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.416e-05/0.3803, allocations: 12 kB / 0.5005 GB, free: 0.5273 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001949/0.3805, allocations: 44.84 kB / 0.5005 GB, free: 492 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005847/0.3811, allocations: 184.3 kB / 0.5007 GB, free: 308 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2109/0.592, allocations: 1.515 MB / 0.5022 GB, free: 93.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005548/0.5926, allocations: 29.02 kB / 0.5022 GB, free: 93.54 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001076/0.5928, allocations: 37.02 kB / 0.5022 GB, free: 93.54 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.0004724/0.5932, allocations: 233.4 kB / 0.5024 GB, free: 93.43 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000136/0.5934, allocations: 71.06 kB / 0.5025 GB, free: 93.43 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001599/0.5935, allocations: 77.97 kB / 0.5026 GB, free: 93.41 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.09e-05/0.5936, allocations: 5.906 kB / 0.5026 GB, free: 93.41 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-06/0.5936, allocations: 1.031 kB / 0.5026 GB, free: 93.41 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.896e-06/0.5936, allocations: 4.594 kB / 0.5026 GB, free: 93.41 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002192/0.5958, allocations: 1.42 MB / 0.504 GB, free: 92.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.494e-06/0.5958, allocations: 3.312 kB / 0.504 GB, free: 92.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005039/0.5963, allocations: 118 kB / 0.5041 GB, free: 92.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.937e-05/0.5964, allocations: 29.41 kB / 0.5041 GB, free: 92.94 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.671e-05/0.5965, allocations: 16.41 kB / 0.5041 GB, free: 92.94 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000631/0.5971, allocations: 1.279 MB / 0.5054 GB, free: 91.69 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.234e-06/0.5971, allocations: 3.5 kB / 0.5054 GB, free: 91.69 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009764/0.5981, allocations: 0.9053 MB / 0.5063 GB, free: 91.29 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001169/0.5982, allocations: 139 kB / 0.5064 GB, free: 91.19 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.734e-05/0.5983, allocations: 14.12 kB / 0.5064 GB, free: 91.19 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000211/0.5985, allocations: 16.84 kB / 0.5064 GB, free: 91.19 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001032/0.5986, allocations: 45.94 kB / 0.5065 GB, free: 91.19 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.603e-05/0.5987, allocations: 16.84 kB / 0.5065 GB, free: 91.19 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000505/0.5992, allocations: 356.8 kB / 0.5068 GB, free: 91.09 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5992, allocations: 5.875 kB / 0.5068 GB, free: 91.09 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006746/0.5999, allocations: 141.8 kB / 0.507 GB, free: 91.09 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.001468/0.6014, allocations: 2.224 MB / 0.5092 GB, free: 89.37 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008048/0.6022, allocations: 0.5838 MB / 0.5097 GB, free: 89.24 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.6022, allocations: 0 / 0.5097 GB, free: 89.24 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003071/0.6025, allocations: 313.2 kB / 0.51 GB, free: 89.13 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000431/0.6029, allocations: 94.5 kB / 0.5101 GB, free: 89.13 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005621/0.6086, allocations: 11.01 MB / 0.5209 GB, free: 80.52 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003364/0.6089, allocations: 0.9847 MB / 0.5218 GB, free: 79.81 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002719/0.6092, allocations: 87.19 kB / 0.5219 GB, free: 79.79 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000291/0.6095, allocations: 325.3 kB / 0.5222 GB, free: 79.78 MB / 378.7 MB Notification: Performance of SimCode: time 8.11e-07/0.6095, allocations: 3.969 kB / 0.5222 GB, free: 79.78 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02248/0.632, allocations: 11.54 MB / 0.5335 GB, free: 75.22 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001299/0.6322, allocations: 208.5 kB / 0.5337 GB, free: 74.98 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.412/3.044, allocations: 0 / 0.5337 GB, free: 74.98 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat