Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP.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.JointUSP,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointUSP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSP,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointUSP",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.001497/0.001497, allocations: 182.4 kB / 13.66 MB, free: 1.664 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.115/2.115, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.001119/0.001118, allocations: 74.78 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2875/0.2875, allocations: 43.5 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.619e-05/3.645e-05, allocations: 4 kB / 425.4 MB, free: 23.29 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.1224, allocations: 58.87 MB / 484.2 MB, free: 12.37 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.523/0.6454, allocations: 107.5 MB / 0.5778 GB, free: 12.34 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002926/0.6458, allocations: 75.56 kB / 0.5779 GB, free: 12.31 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.337/0.9828, allocations: 75.16 MB / 0.6513 GB, free: 9.004 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.106e-06/0.9828, allocations: 0 / 0.6513 GB, free: 9.004 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002404/0.9831, allocations: 80 kB / 0.6514 GB, free: 8.926 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1292 * Number of variables: 1292 Notification: Performance of Generate backend data structure: time 0.0151/0.9982, allocations: 3.594 MB / 0.6549 GB, free: 5.273 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.858e-05/0.9983, allocations: 12.03 kB / 0.6549 GB, free: 5.262 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003116/1.001, allocations: 0.6554 MB / 0.6555 GB, free: 4.598 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006208/1.008, allocations: 0.6698 MB / 0.6562 GB, free: 3.922 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008959/1.017, allocations: 2.2 MB / 0.6583 GB, free: 1.672 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004863/1.017, allocations: 303.8 kB / 0.6586 GB, free: 1.375 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002062/1.019, allocations: 383.9 kB / 0.659 GB, free: 1 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03245/1.052, allocations: 8.471 MB / 0.6673 GB, free: 8.141 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002249/1.052, allocations: 19.81 kB / 0.6673 GB, free: 8.121 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001861/1.054, allocations: 171.9 kB / 0.6675 GB, free: 7.953 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002906/1.057, allocations: 0.7915 MB / 0.6682 GB, free: 7.156 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02617/1.083, allocations: 6.642 MB / 0.6747 GB, free: 0.5039 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08343/1.167, allocations: 27.82 MB / 0.7019 GB, free: 3.926 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0148/1.182, allocations: 1.909 MB / 0.7037 GB, free: 1.98 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003002/1.185, allocations: 0.821 MB / 0.7046 GB, free: 1.152 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4199/1.605, allocations: 6.349 MB / 0.7108 GB, free: 131.3 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.45e-05/1.605, allocations: 43.97 kB / 0.7108 GB, free: 131.3 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=77): time 4.439e-06/1.605, allocations: 2.875 kB / 0.7108 GB, free: 131.3 MB / 0.4948 GB Notification: Performance of matching and sorting (n=95): time 0.03155/1.636, allocations: 5.835 MB / 0.7165 GB, free: 129.5 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.216e-05/1.636, allocations: 144.6 kB / 0.7166 GB, free: 129.4 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006391/1.643, allocations: 2.201 MB / 0.7188 GB, free: 129.1 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002309/1.643, allocations: 38.8 kB / 0.7188 GB, free: 129.1 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.00236/1.645, allocations: 2.388 MB / 0.7212 GB, free: 127.8 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006346/1.646, allocations: 385.8 kB / 0.7215 GB, free: 127.6 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000387/1.646, allocations: 74.75 kB / 0.7216 GB, free: 127.6 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0003007/1.647, allocations: 471.2 kB / 0.722 GB, free: 127.3 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002773/1.65, allocations: 0.9107 MB / 0.7229 GB, free: 127.3 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004616/1.654, allocations: 3.218 MB / 0.7261 GB, free: 124.3 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004555/1.659, allocations: 1.685 MB / 0.7277 GB, free: 124.3 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001262/1.659, allocations: 22.91 kB / 0.7277 GB, free: 124.3 MB / 0.4948 GB Notification: Performance of matching and sorting (n=483) (initialization): time 0.01137/1.67, allocations: 3.954 MB / 0.7316 GB, free: 124 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 9.005e-05/1.671, allocations: 46.53 kB / 0.7316 GB, free: 124 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001131/1.671, allocations: 82.59 kB / 0.7317 GB, free: 124 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001464/1.671, allocations: 126.5 kB / 0.7318 GB, free: 124 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005605/1.676, allocations: 0.8974 MB / 0.7327 GB, free: 123.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000163/1.677, allocations: 162.5 kB / 0.7329 GB, free: 123.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004226/1.681, allocations: 171.3 kB / 0.733 GB, free: 123.9 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008137/1.682, allocations: 228.2 kB / 0.7333 GB, free: 123.9 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 376 * Number of states: 0 () * Number of discrete variables: 40 (jointUSP.prismatic.positiveBranch,prism.color[3],prism.color[2],prism.color[1],rRod2.color[3],rRod2.color[2],rRod2.color[1],rRod1.color[3],rRod1.color[2],rRod1.color[1],n2_ia.color[3],n2_ia.color[2],n2_ia.color[1],n1_a.color[3],n1_a.color[2],n1_a.color[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],Fixed1.color[3],Fixed1.color[2],Fixed1.color[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (483): * Single equations (assignments): 483 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008153/1.683, allocations: 413.3 kB / 0.7337 GB, free: 123.6 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006816/1.683, allocations: 221.9 kB / 0.7339 GB, free: 123.5 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002721/1.686, allocations: 1.109 MB / 0.7349 GB, free: 123.4 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.755e-05/1.686, allocations: 13.86 kB / 0.735 GB, free: 123.4 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.03e-05/1.686, allocations: 6.938 kB / 0.735 GB, free: 123.4 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.589e-05/1.686, allocations: 3.844 kB / 0.735 GB, free: 123.4 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0152/1.701, allocations: 6.141 MB / 0.741 GB, free: 121.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.743e-05/1.701, allocations: 20.25 kB / 0.741 GB, free: 121.9 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001533/1.703, allocations: 244.1 kB / 0.7412 GB, free: 121.8 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.819e-05/1.703, allocations: 34.09 kB / 0.7412 GB, free: 121.8 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001068/1.703, allocations: 47.91 kB / 0.7413 GB, free: 121.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.149e-05/1.703, allocations: 39.62 kB / 0.7413 GB, free: 121.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.211e-05/1.703, allocations: 30.69 kB / 0.7414 GB, free: 121.8 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003743/1.707, allocations: 3.754 MB / 0.745 GB, free: 118.6 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001042/1.708, allocations: 333 kB / 0.7453 GB, free: 118.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006262/1.709, allocations: 54.23 kB / 0.7454 GB, free: 118.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001764/1.711, allocations: 41.48 kB / 0.7454 GB, free: 118.4 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002739/1.711, allocations: 146.5 kB / 0.7456 GB, free: 118.4 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001047/1.711, allocations: 55.56 kB / 0.7456 GB, free: 118.4 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003956/1.715, allocations: 1.598 MB / 0.7472 GB, free: 118.2 MB / 0.4948 GB Notification: Performance of sort global known variables: time 7.71e-07/1.715, allocations: 0 / 0.7472 GB, free: 118.2 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005223/1.72, allocations: 0.6558 MB / 0.7478 GB, free: 118.2 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 89 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 133 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005165/1.725, allocations: 9.605 MB / 0.7572 GB, free: 109.3 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.005384/1.731, allocations: 2.274 MB / 0.7594 GB, free: 108.5 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.357e-05/1.731, allocations: 3.938 kB / 0.7594 GB, free: 108.5 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001314/1.732, allocations: 0.5595 MB / 0.76 GB, free: 108.3 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002292/1.735, allocations: 308.3 kB / 0.7603 GB, free: 108.2 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02204/1.757, allocations: 7.063 MB / 0.7672 GB, free: 104.8 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005655/1.762, allocations: 2.823 MB / 0.7699 GB, free: 103.7 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00321/1.766, allocations: 1.502 MB / 0.7714 GB, free: 102.4 MB / 0.4948 GB Notification: Performance of SimCode: time 1.442e-06/1.766, allocations: 0 / 0.7714 GB, free: 102.4 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.575/5.341, allocations: 57.11 MB / 0.8272 GB, free: 65.21 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointUSP_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointUSP.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP_res.mat does not exist to compare? outputFormat=mat