Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",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.002395/0.002394, allocations: 181.6 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.154/2.154, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001129/0.001128, allocations: 82.7 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2842/0.2842, allocations: 43.49 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.621e-05/3.649e-05, allocations: 4 kB / 425.4 MB, free: 23.28 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1179, allocations: 58.86 MB / 484.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5154/0.6334, allocations: 106.7 MB / 0.5771 GB, free: 12.76 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002837/0.6337, allocations: 76.78 kB / 0.5771 GB, free: 12.73 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3474/0.9811, allocations: 76.77 MB / 0.6521 GB, free: 8.125 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.996e-06/0.9812, allocations: 0 / 0.6521 GB, free: 8.125 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002895/0.9815, allocations: 68 kB / 0.6522 GB, free: 8.059 MB / 458.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.01529/0.9968, allocations: 3.605 MB / 0.6557 GB, free: 4.395 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.986e-05/0.9969, allocations: 16.03 kB / 0.6557 GB, free: 4.379 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003229/1, allocations: 0.6638 MB / 0.6564 GB, free: 3.703 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03353/1.034, allocations: 4.332 MB / 0.6606 GB, free: 15.36 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01933/1.053, allocations: 4.472 MB / 0.6649 GB, free: 10.82 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004343/1.054, allocations: 267.1 kB / 0.6652 GB, free: 10.56 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002184/1.056, allocations: 371.7 kB / 0.6656 GB, free: 10.2 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0292/1.085, allocations: 9.089 MB / 0.6744 GB, free: 100 kB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003092/1.085, allocations: 75.39 kB / 0.6745 GB, free: 24 kB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001707/1.087, allocations: 175.9 kB / 0.6747 GB, free: 15.85 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002311/1.089, allocations: 0.8806 MB / 0.6755 GB, free: 14.97 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02502/1.115, allocations: 7.221 MB / 0.6826 GB, free: 7.742 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4348/1.549, allocations: 44.13 MB / 0.7257 GB, free: 95.38 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01618/1.566, allocations: 3.483 MB / 0.7291 GB, free: 94.71 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003895/1.57, allocations: 1.586 MB / 0.7306 GB, free: 94.67 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02028/1.59, allocations: 7.205 MB / 0.7377 GB, free: 92.6 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.033e-05/1.59, allocations: 50.66 kB / 0.7377 GB, free: 92.56 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=151): time 5.781e-06/1.59, allocations: 0 / 0.7377 GB, free: 92.56 MB / 0.4948 GB Notification: Performance of matching and sorting (n=188): time 0.09097/1.681, allocations: 16.23 MB / 0.7536 GB, free: 89.91 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001082/1.681, allocations: 200.8 kB / 0.7538 GB, free: 89.69 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008726/1.69, allocations: 3.291 MB / 0.757 GB, free: 89.37 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0004822/1.69, allocations: 52.55 kB / 0.757 GB, free: 89.34 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002754/1.693, allocations: 2.78 MB / 0.7597 GB, free: 87.83 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001232/1.695, allocations: 0.7062 MB / 0.7604 GB, free: 87.43 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008405/1.695, allocations: 118.1 kB / 0.7605 GB, free: 87.43 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0005581/1.696, allocations: 0.5605 MB / 0.7611 GB, free: 87.1 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005078/1.701, allocations: 1.935 MB / 0.763 GB, free: 87.09 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007642/1.709, allocations: 5.476 MB / 0.7683 GB, free: 81.99 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007453/1.716, allocations: 3.239 MB / 0.7715 GB, free: 81.05 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001261/1.716, allocations: 36.78 kB / 0.7715 GB, free: 81.05 MB / 0.4948 GB Notification: Performance of matching and sorting (n=765) (initialization): time 0.0279/1.744, allocations: 8.333 MB / 0.7797 GB, free: 78.62 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001062/1.745, allocations: 57.72 kB / 0.7797 GB, free: 78.62 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002008/1.745, allocations: 128 kB / 0.7798 GB, free: 78.62 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009222/1.754, allocations: 1.463 MB / 0.7813 GB, free: 78.39 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007984/1.762, allocations: 1.292 MB / 0.7825 GB, free: 78.23 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01909/1.781, allocations: 8.013 MB / 0.7904 GB, free: 74.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006536/1.788, allocations: 305.8 kB / 0.7906 GB, free: 74.19 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001397/1.789, allocations: 358 kB / 0.791 GB, free: 74.14 MB / 0.4948 GB 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 () * 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.001481/1.791, allocations: 0.5532 MB / 0.7915 GB, free: 73.68 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00093/1.792, allocations: 344.3 kB / 0.7919 GB, free: 73.49 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01414/1.806, allocations: 3.589 MB / 0.7954 GB, free: 72.28 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.243e-05/1.806, allocations: 28.17 kB / 0.7954 GB, free: 72.28 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.904e-05/1.806, allocations: 7.5 kB / 0.7954 GB, free: 72.28 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.551e-05/1.806, allocations: 10.5 kB / 0.7954 GB, free: 72.28 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02902/1.835, allocations: 7.885 MB / 0.8031 GB, free: 67.22 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.355e-05/1.835, allocations: 0 / 0.8031 GB, free: 67.22 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002401/1.838, allocations: 243.8 kB / 0.8033 GB, free: 67.02 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008307/1.846, allocations: 1.226 MB / 0.8045 GB, free: 66.2 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000387/1.846, allocations: 35.7 kB / 0.8046 GB, free: 66.16 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01665/1.863, allocations: 7.288 MB / 0.8117 GB, free: 59.77 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.828e-06/1.863, allocations: 3.828 kB / 0.8117 GB, free: 59.77 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01788/1.881, allocations: 6.023 MB / 0.8176 GB, free: 54.61 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002191/1.883, allocations: 0.6067 MB / 0.8182 GB, free: 54.03 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008315/1.884, allocations: 32 kB / 0.8182 GB, free: 54 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002656/1.887, allocations: 88.12 kB / 0.8183 GB, free: 53.94 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00051/1.887, allocations: 102.4 kB / 0.8184 GB, free: 53.88 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002005/1.888, allocations: 51.92 kB / 0.8184 GB, free: 53.83 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.005612/1.893, allocations: 2.277 MB / 0.8206 GB, free: 51.84 MB / 0.4948 GB Notification: Performance of sort global known variables: time 9.52e-07/1.893, allocations: 0 / 0.8206 GB, free: 51.84 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006655/1.9, allocations: 0.978 MB / 0.8216 GB, free: 50.87 MB / 0.4948 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 () * 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.01821/1.918, allocations: 6.852 MB / 0.8283 GB, free: 44.89 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01117/1.929, allocations: 4.871 MB / 0.8331 GB, free: 40.43 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.476e-06/1.929, allocations: 384 / 0.8331 GB, free: 40.43 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003639/1.933, allocations: 1.587 MB / 0.8346 GB, free: 38.96 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003212/1.936, allocations: 367.6 kB / 0.835 GB, free: 38.65 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02627/1.963, allocations: 8.478 MB / 0.8432 GB, free: 31.31 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006009/1.969, allocations: 3.056 MB / 0.8462 GB, free: 28.79 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003877/1.973, allocations: 1.694 MB / 0.8479 GB, free: 27.09 MB / 0.4948 GB Notification: Performance of SimCode: time 1.153e-06/1.973, allocations: 0 / 0.8479 GB, free: 27.09 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.732/6.704, allocations: 89.56 MB / 0.9353 GB, free: 146.1 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat does not exist to compare? outputFormat=mat