Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.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.LineForceWithTwoMasses,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses",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.001594/0.001594, allocations: 181.4 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.18/2.18, 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.001096/0.001095, allocations: 86.69 kB / 267.5 MB, free: 14.04 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.2848/0.2848, allocations: 43.49 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.698e-05/3.709e-05, allocations: 0 / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.1181, allocations: 58.86 MB / 484.2 MB, free: 12.37 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5716/0.6897, allocations: 112.7 MB / 0.583 GB, free: 6.77 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002772/0.6901, allocations: 83.05 kB / 0.583 GB, free: 6.73 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9466/1.637, allocations: 136.4 MB / 0.7163 GB, free: 97.63 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.905e-06/1.637, allocations: 1.375 kB / 0.7163 GB, free: 97.63 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0005694/1.637, allocations: 137 kB / 0.7164 GB, free: 97.62 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2303 * Number of variables: 2303 Notification: Performance of Generate backend data structure: time 0.03362/1.671, allocations: 7.06 MB / 0.7233 GB, free: 95.15 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.655e-05/1.671, allocations: 12.78 kB / 0.7233 GB, free: 95.15 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006011/1.677, allocations: 1.147 MB / 0.7244 GB, free: 95.05 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0579/1.735, allocations: 7.569 MB / 0.7318 GB, free: 94.59 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03579/1.771, allocations: 9.802 MB / 0.7414 GB, free: 93.68 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006838/1.772, allocations: 494.1 kB / 0.7419 GB, free: 93.67 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00408/1.776, allocations: 0.6526 MB / 0.7425 GB, free: 93.66 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05394/1.83, allocations: 16.58 MB / 0.7587 GB, free: 89.77 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005815/1.83, allocations: 104.6 kB / 0.7588 GB, free: 89.76 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003771/1.834, allocations: 311.9 kB / 0.7591 GB, free: 89.76 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003832/1.838, allocations: 1.583 MB / 0.7606 GB, free: 89.75 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04481/1.883, allocations: 13.51 MB / 0.7738 GB, free: 89.36 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1209/2.004, allocations: 74.42 MB / 0.8465 GB, free: 31.24 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03799/2.042, allocations: 7.685 MB / 0.854 GB, free: 24.84 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008396/2.05, allocations: 3.987 MB / 0.8579 GB, free: 21.17 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04648/2.097, allocations: 18.7 MB / 0.8762 GB, free: 4.594 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.6e-05/2.097, allocations: 60.56 kB / 0.8762 GB, free: 4.527 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=287): time 7.364e-06/2.097, allocations: 0 / 0.8762 GB, free: 4.527 MB / 0.4948 GB Notification: Performance of matching and sorting (n=370): time 0.5971/2.694, allocations: 38.98 MB / 0.9143 GB, free: 103.9 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00013/2.694, allocations: 274.7 kB / 0.9146 GB, free: 103.6 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01508/2.709, allocations: 5.316 MB / 0.9197 GB, free: 103.1 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001036/2.71, allocations: 86.44 kB / 0.9198 GB, free: 103.1 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004237/2.715, allocations: 4.562 MB / 0.9243 GB, free: 101.1 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.00245/2.717, allocations: 1.359 MB / 0.9256 GB, free: 100.3 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001359/2.719, allocations: 187.5 kB / 0.9258 GB, free: 100.3 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0007445/2.719, allocations: 0.698 MB / 0.9265 GB, free: 99.95 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009606/2.729, allocations: 3.668 MB / 0.9301 GB, free: 99.93 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01303/2.742, allocations: 8.871 MB / 0.9387 GB, free: 93.27 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01307/2.755, allocations: 5.592 MB / 0.9442 GB, free: 93.21 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002089/2.755, allocations: 51.06 kB / 0.9442 GB, free: 93.21 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.0527/2.808, allocations: 15.64 MB / 0.9595 GB, free: 91.56 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.000152/2.808, allocations: 84.72 kB / 0.9596 GB, free: 91.56 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002687/2.809, allocations: 182.2 kB / 0.9598 GB, free: 91.56 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02212/2.831, allocations: 4.014 MB / 0.9637 GB, free: 90.97 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01328/2.844, allocations: 2.054 MB / 0.9657 GB, free: 90.72 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06342/2.908, allocations: 20.79 MB / 0.986 GB, free: 81.48 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01733/2.925, allocations: 0.5443 MB / 0.9865 GB, free: 81.31 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003312/2.928, allocations: 0.5262 MB / 0.987 GB, free: 81.24 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 831 * Number of states: 0 () * Number of discrete variables: 66 (lineForceWithTwoMasses.massColor[3],lineForceWithTwoMasses.massColor[2],lineForceWithTwoMasses.massColor[1],lineForceWithTwoMasses.color_b[3],lineForceWithTwoMasses.color_b[2],lineForceWithTwoMasses.color_b[1],lineForceWithTwoMasses.color_a[3],lineForceWithTwoMasses.color_a[2],lineForceWithTwoMasses.color_a[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.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 (1088): * Single equations (assignments): 1083 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 44,(5,64.0%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005616/2.934, allocations: 0.8057 MB / 0.9878 GB, free: 80.59 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003345/2.938, allocations: 0.5779 MB / 0.9884 GB, free: 80.27 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04618/2.984, allocations: 9.46 MB / 0.9976 GB, free: 77.25 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.629e-05/2.984, allocations: 43.14 kB / 0.9977 GB, free: 77.25 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.556e-05/2.984, allocations: 15.06 kB / 0.9977 GB, free: 77.25 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.51e-05/2.984, allocations: 17.16 kB / 0.9977 GB, free: 77.25 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06644/3.051, allocations: 18.95 MB / 1.016 GB, free: 65.25 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.505e-05/3.051, allocations: 0 / 1.016 GB, free: 65.25 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005218/3.056, allocations: 0.5025 MB / 1.017 GB, free: 64.84 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02118/3.077, allocations: 3.577 MB / 1.02 GB, free: 62.5 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001025/3.078, allocations: 60 kB / 1.02 GB, free: 62.45 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04494/3.123, allocations: 18.73 MB / 1.039 GB, free: 46.38 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.556e-05/3.123, allocations: 0 / 1.039 GB, free: 46.38 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04473/3.168, allocations: 13.96 MB / 1.052 GB, free: 34.72 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004909/3.173, allocations: 1.125 MB / 1.053 GB, free: 33.68 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002493/3.175, allocations: 60 kB / 1.053 GB, free: 33.62 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00671/3.182, allocations: 215.6 kB / 1.054 GB, free: 33.48 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00163/3.184, allocations: 224 kB / 1.054 GB, free: 33.34 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007206/3.185, allocations: 100.4 kB / 1.054 GB, free: 33.25 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01132/3.196, allocations: 3.714 MB / 1.057 GB, free: 29.97 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.81e-07/3.196, allocations: 0 / 1.057 GB, free: 29.97 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01247/3.209, allocations: 1.85 MB / 1.059 GB, free: 28.13 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (270): * Single equations (assignments): 265 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 43,(1,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04506/3.254, allocations: 14.82 MB / 1.074 GB, free: 13.82 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02253/3.276, allocations: 9.489 MB / 1.083 GB, free: 4.32 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.817e-06/3.276, allocations: 448 / 1.083 GB, free: 4.32 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.009459/3.286, allocations: 3.738 MB / 1.087 GB, free: 0.5547 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006754/3.293, allocations: 0.7145 MB / 1.087 GB, free: 15.86 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4249/3.718, allocations: 16.1 MB / 1.103 GB, free: 110.3 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01375/3.731, allocations: 5.032 MB / 1.108 GB, free: 109.4 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008162/3.74, allocations: 3.338 MB / 1.111 GB, free: 109.4 MB / 0.5261 GB Notification: Performance of SimCode: time 1.653e-06/3.74, allocations: 0 / 1.111 GB, free: 109.4 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.009/9.749, allocations: 187.1 MB / 1.294 GB, free: 102.9 MB / 0.5417 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses_res.mat does not exist to compare? outputFormat=mat