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.0009857/0.0009853, allocations: 175.3 kB / 13.63 MB, free: 1.684 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.517/1.517, allocations: 221.3 MB / 235.5 MB, free: 2.973 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.0008757/0.0008758, allocations: 101.7 kB / 286.5 MB, free: 236 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.875e-05/2.889e-05, allocations: 4 kB / 343.9 MB, free: 4.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1102, allocations: 50.41 MB / 394.3 MB, free: 1.773 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4906/0.6009, allocations: 78.69 MB / 473 MB, free: 8.816 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003064/0.6012, allocations: 75.95 kB / 473.1 MB, free: 8.742 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01714/0.6184, allocations: 4.438 MB / 477.5 MB, free: 4.293 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.033e-06/0.6184, allocations: 4 kB / 477.5 MB, free: 4.289 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.333e-05/0.6185, allocations: 8 kB / 477.6 MB, free: 4.281 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.0008854/0.6194, allocations: 495.1 kB / 478 MB, free: 3.754 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.827e-05/0.6194, allocations: 12.03 kB / 478 MB, free: 3.742 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.596e-05/0.6195, allocations: 66.53 kB / 478.1 MB, free: 3.668 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.585e-05/0.6196, allocations: 27.62 kB / 478.1 MB, free: 3.641 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003525/0.62, allocations: 230.4 kB / 478.4 MB, free: 3.375 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.113e-05/0.62, allocations: 20.56 kB / 478.4 MB, free: 3.352 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.996e-05/0.6201, allocations: 31.98 kB / 478.4 MB, free: 3.32 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005671/0.6207, allocations: 208.9 kB / 478.6 MB, free: 3.109 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.604e-05/0.6207, allocations: 0 / 478.6 MB, free: 3.109 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.425e-05/0.6208, allocations: 12 kB / 478.6 MB, free: 3.098 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.297e-05/0.6208, allocations: 4 kB / 478.6 MB, free: 3.094 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004216/0.6212, allocations: 146.2 kB / 478.8 MB, free: 2.953 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001677/0.6229, allocations: 0.7655 MB / 479.5 MB, free: 2.129 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005742/0.6235, allocations: 194.8 kB / 479.7 MB, free: 1.93 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002444/0.6238, allocations: 101.5 kB / 479.8 MB, free: 1.828 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.712e-05/0.6238, allocations: 4 kB / 479.8 MB, free: 1.824 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.245e-05/0.6239, allocations: 38.5 kB / 479.9 MB, free: 1.777 MB / 346.7 MB Notification: Performance of pre-optimization done (n=26): time 2.715e-06/0.6239, allocations: 0 / 479.9 MB, free: 1.777 MB / 346.7 MB Notification: Performance of matching and sorting (n=28): time 0.001835/0.6257, allocations: 0.8295 MB / 480.7 MB, free: 0.8594 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.123e-05/0.6258, allocations: 55.34 kB / 480.8 MB, free: 0.793 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002149/0.626, allocations: 142.3 kB / 480.9 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.036e-05/0.6261, allocations: 33.7 kB / 480.9 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000131/0.6262, allocations: 144.3 kB / 481.1 MB, free: 472 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001045/0.6263, allocations: 102.5 kB / 481.2 MB, free: 368 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.504e-05/0.6263, allocations: 4 kB / 481.2 MB, free: 364 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001696/0.6265, allocations: 330.8 kB / 481.5 MB, free: 24 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001905/0.6267, allocations: 60.05 kB / 481.6 MB, free: 15.96 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000211/0.6269, allocations: 99.23 kB / 481.7 MB, free: 15.86 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001933/0.6272, allocations: 76.47 kB / 481.7 MB, free: 15.78 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.6272, allocations: 0 / 481.7 MB, free: 15.78 MB / 362.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005097/0.6277, allocations: 249.2 kB / 482 MB, free: 15.53 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.332e-05/0.6277, allocations: 4.938 kB / 482 MB, free: 15.53 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.6277, allocations: 0 / 482 MB, free: 15.53 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.627e-05/0.6278, allocations: 4 kB / 482 MB, free: 15.52 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004345/0.6282, allocations: 75.89 kB / 482.1 MB, free: 15.45 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.686e-05/0.6282, allocations: 12.05 kB / 482.1 MB, free: 15.44 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001951/0.6284, allocations: 15.98 kB / 482.1 MB, free: 15.42 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.31e-05/0.6285, allocations: 8 kB / 482.1 MB, free: 15.41 MB / 362.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 0.0001135/0.6286, allocations: 116.9 kB / 482.2 MB, free: 15.29 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.465e-05/0.6287, allocations: 19.81 kB / 482.2 MB, free: 15.27 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.773e-05/0.6288, allocations: 22.56 kB / 482.2 MB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.63e-06/0.6288, allocations: 4 kB / 482.2 MB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.6288, allocations: 4 kB / 482.3 MB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.568e-06/0.6288, allocations: 7.938 kB / 482.3 MB, free: 15.24 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001251/0.6301, allocations: 0.6213 MB / 482.9 MB, free: 14.55 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.66e-06/0.6301, allocations: 7.938 kB / 482.9 MB, free: 14.55 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004746/0.6306, allocations: 76.02 kB / 483 MB, free: 14.47 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.077e-05/0.6306, allocations: 7.953 kB / 483 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.315e-05/0.6306, allocations: 4 kB / 483 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.183e-06/0.6307, allocations: 4 kB / 483 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.6307, allocations: 7.875 kB / 483 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007588/0.6314, allocations: 424.9 kB / 483.4 MB, free: 14 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.266e-05/0.6315, allocations: 92.92 kB / 483.5 MB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.033e-05/0.6316, allocations: 4.062 kB / 483.5 MB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002199/0.6318, allocations: 15.98 kB / 483.5 MB, free: 13.87 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.485e-05/0.6319, allocations: 15.98 kB / 483.5 MB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.142e-05/0.632, allocations: 8.125 kB / 483.5 MB, free: 13.85 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000131/0.6321, allocations: 120.4 kB / 483.7 MB, free: 13.73 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6321, allocations: 4 kB / 483.7 MB, free: 13.73 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005047/0.6326, allocations: 63.98 kB / 483.7 MB, free: 13.66 MB / 362.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.001237/0.6339, allocations: 1.105 MB / 484.8 MB, free: 12.52 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000463/0.6343, allocations: 167.9 kB / 485 MB, free: 12.36 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.6344, allocations: 0 / 485 MB, free: 12.36 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001992/0.6346, allocations: 91.88 kB / 485.1 MB, free: 12.27 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004782/0.6351, allocations: 39.91 kB / 485.1 MB, free: 12.23 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001967/0.637, allocations: 0.7529 MB / 485.9 MB, free: 11.43 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004019/0.6375, allocations: 0.76 MB / 486.6 MB, free: 10.63 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001222/0.6376, allocations: 18.06 kB / 486.6 MB, free: 10.61 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001458/0.6377, allocations: 75.41 kB / 486.7 MB, free: 10.54 MB / 362.7 MB Notification: Performance of SimCode: time 9.82e-07/0.6378, allocations: 0 / 486.7 MB, free: 10.54 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02084/0.6586, allocations: 4.014 MB / 490.7 MB, free: 6.672 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003118/0.659, allocations: 159.9 kB / 490.9 MB, free: 6.449 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.855/2.514, allocations: 0 / 490.9 MB, free: 6.449 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