Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.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.DifferentiationOfForces,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_DifferentiationOfForces",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_DifferentiationOfForces",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.002106/0.002106, allocations: 179 kB / 8.364 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.392/2.392, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001109/0.001109, allocations: 86.83 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3336/0.3336, allocations: 43.49 MB / 353.6 MB, free: 2.262 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.098e-05/2.107e-05, allocations: 224 / 418.3 MB, free: 40.94 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4168/0.4168, allocations: 58.85 MB / 477.2 MB, free: 5.152 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2011/0.618, allocations: 109.4 MB / 0.5728 GB, free: 5.797 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002921/0.6183, allocations: 79.95 kB / 0.5729 GB, free: 5.719 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.732/1.35, allocations: 89.48 MB / 0.6603 GB, free: 108.4 MB / 475.1 MB Notification: Performance of FrontEnd: time 5.039e-06/1.35, allocations: 0 / 0.6603 GB, free: 108.4 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0002818/1.351, allocations: 86.86 kB / 0.6603 GB, free: 108.4 MB / 475.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1645 * Number of variables: 1645 Notification: Performance of Generate backend data structure: time 0.01808/1.369, allocations: 4.153 MB / 0.6644 GB, free: 106.6 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.614e-05/1.369, allocations: 9.625 kB / 0.6644 GB, free: 106.6 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03401/1.403, allocations: 4.436 MB / 0.6687 GB, free: 106.3 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01871/1.422, allocations: 4.734 MB / 0.6734 GB, free: 105.7 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003067/1.422, allocations: 149.2 kB / 0.6735 GB, free: 105.7 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002612/1.425, allocations: 272.6 kB / 0.6738 GB, free: 105.7 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0162/1.441, allocations: 6.31 MB / 0.6799 GB, free: 105.1 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02623/1.467, allocations: 9.737 MB / 0.6894 GB, free: 99.87 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003021/1.468, allocations: 69.62 kB / 0.6895 GB, free: 99.83 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002065/1.47, allocations: 30.12 kB / 0.6895 GB, free: 99.83 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002117/1.472, allocations: 0.9996 MB / 0.6905 GB, free: 99.65 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.063/1.535, allocations: 44.84 MB / 0.7343 GB, free: 65.44 MB / 475.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004859/1.54, allocations: 2.716 MB / 0.7369 GB, free: 63.95 MB / 475.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002942/1.543, allocations: 1.541 MB / 0.7385 GB, free: 63.07 MB / 475.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005161/1.543, allocations: 334.4 kB / 0.7388 GB, free: 62.71 MB / 475.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.991e-05/1.543, allocations: 59.56 kB / 0.7388 GB, free: 62.65 MB / 475.1 MB Notification: Performance of pre-optimization done (n=176): time 6.031e-06/1.543, allocations: 0 / 0.7388 GB, free: 62.65 MB / 475.1 MB Notification: Performance of matching and sorting (n=194): time 0.03248/1.576, allocations: 12.37 MB / 0.7509 GB, free: 51.47 MB / 475.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.147e-05/1.576, allocations: 205.2 kB / 0.7511 GB, free: 51.23 MB / 475.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006429/1.582, allocations: 2.981 MB / 0.754 GB, free: 48.61 MB / 475.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000478/1.583, allocations: 25.7 kB / 0.754 GB, free: 48.58 MB / 475.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00264/1.586, allocations: 3.271 MB / 0.7572 GB, free: 45.59 MB / 475.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00113/1.587, allocations: 0.7255 MB / 0.7579 GB, free: 44.94 MB / 475.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007025/1.588, allocations: 0 / 0.7579 GB, free: 44.94 MB / 475.1 MB Notification: Performance of setup shared object (initialization): time 0.0004437/1.588, allocations: 0.5732 MB / 0.7585 GB, free: 44.4 MB / 475.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004523/1.593, allocations: 1.937 MB / 0.7604 GB, free: 42.46 MB / 475.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007319/1.6, allocations: 5.778 MB / 0.766 GB, free: 34.73 MB / 475.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007123/1.607, allocations: 3.326 MB / 0.7693 GB, free: 31.41 MB / 475.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000121/1.607, allocations: 36 kB / 0.7693 GB, free: 31.38 MB / 475.1 MB Notification: Performance of matching and sorting (n=821) (initialization): time 0.01863/1.626, allocations: 6.958 MB / 0.7761 GB, free: 24.41 MB / 475.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001018/1.626, allocations: 64 kB / 0.7762 GB, free: 24.35 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001793/1.626, allocations: 136 kB / 0.7763 GB, free: 24.21 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001216/1.627, allocations: 397.2 kB / 0.7767 GB, free: 23.82 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009302/1.637, allocations: 1.497 MB / 0.7781 GB, free: 22.32 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004554/1.641, allocations: 2.903 MB / 0.781 GB, free: 19.31 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007178/1.649, allocations: 235.7 kB / 0.7812 GB, free: 19.08 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001569/1.65, allocations: 396 kB / 0.7816 GB, free: 18.69 MB / 475.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 629 * Number of states: 0 () * Number of discrete variables: 30 (forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],cutForce.forceColor[3],cutForce.forceColor[2],cutForce.forceColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (783): * Single equations (assignments): 779 * 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%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001657/1.652, allocations: 452.3 kB / 0.782 GB, free: 18.24 MB / 475.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006928/1.659, allocations: 2.779 MB / 0.7847 GB, free: 15.45 MB / 475.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001064/1.66, allocations: 319.9 kB / 0.785 GB, free: 15.14 MB / 475.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006708/1.667, allocations: 2.49 MB / 0.7875 GB, free: 12.63 MB / 475.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.818e-05/1.667, allocations: 20.19 kB / 0.7875 GB, free: 12.61 MB / 475.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.253e-05/1.667, allocations: 4 kB / 0.7875 GB, free: 12.61 MB / 475.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.574e-05/1.667, allocations: 11.91 kB / 0.7875 GB, free: 12.6 MB / 475.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01964/1.687, allocations: 6.532 MB / 0.7939 GB, free: 6.059 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.982e-05/1.687, allocations: 8 kB / 0.7939 GB, free: 6.051 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003428/1.69, allocations: 347.5 kB / 0.7942 GB, free: 5.711 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008931/1.691, allocations: 176.7 kB / 0.7944 GB, free: 5.535 MB / 475.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004335/1.691, allocations: 15.98 kB / 0.7944 GB, free: 5.52 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003842/1.695, allocations: 2.451 MB / 0.7968 GB, free: 2.957 MB / 475.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.052e-06/1.695, allocations: 0 / 0.7968 GB, free: 2.957 MB / 475.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01139/1.707, allocations: 5.008 MB / 0.8017 GB, free: 13.91 MB / 491.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002659/1.71, allocations: 0.5944 MB / 0.8023 GB, free: 13.29 MB / 491.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001005/1.711, allocations: 0 / 0.8023 GB, free: 13.29 MB / 491.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003245/1.714, allocations: 99.83 kB / 0.8024 GB, free: 13.2 MB / 491.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007917/1.715, allocations: 125.1 kB / 0.8025 GB, free: 13.08 MB / 491.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002464/1.715, allocations: 55.97 kB / 0.8025 GB, free: 13.02 MB / 491.1 MB Notification: Performance of sorting global known variables: time 0.005736/1.721, allocations: 1.984 MB / 0.8045 GB, free: 11.05 MB / 491.1 MB Notification: Performance of sort global known variables: time 7.82e-07/1.721, allocations: 0 / 0.8045 GB, free: 11.05 MB / 491.1 MB Notification: Performance of remove unused functions: time 0.007765/1.729, allocations: 0.8554 MB / 0.8053 GB, free: 10.2 MB / 491.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (164): * Single equations (assignments): 160 * 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%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0131/1.742, allocations: 5.798 MB / 0.811 GB, free: 4.352 MB / 491.1 MB Notification: Performance of simCode: created initialization part: time 0.0122/1.754, allocations: 4.674 MB / 0.8155 GB, free: 15.7 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 9.979e-06/1.754, allocations: 112 / 0.8155 GB, free: 15.7 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.004007/1.758, allocations: 1.49 MB / 0.817 GB, free: 14.2 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00318/1.761, allocations: 314.8 kB / 0.8173 GB, free: 13.89 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03458/1.796, allocations: 9.45 MB / 0.8265 GB, free: 4.371 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008674/1.805, allocations: 3.543 MB / 0.83 GB, free: 0.8086 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.3498/2.155, allocations: 2.047 MB / 0.832 GB, free: 122.2 MB / 0.4952 GB Notification: Performance of SimCode: time 1.232e-06/2.155, allocations: 0 / 0.832 GB, free: 122.2 MB / 0.4952 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.224/6.379, allocations: 101.3 MB / 0.9309 GB, free: 75.52 MB / 0.4952 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.DifferentiationOfForces_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_DifferentiationOfForces_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_DifferentiationOfForces.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.DifferentiationOfForces_res.mat does not exist to compare? outputFormat=mat