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.001426/0.001425, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.97/1.97, allocations: 205.3 MB / 214.1 MB, free: 14.13 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.001121/0.001121, allocations: 84.64 kB / 262.1 MB, free: 13.88 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.2989/0.2989, allocations: 43.49 MB / 353.6 MB, free: 2.266 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.848e-05/2.848e-05, allocations: 4 kB / 418.3 MB, free: 40.92 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.438/0.4381, allocations: 58.85 MB / 477.2 MB, free: 5.188 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2108/0.6489, allocations: 112.1 MB / 0.5754 GB, free: 3.102 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002528/0.6492, allocations: 75.47 kB / 0.5755 GB, free: 3.031 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.9953/1.644, allocations: 133.7 MB / 0.7061 GB, free: 99.28 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.014e-06/1.645, allocations: 3.75 kB / 0.7061 GB, free: 99.28 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0004979/1.645, allocations: 131.7 kB / 0.7062 GB, free: 99.28 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: 2303 * Number of variables: 2303 Notification: Performance of Generate backend data structure: time 0.0306/1.676, allocations: 7.057 MB / 0.7131 GB, free: 94.79 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.209e-05/1.676, allocations: 7.156 kB / 0.7131 GB, free: 94.79 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06319/1.739, allocations: 7.563 MB / 0.7205 GB, free: 87.54 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03498/1.774, allocations: 9.806 MB / 0.7301 GB, free: 77.74 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004073/1.774, allocations: 208 kB / 0.7303 GB, free: 77.54 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003514/1.778, allocations: 395.8 kB / 0.7307 GB, free: 77.15 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02386/1.802, allocations: 9.685 MB / 0.7401 GB, free: 67.46 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03541/1.837, allocations: 14.26 MB / 0.7541 GB, free: 51.77 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004049/1.838, allocations: 107 kB / 0.7542 GB, free: 51.66 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002229/1.84, allocations: 44 kB / 0.7542 GB, free: 51.62 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003558/1.844, allocations: 1.584 MB / 0.7557 GB, free: 50.04 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1242/1.968, allocations: 73.76 MB / 0.8278 GB, free: 6.145 MB / 0.4952 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01679/1.985, allocations: 5.242 MB / 0.8329 GB, free: 0.75 MB / 0.4952 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.3978/2.383, allocations: 3.768 MB / 0.8366 GB, free: 123 MB / 0.4952 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003536/2.386, allocations: 2.262 MB / 0.8388 GB, free: 121 MB / 0.4952 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.021e-05/2.386, allocations: 65.05 kB / 0.8388 GB, free: 121 MB / 0.4952 GB Notification: Performance of pre-optimization done (n=302): time 7.284e-06/2.386, allocations: 0 / 0.8388 GB, free: 121 MB / 0.4952 GB Notification: Performance of matching and sorting (n=385): time 0.1751/2.561, allocations: 40.9 MB / 0.8788 GB, free: 114.2 MB / 0.4952 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001205/2.561, allocations: 273.9 kB / 0.879 GB, free: 113.9 MB / 0.4952 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0112/2.573, allocations: 4.658 MB / 0.8836 GB, free: 112.3 MB / 0.4952 GB Notification: Performance of collectPreVariables (initialization): time 0.001067/2.574, allocations: 29.23 kB / 0.8836 GB, free: 112.3 MB / 0.4952 GB Notification: Performance of collectInitialEqns (initialization): time 0.004094/2.578, allocations: 4.635 MB / 0.8882 GB, free: 108.7 MB / 0.4952 GB Notification: Performance of collectInitialBindings (initialization): time 0.002369/2.58, allocations: 1.366 MB / 0.8895 GB, free: 107.6 MB / 0.4952 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001289/2.582, allocations: 0 / 0.8895 GB, free: 107.6 MB / 0.4952 GB Notification: Performance of setup shared object (initialization): time 0.0007534/2.582, allocations: 0.7126 MB / 0.8902 GB, free: 107.1 MB / 0.4952 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008897/2.591, allocations: 3.636 MB / 0.8937 GB, free: 105.8 MB / 0.4952 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01256/2.604, allocations: 8.933 MB / 0.9025 GB, free: 97.38 MB / 0.4952 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0125/2.617, allocations: 5.567 MB / 0.9079 GB, free: 95.63 MB / 0.4952 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002207/2.617, allocations: 57.22 kB / 0.9079 GB, free: 95.63 MB / 0.4952 GB Notification: Performance of matching and sorting (n=1247) (initialization): time 0.0503/2.667, allocations: 14.83 MB / 0.9224 GB, free: 85.68 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 0.000155/2.667, allocations: 87.28 kB / 0.9225 GB, free: 85.6 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002903/2.668, allocations: 188 kB / 0.9227 GB, free: 85.42 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02174/2.689, allocations: 4.003 MB / 0.9266 GB, free: 82.64 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01335/2.703, allocations: 2.115 MB / 0.9287 GB, free: 80.79 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04676/2.75, allocations: 20.11 MB / 0.9483 GB, free: 63.51 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01152/2.761, allocations: 383.1 kB / 0.9487 GB, free: 63.21 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002595/2.764, allocations: 0.5407 MB / 0.9492 GB, free: 62.68 MB / 0.4952 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 855 * 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 (1127): * Single equations (assignments): 1122 * 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 {(1,100.0%) 45,(5,64.0%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003774/2.768, allocations: 0.5822 MB / 0.9498 GB, free: 62.1 MB / 0.4952 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0348/2.802, allocations: 9.32 MB / 0.9589 GB, free: 54.7 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002333/2.805, allocations: 0.5399 MB / 0.9594 GB, free: 54.15 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03606/2.841, allocations: 9.379 MB / 0.9686 GB, free: 46.14 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.488e-05/2.841, allocations: 40 kB / 0.9686 GB, free: 46.1 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.177e-05/2.841, allocations: 16 kB / 0.9686 GB, free: 46.08 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.643e-05/2.841, allocations: 15.94 kB / 0.9686 GB, free: 46.07 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06261/2.904, allocations: 18.04 MB / 0.9862 GB, free: 27.9 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.005e-05/2.904, allocations: 4 kB / 0.9862 GB, free: 27.9 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005336/2.909, allocations: 0.5307 MB / 0.9868 GB, free: 27.37 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.021/2.93, allocations: 3.521 MB / 0.9902 GB, free: 23.84 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001075/2.932, allocations: 15.98 kB / 0.9902 GB, free: 23.82 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04272/2.974, allocations: 17.67 MB / 1.007 GB, free: 5.914 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.105e-05/2.974, allocations: 7.672 kB / 1.007 GB, free: 5.91 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04682/3.021, allocations: 14.17 MB / 1.021 GB, free: 7.555 MB / 0.5108 GB Notification: Performance of postOpt removeConstants (simulation): time 0.3732/3.394, allocations: 1.09 MB / 1.022 GB, free: 122.6 MB / 0.5108 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002032/3.396, allocations: 5.359 kB / 1.022 GB, free: 122.6 MB / 0.5108 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006325/3.403, allocations: 164.5 kB / 1.023 GB, free: 122.6 MB / 0.5108 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001605/3.404, allocations: 250.6 kB / 1.023 GB, free: 122.5 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000543/3.405, allocations: 92.11 kB / 1.023 GB, free: 122.5 MB / 0.5108 GB Notification: Performance of sorting global known variables: time 0.00878/3.414, allocations: 3.137 MB / 1.026 GB, free: 122.4 MB / 0.5108 GB Notification: Performance of sort global known variables: time 1.252e-06/3.414, allocations: 0 / 1.026 GB, free: 122.4 MB / 0.5108 GB Notification: Performance of remove unused functions: time 0.01349/3.427, allocations: 1.615 MB / 1.028 GB, free: 122.4 MB / 0.5108 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * 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 (285): * Single equations (assignments): 280 * 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.04943/3.477, allocations: 15.37 MB / 1.043 GB, free: 120.2 MB / 0.5108 GB Notification: Performance of simCode: created initialization part: time 0.02167/3.499, allocations: 9.224 MB / 1.052 GB, free: 119.9 MB / 0.5108 GB Notification: Performance of simCode: created event and clocks part: time 1.124e-05/3.499, allocations: 0 / 1.052 GB, free: 119.9 MB / 0.5108 GB Notification: Performance of simCode: created simulation system equations: time 0.00917/3.508, allocations: 3.679 MB / 1.055 GB, free: 119.6 MB / 0.5108 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006006/3.514, allocations: 0.5933 MB / 1.056 GB, free: 119.4 MB / 0.5108 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05155/3.566, allocations: 15.78 MB / 1.071 GB, free: 113.9 MB / 0.5108 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01222/3.578, allocations: 5.025 MB / 1.076 GB, free: 112.3 MB / 0.5108 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008264/3.586, allocations: 3.335 MB / 1.079 GB, free: 109.6 MB / 0.5108 GB Notification: Performance of SimCode: time 1.162e-06/3.586, allocations: 0 / 1.079 GB, free: 109.6 MB / 0.5108 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.942/9.528, allocations: 184.1 MB / 1.259 GB, free: 137.7 MB / 0.5265 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