Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.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.ForceWithTwoMasses2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2",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.00126/0.00126, allocations: 169.7 kB / 8.74 MB, free: 348 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.374/1.374, allocations: 221.5 MB / 230.7 MB, free: 7.566 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.0009248/0.0009247, allocations: 93.36 kB / 281.6 MB, free: 5.332 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.1975/0.1975, allocations: 44.15 MB / 376.5 MB, free: 3.047 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.797e-05/1.785e-05, allocations: 4.219 kB / 444.7 MB, free: 15.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1484/0.1484, allocations: 61.91 MB / 0.4948 GB, free: 1.168 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4373/0.5857, allocations: 113.8 MB / 0.6059 GB, free: 14.61 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002148/0.586, allocations: 75.97 kB / 0.606 GB, free: 14.54 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6732/1.259, allocations: 135.3 MB / 0.7381 GB, free: 107.9 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.236e-06/1.259, allocations: 0 / 0.7381 GB, free: 107.9 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0006043/1.26, allocations: 143.9 kB / 0.7382 GB, free: 107.9 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: 2297 * Number of variables: 2297 Notification: Performance of Generate backend data structure: time 0.02725/1.287, allocations: 7.036 MB / 0.7451 GB, free: 105.2 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.755e-05/1.287, allocations: 15.55 kB / 0.7451 GB, free: 105.2 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03104/1.318, allocations: 7.552 MB / 0.7525 GB, free: 104.8 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0245/1.343, allocations: 9.187 MB / 0.7614 GB, free: 103.7 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004016/1.343, allocations: 209.7 kB / 0.7616 GB, free: 103.7 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003831/1.347, allocations: 398.6 kB / 0.762 GB, free: 103.6 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01988/1.367, allocations: 9.657 MB / 0.7714 GB, free: 100.4 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03263/1.4, allocations: 14.22 MB / 0.7853 GB, free: 89.6 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004505/1.4, allocations: 99.12 kB / 0.7854 GB, free: 89.5 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002104/1.402, allocations: 47.52 kB / 0.7855 GB, free: 89.46 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002178/1.405, allocations: 1.58 MB / 0.787 GB, free: 88.14 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07592/1.481, allocations: 73.61 MB / 0.8589 GB, free: 14.03 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006028/1.487, allocations: 5.134 MB / 0.8639 GB, free: 8.754 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004021/1.491, allocations: 3.712 MB / 0.8675 GB, free: 5.035 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001969/1.493, allocations: 2.255 MB / 0.8697 GB, free: 2.406 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.408e-05/1.493, allocations: 72.48 kB / 0.8698 GB, free: 2.328 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=296): time 5.3e-06/1.493, allocations: 0 / 0.8698 GB, free: 2.328 MB / 0.4948 GB Notification: Performance of matching and sorting (n=379): time 0.4476/1.94, allocations: 40.61 MB / 0.9095 GB, free: 109.6 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001578/1.941, allocations: 270.5 kB / 0.9097 GB, free: 109.3 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01331/1.954, allocations: 4.612 MB / 0.9142 GB, free: 108.9 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001259/1.955, allocations: 32.89 kB / 0.9143 GB, free: 108.8 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004591/1.96, allocations: 4.777 MB / 0.9189 GB, free: 106.4 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002515/1.962, allocations: 1.349 MB / 0.9203 GB, free: 105.5 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001642/1.964, allocations: 0 / 0.9203 GB, free: 105.5 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0007326/1.965, allocations: 0.7095 MB / 0.9209 GB, free: 105.2 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00582/1.971, allocations: 3.607 MB / 0.9245 GB, free: 105.2 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009785/1.98, allocations: 8.907 MB / 0.9332 GB, free: 96.82 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009279/1.99, allocations: 5.543 MB / 0.9386 GB, free: 95.09 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002188/1.99, allocations: 55.22 kB / 0.9386 GB, free: 95.09 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1241) (initialization): time 0.03966/2.03, allocations: 15 MB / 0.9533 GB, free: 90.83 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001444/2.03, allocations: 85 kB / 0.9534 GB, free: 90.83 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003137/2.03, allocations: 190.9 kB / 0.9535 GB, free: 90.83 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01357/2.044, allocations: 4.059 MB / 0.9575 GB, free: 90.19 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007973/2.052, allocations: 2.104 MB / 0.9596 GB, free: 89.94 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02913/2.081, allocations: 20.08 MB / 0.9792 GB, free: 80.84 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009518/2.091, allocations: 378.8 kB / 0.9795 GB, free: 80.81 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002747/2.093, allocations: 0.543 MB / 0.9801 GB, free: 80.73 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 (1121): * Single equations (assignments): 1116 * 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,(4,62.5%) 48} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003545/2.097, allocations: 0.586 MB / 0.9806 GB, free: 80.25 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02096/2.118, allocations: 9.303 MB / 0.9897 GB, free: 73.33 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002562/2.121, allocations: 0.5361 MB / 0.9902 GB, free: 72.79 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02653/2.147, allocations: 9.358 MB / 0.9994 GB, free: 65.63 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.664e-05/2.147, allocations: 43.95 kB / 0.9994 GB, free: 65.59 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.589e-05/2.147, allocations: 16 kB / 0.9994 GB, free: 65.57 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001193/2.147, allocations: 20.81 kB / 0.9995 GB, free: 65.57 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04255/2.19, allocations: 17.97 MB / 1.017 GB, free: 51.31 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.404e-05/2.19, allocations: 4 kB / 1.017 GB, free: 51.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002977/2.193, allocations: 0.5222 MB / 1.018 GB, free: 50.87 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01188/2.205, allocations: 3.581 MB / 1.021 GB, free: 48.52 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009219/2.206, allocations: 11.47 kB / 1.021 GB, free: 48.51 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02365/2.23, allocations: 17.67 MB / 1.038 GB, free: 30.77 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.294e-06/2.23, allocations: 4 kB / 1.038 GB, free: 30.77 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02503/2.255, allocations: 14.1 MB / 1.052 GB, free: 16.47 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002157/2.257, allocations: 0.5371 MB / 1.053 GB, free: 15.91 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002182/2.259, allocations: 15.94 kB / 1.053 GB, free: 15.89 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004307/2.264, allocations: 175.7 kB / 1.053 GB, free: 15.72 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001037/2.265, allocations: 234.1 kB / 1.053 GB, free: 15.49 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003118/2.265, allocations: 95.98 kB / 1.053 GB, free: 15.4 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.005115/2.27, allocations: 3.096 MB / 1.056 GB, free: 12.33 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.81e-07/2.27, allocations: 2.906 kB / 1.056 GB, free: 12.33 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01089/2.281, allocations: 1.604 MB / 1.058 GB, free: 10.73 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 (279): * Single equations (assignments): 274 * 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.02769/2.309, allocations: 15.33 MB / 1.073 GB, free: 11.24 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01743/2.326, allocations: 9.141 MB / 1.082 GB, free: 2.098 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.415e-05/2.326, allocations: 5.25 kB / 1.082 GB, free: 2.094 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.3506/2.677, allocations: 3.631 MB / 1.085 GB, free: 122.1 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005031/2.682, allocations: 0.5836 MB / 1.086 GB, free: 122.1 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04698/2.729, allocations: 14.95 MB / 1.1 GB, free: 119.5 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007995/2.737, allocations: 5.002 MB / 1.105 GB, free: 118.7 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.008064/2.745, allocations: 2.871 MB / 1.108 GB, free: 118.6 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005084/2.75, allocations: 3.24 MB / 1.111 GB, free: 118.6 MB / 0.5261 GB Notification: Performance of SimCode: time 9.92e-07/2.75, allocations: 0 / 1.111 GB, free: 118.6 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2253/2.976, allocations: 133 MB / 1.241 GB, free: 30.24 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001664/2.976, allocations: 153 kB / 1.241 GB, free: 30.04 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.723/9.699, allocations: 0 / 1.241 GB, free: 30.04 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat does not exist to compare? outputFormat=mat