Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.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.ForceWithTwoMasses2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2",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.001454/0.001454, allocations: 183.1 kB / 13.19 MB, free: 2.129 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.789/1.789, allocations: 205.2 MB / 218.9 MB, free: 9.207 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.0008289/0.0008287, allocations: 89.92 kB / 267 MB, free: 9.277 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3877/0.3877, allocations: 43.47 MB / 358.6 MB, free: 51.58 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.718e-05/3.739e-05, allocations: 4 kB / 425.4 MB, free: 8.129 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1057, allocations: 58.85 MB / 484.2 MB, free: 13.18 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3828/0.4885, allocations: 112.6 MB / 0.5829 GB, free: 9.301 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002338/0.4888, allocations: 78.8 kB / 0.583 GB, free: 9.262 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6316/1.12, allocations: 136.5 MB / 0.7162 GB, free: 83.27 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.854e-06/1.121, allocations: 3.688 kB / 0.7162 GB, free: 83.27 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.000554/1.121, allocations: 133.2 kB / 0.7164 GB, free: 83.27 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.02334/1.144, allocations: 7.048 MB / 0.7232 GB, free: 80.67 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.973e-05/1.145, allocations: 6.562 kB / 0.7232 GB, free: 80.67 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004925/1.149, allocations: 1.149 MB / 0.7244 GB, free: 80.58 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03234/1.182, allocations: 7.564 MB / 0.7318 GB, free: 80.12 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02471/1.207, allocations: 9.796 MB / 0.7413 GB, free: 79.21 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006825/1.207, allocations: 491 kB / 0.7418 GB, free: 79.19 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003527/1.211, allocations: 0.6536 MB / 0.7424 GB, free: 79.18 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04096/1.252, allocations: 16.58 MB / 0.7586 GB, free: 75.14 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005892/1.252, allocations: 103.3 kB / 0.7587 GB, free: 75.14 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003022/1.256, allocations: 311.4 kB / 0.759 GB, free: 75.14 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002533/1.258, allocations: 1.587 MB / 0.7606 GB, free: 75.11 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02911/1.287, allocations: 13.48 MB / 0.7737 GB, free: 72.95 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0868/1.374, allocations: 74.35 MB / 0.8463 GB, free: 34.54 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.021/1.395, allocations: 7.647 MB / 0.8538 GB, free: 30.75 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004573/1.4, allocations: 3.919 MB / 0.8576 GB, free: 27.14 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02369/1.423, allocations: 18.61 MB / 0.8758 GB, free: 10.64 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.596e-05/1.424, allocations: 68.5 kB / 0.8759 GB, free: 10.56 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=281): time 5.47e-06/1.424, allocations: 0 / 0.8759 GB, free: 10.56 MB / 0.5105 GB Notification: Performance of matching and sorting (n=363): time 0.4347/1.858, allocations: 38.8 MB / 0.9138 GB, free: 92.5 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/1.858, allocations: 272.1 kB / 0.914 GB, free: 92.21 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0105/1.869, allocations: 5.327 MB / 0.9192 GB, free: 91.71 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009498/1.87, allocations: 80.48 kB / 0.9193 GB, free: 91.68 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003904/1.874, allocations: 4.775 MB / 0.924 GB, free: 89.55 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002004/1.876, allocations: 1.335 MB / 0.9253 GB, free: 88.77 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009002/1.877, allocations: 186.3 kB / 0.9254 GB, free: 88.77 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0004538/1.877, allocations: 0.6918 MB / 0.9261 GB, free: 88.44 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005938/1.883, allocations: 3.638 MB / 0.9297 GB, free: 88.42 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01242/1.896, allocations: 8.84 MB / 0.9383 GB, free: 81.76 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01172/1.907, allocations: 5.562 MB / 0.9437 GB, free: 81.7 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00046/1.908, allocations: 51.66 kB / 0.9438 GB, free: 81.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1201) (initialization): time 0.03895/1.947, allocations: 15.87 MB / 0.9593 GB, free: 78.02 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001529/1.947, allocations: 80.16 kB / 0.9594 GB, free: 78.02 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003084/1.947, allocations: 181.3 kB / 0.9595 GB, free: 78.02 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01351/1.961, allocations: 4.032 MB / 0.9635 GB, free: 77.41 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007611/1.969, allocations: 2.035 MB / 0.9655 GB, free: 77.17 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02808/1.997, allocations: 20.82 MB / 0.9858 GB, free: 67.85 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009041/2.006, allocations: 0.5429 MB / 0.9863 GB, free: 67.68 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002014/2.008, allocations: 0.5192 MB / 0.9868 GB, free: 67.61 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 (1081): * Single equations (assignments): 1076 * 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,(4,62.5%) 48} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001785/2.01, allocations: 0.8033 MB / 0.9876 GB, free: 66.96 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00148/2.011, allocations: 0.5776 MB / 0.9882 GB, free: 66.64 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02068/2.032, allocations: 9.436 MB / 0.9974 GB, free: 63.63 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.501e-05/2.032, allocations: 37.22 kB / 0.9974 GB, free: 63.63 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.895e-05/2.032, allocations: 19 kB / 0.9974 GB, free: 63.63 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.144e-05/2.032, allocations: 13.92 kB / 0.9975 GB, free: 63.63 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04114/2.073, allocations: 18.89 MB / 1.016 GB, free: 55.09 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.679e-05/2.073, allocations: 3.953 kB / 1.016 GB, free: 55.09 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002868/2.076, allocations: 0.4999 MB / 1.016 GB, free: 54.67 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.012/2.088, allocations: 3.621 MB / 1.02 GB, free: 52.3 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008399/2.089, allocations: 63.19 kB / 1.02 GB, free: 52.24 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02504/2.114, allocations: 18.72 MB / 1.038 GB, free: 36.13 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/2.114, allocations: 3.953 kB / 1.038 GB, free: 36.13 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02579/2.14, allocations: 13.89 MB / 1.052 GB, free: 24.55 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004788/2.145, allocations: 1.121 MB / 1.053 GB, free: 23.52 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002127/2.147, allocations: 62.81 kB / 1.053 GB, free: 23.46 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004402/2.152, allocations: 227.2 kB / 1.053 GB, free: 23.31 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008641/2.152, allocations: 221.2 kB / 1.053 GB, free: 23.17 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003605/2.153, allocations: 93.62 kB / 1.054 GB, free: 23.09 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.008106/2.161, allocations: 3.718 MB / 1.057 GB, free: 19.8 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.71e-07/2.161, allocations: 0 / 1.057 GB, free: 19.8 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01157/2.173, allocations: 1.847 MB / 1.059 GB, free: 17.97 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 (263): * Single equations (assignments): 258 * 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.0275/2.2, allocations: 14.74 MB / 1.073 GB, free: 4.34 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.3094/2.509, allocations: 9.385 MB / 1.083 GB, free: 99.86 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.748e-06/2.51, allocations: 1.438 kB / 1.083 GB, free: 99.86 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.007314/2.517, allocations: 3.681 MB / 1.086 GB, free: 99.56 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005069/2.522, allocations: 0.7211 MB / 1.087 GB, free: 99.54 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03984/2.562, allocations: 15.31 MB / 1.102 GB, free: 97.04 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008483/2.57, allocations: 5.005 MB / 1.107 GB, free: 96.18 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.009716/2.58, allocations: 2.793 MB / 1.109 GB, free: 96.12 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005849/2.586, allocations: 3.263 MB / 1.113 GB, free: 96.11 MB / 0.5261 GB Notification: Performance of SimCode: time 1.362e-06/2.586, allocations: 3.906 kB / 1.113 GB, free: 96.11 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2078/2.794, allocations: 141.1 MB / 1.25 GB, free: 22.5 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001726/2.794, allocations: 182.3 kB / 1.251 GB, free: 22.27 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.269/11.06, allocations: 0 / 1.251 GB, free: 22.27 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat does not exist to compare? outputFormat=mat