Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",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.001062/0.001062, allocations: 176.6 kB / 17.06 MB, free: 5.098 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.301/1.301, allocations: 223.2 MB / 241 MB, free: 11.87 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.001119/0.001119, allocations: 89.27 kB / 292.1 MB, free: 10.91 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3756/0.3756, allocations: 44.21 MB / 387.5 MB, free: 38.78 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003137/0.0003135, allocations: 8 kB / 460 MB, free: 1.441 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3497/0.35, allocations: 61.9 MB / 0.5096 GB, free: 37.95 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1512/0.5013, allocations: 108.6 MB / 0.6157 GB, free: 2.488 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002922/0.5016, allocations: 83.92 kB / 0.6158 GB, free: 2.41 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.53/1.032, allocations: 77.81 MB / 0.6918 GB, free: 97.43 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.156e-06/1.032, allocations: 0 / 0.6918 GB, free: 97.43 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.000178/1.032, allocations: 72.81 kB / 0.6918 GB, free: 97.43 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1319 * Number of variables: 1319 Notification: Performance of Generate backend data structure: time 0.0109/1.043, allocations: 3.841 MB / 0.6956 GB, free: 95.72 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.242e-05/1.043, allocations: 11.06 kB / 0.6956 GB, free: 95.72 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001514/1.044, allocations: 0.6689 MB / 0.6962 GB, free: 95.65 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01574/1.06, allocations: 4.322 MB / 0.7005 GB, free: 95.4 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01379/1.074, allocations: 4.348 MB / 0.7047 GB, free: 94.85 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003354/1.074, allocations: 276.4 kB / 0.705 GB, free: 94.84 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001879/1.076, allocations: 372 kB / 0.7053 GB, free: 94.83 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02152/1.098, allocations: 9.15 MB / 0.7143 GB, free: 92.11 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002066/1.098, allocations: 60.97 kB / 0.7143 GB, free: 92.11 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006204/1.099, allocations: 187.5 kB / 0.7145 GB, free: 92.11 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001433/1.1, allocations: 0.885 MB / 0.7154 GB, free: 92.09 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01477/1.115, allocations: 7.329 MB / 0.7225 GB, free: 90 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03656/1.151, allocations: 44.13 MB / 0.7656 GB, free: 55.18 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008205/1.16, allocations: 3.506 MB / 0.769 GB, free: 53.75 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01085/1.171, allocations: 7.172 MB / 0.776 GB, free: 49.73 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.595e-05/1.171, allocations: 54.69 kB / 0.7761 GB, free: 49.67 MB / 490.7 MB Notification: Performance of pre-optimization done (n=151): time 5.971e-06/1.171, allocations: 0 / 0.7761 GB, free: 49.67 MB / 490.7 MB Notification: Performance of matching and sorting (n=188): time 0.05462/1.225, allocations: 19.33 MB / 0.795 GB, free: 41.37 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001019/1.226, allocations: 201.2 kB / 0.7952 GB, free: 41.13 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0043/1.23, allocations: 3.311 MB / 0.7984 GB, free: 38.34 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002393/1.23, allocations: 49.7 kB / 0.7984 GB, free: 38.29 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001327/1.231, allocations: 2.832 MB / 0.8012 GB, free: 35.74 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005486/1.232, allocations: 0.7198 MB / 0.8019 GB, free: 35.11 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002101/1.232, allocations: 116 kB / 0.802 GB, free: 35 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002568/1.232, allocations: 0.5547 MB / 0.8026 GB, free: 34.5 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002287/1.235, allocations: 1.979 MB / 0.8045 GB, free: 32.83 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003679/1.238, allocations: 5.527 MB / 0.8099 GB, free: 25.93 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00368/1.242, allocations: 3.25 MB / 0.8131 GB, free: 23.02 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.654e-05/1.242, allocations: 40 kB / 0.8131 GB, free: 22.98 MB / 490.7 MB Notification: Performance of matching and sorting (n=765) (initialization): time 0.01752/1.26, allocations: 8.57 MB / 0.8215 GB, free: 15.65 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.245e-05/1.26, allocations: 60 kB / 0.8215 GB, free: 15.59 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001707/1.26, allocations: 124 kB / 0.8217 GB, free: 15.47 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005484/1.266, allocations: 1.506 MB / 0.8231 GB, free: 14.19 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004493/1.27, allocations: 1.283 MB / 0.8244 GB, free: 12.91 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01372/1.284, allocations: 8.41 MB / 0.8326 GB, free: 4.375 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008149/1.292, allocations: 315.5 kB / 0.8329 GB, free: 4.066 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001612/1.294, allocations: 352 kB / 0.8332 GB, free: 3.723 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 572 * Number of states: 0 () * Number of discrete variables: 36 (FixedTranslation2.color[3],FixedTranslation2.color[2],FixedTranslation2.color[1],force.massColor[3],force.massColor[2],force.massColor[1],force.color_b[3],force.color_b[2],force.color_b[1],force.color_a[3],force.color_a[2],force.color_a[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (697): * Single equations (assignments): 693 * Array equations: 3 * 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%) 44} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005678/1.299, allocations: 1.887 MB / 0.8351 GB, free: 1.824 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001162/1.301, allocations: 335.7 kB / 0.8354 GB, free: 1.492 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01356/1.314, allocations: 3.669 MB / 0.839 GB, free: 13.81 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.251e-05/1.314, allocations: 20 kB / 0.839 GB, free: 13.79 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.218e-05/1.314, allocations: 8 kB / 0.839 GB, free: 13.78 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.109e-05/1.314, allocations: 11.97 kB / 0.839 GB, free: 13.77 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02466/1.339, allocations: 7.944 MB / 0.8468 GB, free: 5.809 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.24e-05/1.339, allocations: 2.75 kB / 0.8468 GB, free: 5.809 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002053/1.341, allocations: 239.7 kB / 0.847 GB, free: 5.574 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008501/1.35, allocations: 1.276 MB / 0.8482 GB, free: 4.293 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005529/1.35, allocations: 35.7 kB / 0.8483 GB, free: 4.262 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01871/1.369, allocations: 7.663 MB / 0.8558 GB, free: 12.46 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/1.369, allocations: 3.984 kB / 0.8558 GB, free: 12.46 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01903/1.388, allocations: 6.11 MB / 0.8617 GB, free: 6.312 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001835/1.39, allocations: 376.7 kB / 0.8621 GB, free: 5.922 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001271/1.391, allocations: 31.98 kB / 0.8621 GB, free: 5.891 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00301/1.394, allocations: 91.86 kB / 0.8622 GB, free: 5.801 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006624/1.395, allocations: 116.8 kB / 0.8623 GB, free: 5.688 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002243/1.395, allocations: 51.81 kB / 0.8624 GB, free: 5.641 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.006716/1.402, allocations: 2.297 MB / 0.8646 GB, free: 3.359 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.02e-07/1.402, allocations: 0 / 0.8646 GB, free: 3.359 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009949/1.412, allocations: 0.9726 MB / 0.8656 GB, free: 2.387 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (revolute.phi,revolute.w) * 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 (130): * Single equations (assignments): 126 * Array equations: 3 * 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%) 36} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02006/1.432, allocations: 6.933 MB / 0.8723 GB, free: 11.41 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0132/1.445, allocations: 4.959 MB / 0.8772 GB, free: 6.469 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.08e-05/1.446, allocations: 1.812 kB / 0.8772 GB, free: 6.469 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.00402/1.45, allocations: 1.624 MB / 0.8788 GB, free: 4.832 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00335/1.453, allocations: 363 kB / 0.8791 GB, free: 4.48 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3822/1.835, allocations: 118.2 MB / 0.9945 GB, free: 31.56 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004569/1.84, allocations: 3.04 MB / 0.9975 GB, free: 30.78 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.005959/1.846, allocations: 1.825 MB / 0.9992 GB, free: 30.66 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003347/1.849, allocations: 1.647 MB / 1.001 GB, free: 30.64 MB / 0.5261 GB Notification: Performance of SimCode: time 9.32e-07/1.849, allocations: 0 / 1.001 GB, free: 30.64 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.137/1.986, allocations: 73.94 MB / 1.073 GB, free: 2.637 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001937/1.986, allocations: 207.1 kB / 1.073 GB, free: 2.391 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.503/6.49, allocations: 0 / 1.073 GB, free: 2.391 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat does not exist to compare? outputFormat=mat