Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.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.LineForceWithTwoMasses,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses",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.001837/0.001837, allocations: 169.9 kB / 8.74 MB, free: 344 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.522/1.522, allocations: 221.5 MB / 230.7 MB, free: 7.59 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008922/0.0008921, allocations: 90.83 kB / 281.6 MB, free: 5.34 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.196/0.196, allocations: 44.15 MB / 376.5 MB, free: 3.059 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.041e-05/2.003e-05, allocations: 4.219 kB / 444.7 MB, free: 15.16 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1476/0.1476, allocations: 61.92 MB / 0.4948 GB, free: 1.176 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4843/0.632, allocations: 114 MB / 0.6061 GB, free: 14.36 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002359/0.6323, allocations: 80.7 kB / 0.6062 GB, free: 14.28 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7005/1.333, allocations: 135.3 MB / 0.7382 GB, free: 107.8 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.003e-06/1.333, allocations: 3.938 kB / 0.7382 GB, free: 107.8 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.000436/1.333, allocations: 137.6 kB / 0.7384 GB, free: 107.8 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.02402/1.357, allocations: 7.035 MB / 0.7452 GB, free: 105.1 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.874e-05/1.357, allocations: 15.06 kB / 0.7453 GB, free: 105.1 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03136/1.389, allocations: 7.56 MB / 0.7526 GB, free: 104.6 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02396/1.413, allocations: 9.187 MB / 0.7616 GB, free: 103.6 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003488/1.413, allocations: 213.3 kB / 0.7618 GB, free: 103.6 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003436/1.417, allocations: 400.5 kB / 0.7622 GB, free: 103.6 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01973/1.436, allocations: 9.686 MB / 0.7717 GB, free: 100.3 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03396/1.47, allocations: 14.25 MB / 0.7856 GB, free: 89.36 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003907/1.471, allocations: 98.69 kB / 0.7857 GB, free: 89.26 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002676/1.473, allocations: 47.25 kB / 0.7857 GB, free: 89.22 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002278/1.476, allocations: 1.587 MB / 0.7873 GB, free: 87.89 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08184/1.558, allocations: 73.69 MB / 0.8592 GB, free: 13.61 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00644/1.564, allocations: 5.24 MB / 0.8643 GB, free: 8.234 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004716/1.569, allocations: 3.768 MB / 0.868 GB, free: 4.461 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002349/1.571, allocations: 2.256 MB / 0.8702 GB, free: 1.828 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001133/1.571, allocations: 72.5 kB / 0.8703 GB, free: 1.75 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=302): time 7.694e-06/1.571, allocations: 0 / 0.8703 GB, free: 1.75 MB / 0.4948 GB Notification: Performance of matching and sorting (n=385): time 0.4592/2.031, allocations: 40.66 MB / 0.91 GB, free: 109.5 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001286/2.031, allocations: 270.1 kB / 0.9103 GB, free: 109.2 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01068/2.042, allocations: 4.616 MB / 0.9148 GB, free: 108.8 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001348/2.043, allocations: 25.7 kB / 0.9148 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003967/2.047, allocations: 4.774 MB / 0.9195 GB, free: 106.3 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002651/2.05, allocations: 1.371 MB / 0.9208 GB, free: 105.4 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00185/2.051, allocations: 2.438 kB / 0.9208 GB, free: 105.4 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001136/2.053, allocations: 0.7091 MB / 0.9215 GB, free: 105.1 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00672/2.059, allocations: 3.636 MB / 0.925 GB, free: 105.1 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01087/2.07, allocations: 8.93 MB / 0.9338 GB, free: 96.81 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01024/2.081, allocations: 5.575 MB / 0.9392 GB, free: 95.07 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000303/2.081, allocations: 53.81 kB / 0.9393 GB, free: 95.07 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1247) (initialization): time 0.03661/2.118, allocations: 15 MB / 0.9539 GB, free: 90.8 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003089/2.118, allocations: 85.12 kB / 0.954 GB, free: 90.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004691/2.118, allocations: 189.7 kB / 0.9542 GB, free: 90.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01291/2.131, allocations: 4.002 MB / 0.9581 GB, free: 90.16 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008179/2.14, allocations: 2.117 MB / 0.9601 GB, free: 89.91 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03063/2.17, allocations: 20.1 MB / 0.9798 GB, free: 80.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01116/2.181, allocations: 379.6 kB / 0.9801 GB, free: 80.76 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00295/2.184, allocations: 0.5419 MB / 0.9807 GB, free: 80.62 MB / 0.5105 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.004413/2.189, allocations: 0.5844 MB / 0.9812 GB, free: 80.03 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02304/2.212, allocations: 9.322 MB / 0.9903 GB, free: 72.64 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00217/2.214, allocations: 0.5399 MB / 0.9909 GB, free: 72.09 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02251/2.237, allocations: 9.358 MB / 1 GB, free: 64.91 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.023e-05/2.237, allocations: 45.12 kB / 1 GB, free: 64.87 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.92e-05/2.237, allocations: 16 kB / 1 GB, free: 64.86 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001003/2.237, allocations: 21.48 kB / 1 GB, free: 64.85 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04413/2.281, allocations: 18.02 MB / 1.018 GB, free: 50.54 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.694e-05/2.281, allocations: 4 kB / 1.018 GB, free: 50.54 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002913/2.284, allocations: 0.5338 MB / 1.018 GB, free: 50.09 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0111/2.295, allocations: 3.518 MB / 1.022 GB, free: 47.77 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001109/2.296, allocations: 15.95 kB / 1.022 GB, free: 47.75 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02416/2.321, allocations: 17.68 MB / 1.039 GB, free: 29.92 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.546e-06/2.321, allocations: 0 / 1.039 GB, free: 29.92 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02544/2.346, allocations: 14.16 MB / 1.053 GB, free: 15.56 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001804/2.348, allocations: 0.5409 MB / 1.053 GB, free: 15 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002227/2.35, allocations: 7.953 kB / 1.053 GB, free: 14.99 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004086/2.354, allocations: 171.7 kB / 1.053 GB, free: 14.82 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001295/2.356, allocations: 237.9 kB / 1.054 GB, free: 14.59 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006842/2.356, allocations: 96.84 kB / 1.054 GB, free: 14.49 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.006638/2.363, allocations: 3.099 MB / 1.057 GB, free: 11.43 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.91e-07/2.363, allocations: 3.938 kB / 1.057 GB, free: 11.42 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01215/2.375, allocations: 1.619 MB / 1.058 GB, free: 9.812 MB / 0.5105 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.02894/2.404, allocations: 15.37 MB / 1.073 GB, free: 10.29 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01923/2.423, allocations: 9.225 MB / 1.082 GB, free: 1.062 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.317e-05/2.423, allocations: 0 / 1.082 GB, free: 1.062 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.309/2.732, allocations: 3.672 MB / 1.086 GB, free: 122.5 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00543/2.738, allocations: 0.5948 MB / 1.087 GB, free: 122.5 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04747/2.785, allocations: 15 MB / 1.101 GB, free: 119.9 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008624/2.794, allocations: 5.011 MB / 1.106 GB, free: 119.1 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.007835/2.802, allocations: 2.89 MB / 1.109 GB, free: 119 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005295/2.807, allocations: 3.249 MB / 1.112 GB, free: 119 MB / 0.5261 GB Notification: Performance of SimCode: time 1.443e-06/2.807, allocations: 0 / 1.112 GB, free: 119 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2048/3.012, allocations: 133.1 MB / 1.242 GB, free: 29.23 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002017/3.012, allocations: 144.8 kB / 1.242 GB, free: 29.04 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.468/9.48, allocations: 0 / 1.242 GB, free: 29.04 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses_res.mat does not exist to compare? outputFormat=mat