Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.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.Joints.JointUSP2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointUSP2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSP2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointUSP2",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.002298/0.002298, allocations: 185.5 kB / 16.41 MB, free: 5.727 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.22/2.22, allocations: 205.4 MB / 222.5 MB, free: 9.137 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.001156/0.001155, allocations: 89.52 kB / 270.9 MB, free: 8.387 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.5607/0.5607, allocations: 43.55 MB / 362.7 MB, free: 51.98 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004972/0.0004972, allocations: 16 kB / 431.5 MB, free: 5.855 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1303/0.1308, allocations: 58.84 MB / 490.3 MB, free: 10.93 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5263/0.6572, allocations: 114.7 MB / 0.5909 GB, free: 3.625 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003036/0.6576, allocations: 83.95 kB / 0.5909 GB, free: 3.543 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8663/1.524, allocations: 123.5 MB / 0.7116 GB, free: 94.36 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.495e-06/1.524, allocations: 0 / 0.7116 GB, free: 94.36 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.000447/1.524, allocations: 108.7 kB / 0.7117 GB, free: 94.36 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.02956/1.554, allocations: 6.049 MB / 0.7176 GB, free: 91.99 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.895e-05/1.554, allocations: 9.312 kB / 0.7176 GB, free: 91.99 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005146/1.559, allocations: 0.9766 MB / 0.7185 GB, free: 91.9 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03686/1.596, allocations: 4.72 MB / 0.7231 GB, free: 91.52 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02524/1.621, allocations: 6.681 MB / 0.7297 GB, free: 90.66 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006079/1.622, allocations: 446.6 kB / 0.7301 GB, free: 90.62 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003222/1.625, allocations: 0.5431 MB / 0.7306 GB, free: 90.61 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04533/1.671, allocations: 14.2 MB / 0.7445 GB, free: 84.63 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004148/1.671, allocations: 78.48 kB / 0.7446 GB, free: 84.58 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00287/1.674, allocations: 266.4 kB / 0.7448 GB, free: 84.43 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002983/1.677, allocations: 1.297 MB / 0.7461 GB, free: 84.19 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03876/1.716, allocations: 11.89 MB / 0.7577 GB, free: 80.48 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09359/1.81, allocations: 59.34 MB / 0.8156 GB, free: 29.77 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02083/1.83, allocations: 4.671 MB / 0.8202 GB, free: 24.95 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02979/1.86, allocations: 12.61 MB / 0.8325 GB, free: 11.85 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.234e-05/1.86, allocations: 59.81 kB / 0.8326 GB, free: 11.79 MB / 490.7 MB Notification: Performance of pre-optimization done (n=191): time 6.763e-06/1.86, allocations: 0 / 0.8326 GB, free: 11.79 MB / 490.7 MB Notification: Performance of matching and sorting (n=242): time 0.6225/2.483, allocations: 39.81 MB / 0.8714 GB, free: 99.98 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.875e-05/2.483, allocations: 231.2 kB / 0.8717 GB, free: 99.73 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01304/2.496, allocations: 4.279 MB / 0.8758 GB, free: 99.34 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.0008012/2.497, allocations: 59.58 kB / 0.8759 GB, free: 99.31 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.003732/2.501, allocations: 3.795 MB / 0.8796 GB, free: 97.26 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.001829/2.503, allocations: 0.9182 MB / 0.8805 GB, free: 96.74 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001422/2.504, allocations: 144.5 kB / 0.8806 GB, free: 96.74 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.00077/2.505, allocations: 0.6211 MB / 0.8813 GB, free: 96.41 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009041/2.514, allocations: 3.252 MB / 0.8844 GB, free: 96.39 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0123/2.526, allocations: 7.531 MB / 0.8918 GB, free: 90.9 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01203/2.538, allocations: 4.797 MB / 0.8965 GB, free: 90.46 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002258/2.539, allocations: 42.12 kB / 0.8965 GB, free: 90.46 MB / 0.4949 GB Notification: Performance of matching and sorting (n=942) (initialization): time 0.05236/2.591, allocations: 13.71 MB / 0.9099 GB, free: 86.03 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001846/2.591, allocations: 69.84 kB / 0.91 GB, free: 86.03 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003609/2.592, allocations: 151.5 kB / 0.9101 GB, free: 86.03 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.023/2.615, allocations: 3.814 MB / 0.9138 GB, free: 85.38 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01043/2.625, allocations: 1.617 MB / 0.9154 GB, free: 85.18 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04559/2.671, allocations: 18.65 MB / 0.9336 GB, free: 77.29 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01032/2.681, allocations: 485.5 kB / 0.9341 GB, free: 77.15 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00197/2.683, allocations: 433.4 kB / 0.9345 GB, free: 77.09 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 689 * Number of states: 0 () * Number of discrete variables: 37 (jointUSP.prismatic.positiveBranch,bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],jointUSP.sphereColor[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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (859): * Single equations (assignments): 855 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 58} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008599/2.692, allocations: 2.661 MB / 0.9371 GB, free: 75.84 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001632/2.694, allocations: 439.1 kB / 0.9375 GB, free: 75.59 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03887/2.732, allocations: 8.14 MB / 0.9455 GB, free: 72.86 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.448e-05/2.733, allocations: 30.97 kB / 0.9455 GB, free: 72.85 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.511e-05/2.733, allocations: 11 kB / 0.9455 GB, free: 72.85 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.863e-05/2.733, allocations: 13.39 kB / 0.9455 GB, free: 72.85 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05959/2.792, allocations: 17.46 MB / 0.9626 GB, free: 66.58 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.317e-05/2.792, allocations: 0 / 0.9626 GB, free: 66.58 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003768/2.796, allocations: 389.7 kB / 0.9629 GB, free: 66.55 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02179/2.818, allocations: 3.857 MB / 0.9667 GB, free: 65.88 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007212/2.819, allocations: 43.48 kB / 0.9668 GB, free: 65.85 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04088/2.86, allocations: 17.09 MB / 0.9834 GB, free: 53.31 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/2.86, allocations: 0 / 0.9834 GB, free: 53.31 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0404/2.9, allocations: 12.66 MB / 0.9958 GB, free: 42.75 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003924/2.904, allocations: 0.9366 MB / 0.9967 GB, free: 41.79 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001737/2.906, allocations: 42.56 kB / 0.9968 GB, free: 41.75 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005182/2.911, allocations: 211.7 kB / 0.997 GB, free: 41.54 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001152/2.912, allocations: 154.2 kB / 0.9971 GB, free: 41.39 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003461/2.913, allocations: 70.33 kB / 0.9972 GB, free: 41.32 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.00819/2.921, allocations: 2.991 MB / 1 GB, free: 38.34 MB / 0.4949 GB Notification: Performance of sort global known variables: time 9.72e-07/2.921, allocations: 0 / 1 GB, free: 38.34 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.009994/2.931, allocations: 1.454 MB / 1.002 GB, free: 36.9 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (167): * Single equations (assignments): 163 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 52} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04166/2.973, allocations: 13.55 MB / 1.015 GB, free: 23.32 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.01882/2.992, allocations: 7.883 MB / 1.022 GB, free: 15.45 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 7.253e-06/2.992, allocations: 0 / 1.022 GB, free: 15.45 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.00689/2.999, allocations: 2.96 MB / 1.025 GB, free: 12.48 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004688/3.003, allocations: 498.3 kB / 1.026 GB, free: 12.01 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4561/3.459, allocations: 128.7 MB / 1.151 GB, free: 50.76 MB / 0.5574 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01132/3.471, allocations: 4.221 MB / 1.156 GB, free: 49.95 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006696/3.478, allocations: 2.541 MB / 1.158 GB, free: 49.95 MB / 0.5574 GB Notification: Performance of SimCode: time 1.513e-06/3.478, allocations: 1.031 kB / 1.158 GB, free: 49.95 MB / 0.5574 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.191/8.669, allocations: 128.7 MB / 1.284 GB, free: 141.6 MB / 0.5574 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointUSP2_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointUSP2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2_res.mat does not exist to compare? outputFormat=mat