Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.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.Rotational.Examples.ElasticBearing,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_ElasticBearing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.ElasticBearing,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_ElasticBearing",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.001236/0.001236, allocations: 176.2 kB / 8.348 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.474/1.474, allocations: 221.5 MB / 230.3 MB, free: 7.562 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.000952/0.0009518, allocations: 90.06 kB / 281.2 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.71e-05/1.713e-05, allocations: 4 kB / 337.1 MB, free: 9.945 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1013, allocations: 50.42 MB / 387.6 MB, free: 7.484 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3517/0.453, allocations: 78.02 MB / 465.6 MB, free: 0.6914 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001782/0.4532, allocations: 75.95 kB / 465.7 MB, free: 0.6172 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01174/0.465, allocations: 4.402 MB / 470.1 MB, free: 12.2 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.465, allocations: 0 / 470.1 MB, free: 12.2 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.477e-05/0.4651, allocations: 4 kB / 470.1 MB, free: 12.2 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.0006407/0.4657, allocations: 0.4915 MB / 470.6 MB, free: 11.66 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.854e-05/0.4657, allocations: 8.031 kB / 470.6 MB, free: 11.66 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.767e-05/0.4658, allocations: 31.62 kB / 470.6 MB, free: 11.62 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00023/0.466, allocations: 219.3 kB / 470.8 MB, free: 11.37 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.486e-05/0.4661, allocations: 8 kB / 470.8 MB, free: 11.36 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.054e-05/0.4661, allocations: 16 kB / 470.8 MB, free: 11.34 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002719/0.4664, allocations: 141 kB / 471 MB, free: 11.2 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003114/0.4667, allocations: 171.8 kB / 471.1 MB, free: 11.03 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.811e-05/0.4667, allocations: 8.75 kB / 471.1 MB, free: 11.02 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.879e-05/0.4668, allocations: 0 / 471.1 MB, free: 11.02 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.324e-06/0.4668, allocations: 4 kB / 471.1 MB, free: 11.02 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001046/0.4678, allocations: 0.7025 MB / 471.8 MB, free: 10.27 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000364/0.4682, allocations: 186.8 kB / 472 MB, free: 10.08 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001381/0.4684, allocations: 86.97 kB / 472.1 MB, free: 9.992 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.588e-05/0.4684, allocations: 11.98 kB / 472.1 MB, free: 9.98 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.494e-05/0.4684, allocations: 38.44 kB / 472.2 MB, free: 9.934 MB / 346.7 MB Notification: Performance of pre-optimization done (n=26): time 3.717e-06/0.4684, allocations: 7.984 kB / 472.2 MB, free: 9.926 MB / 346.7 MB Notification: Performance of matching and sorting (n=28): time 0.001221/0.4697, allocations: 0.7582 MB / 472.9 MB, free: 9.078 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.939e-05/0.4697, allocations: 55.41 kB / 473 MB, free: 9.012 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001277/0.4699, allocations: 134.8 kB / 473.1 MB, free: 8.875 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.053e-05/0.4699, allocations: 25.7 kB / 473.1 MB, free: 8.844 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.179e-05/0.47, allocations: 148.2 kB / 473.3 MB, free: 8.695 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.09e-05/0.4701, allocations: 94.56 kB / 473.4 MB, free: 8.602 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.137e-06/0.4701, allocations: 0 / 473.4 MB, free: 8.602 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.4702, allocations: 330.8 kB / 473.7 MB, free: 8.27 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.575e-05/0.4703, allocations: 52 kB / 473.8 MB, free: 8.219 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001376/0.4705, allocations: 91.42 kB / 473.8 MB, free: 8.117 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001237/0.4706, allocations: 68.48 kB / 473.9 MB, free: 8.051 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.4706, allocations: 0 / 473.9 MB, free: 8.051 MB / 346.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003168/0.4709, allocations: 213.8 kB / 474.1 MB, free: 7.836 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.264e-05/0.471, allocations: 8 kB / 474.1 MB, free: 7.828 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.288e-06/0.471, allocations: 0 / 474.1 MB, free: 7.828 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.176e-05/0.471, allocations: 4 kB / 474.1 MB, free: 7.824 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003122/0.4713, allocations: 79.98 kB / 474.2 MB, free: 7.746 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.4714, allocations: 0 / 474.2 MB, free: 7.746 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001226/0.4715, allocations: 15.92 kB / 474.2 MB, free: 7.73 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.989e-05/0.4715, allocations: 15.95 kB / 474.2 MB, free: 7.715 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.507e-05/0.4716, allocations: 101 kB / 474.3 MB, free: 7.609 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000288/0.4719, allocations: 181.8 kB / 474.5 MB, free: 7.426 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.632e-05/0.472, allocations: 19.81 kB / 474.5 MB, free: 7.406 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.602e-05/0.472, allocations: 21.97 kB / 474.6 MB, free: 7.387 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.632e-06/0.4721, allocations: 8 kB / 474.6 MB, free: 7.379 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/0.4721, allocations: 3.953 kB / 474.6 MB, free: 7.375 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.4721, allocations: 3.984 kB / 474.6 MB, free: 7.371 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008279/0.4729, allocations: 0.5605 MB / 475.1 MB, free: 6.762 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.167e-06/0.4729, allocations: 4.031 kB / 475.1 MB, free: 6.758 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003425/0.4733, allocations: 75.89 kB / 475.2 MB, free: 6.684 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.152e-06/0.4733, allocations: 4 kB / 475.2 MB, free: 6.68 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.262e-05/0.4733, allocations: 3.953 kB / 475.2 MB, free: 6.676 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.332e-06/0.4733, allocations: 11.92 kB / 475.2 MB, free: 6.664 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.4733, allocations: 0 / 475.2 MB, free: 6.664 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00058/0.4739, allocations: 408.9 kB / 475.6 MB, free: 6.227 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.181e-05/0.474, allocations: 88.92 kB / 475.7 MB, free: 6.121 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.084e-05/0.4741, allocations: 0 / 475.7 MB, free: 6.121 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001462/0.4742, allocations: 11.98 kB / 475.7 MB, free: 6.109 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.159e-05/0.4743, allocations: 15.98 kB / 475.7 MB, free: 6.094 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.599e-05/0.4743, allocations: 12.06 kB / 475.8 MB, free: 6.082 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.006e-05/0.4744, allocations: 110.7 kB / 475.9 MB, free: 5.977 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.4744, allocations: 0 / 475.9 MB, free: 5.977 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003211/0.4748, allocations: 52 kB / 475.9 MB, free: 5.926 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (shaft.phi,shaft.w,load.phi,load.w,springDamper.phi_rel,springDamper.w_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 28 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001033/0.4758, allocations: 1.07 MB / 477 MB, free: 4.816 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003297/0.4761, allocations: 160.7 kB / 477.1 MB, free: 4.66 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.594e-06/0.4762, allocations: 0 / 477.1 MB, free: 4.66 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001267/0.4763, allocations: 88.03 kB / 477.2 MB, free: 4.574 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003953/0.4767, allocations: 32.28 kB / 477.3 MB, free: 4.543 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001604/0.4783, allocations: 0.7357 MB / 478 MB, free: 3.758 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004445/0.4788, allocations: 0.7596 MB / 478.8 MB, free: 2.969 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 9.659e-05/0.4789, allocations: 22.06 kB / 478.8 MB, free: 2.949 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001184/0.479, allocations: 71.42 kB / 478.8 MB, free: 2.879 MB / 346.7 MB Notification: Performance of SimCode: time 3.71e-07/0.479, allocations: 0 / 478.8 MB, free: 2.879 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02608/0.5051, allocations: 3.543 MB / 482.4 MB, free: 15.36 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002238/0.5054, allocations: 146 kB / 482.5 MB, free: 15.17 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.764/2.269, allocations: 4 kB / 482.5 MB, free: 15.16 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_ElasticBearing_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_ElasticBearing.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat does not exist to compare? outputFormat=mat