Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSP2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointUSP2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSP2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointUSP2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00111/0.00111, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.277/1.277, allocations: 225.4 MB / 240.1 MB, free: 15.13 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008259/0.0008259, allocations: 89.89 kB / 292.1 MB, free: 5.945 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1688/0.1688, allocations: 45.15 MB / 389.3 MB, free: 11.88 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.274e-05/3.286e-05, allocations: 4 kB / 460.5 MB, free: 69.93 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09867/0.09872, allocations: 63.25 MB / 0.5115 GB, free: 6.707 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3638/0.4625, allocations: 117.6 MB / 0.6263 GB, free: 8.633 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002138/0.4628, allocations: 75.09 kB / 0.6264 GB, free: 8.598 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3029/0.7657, allocations: 127.4 MB / 0.7508 GB, free: 0.7812 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.713e-06/0.7658, allocations: 0 / 0.7508 GB, free: 0.7812 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0003028/0.7661, allocations: 116 kB / 0.7509 GB, free: 0.668 MB / 0.5261 GB 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.2747/1.041, allocations: 5.658 MB / 0.7564 GB, free: 117.8 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 6.333e-05/1.041, allocations: 13.53 kB / 0.7564 GB, free: 117.8 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003894/1.045, allocations: 0.9712 MB / 0.7574 GB, free: 117.8 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01943/1.064, allocations: 4.727 MB / 0.762 GB, free: 117.4 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01381/1.078, allocations: 5.698 MB / 0.7676 GB, free: 116.9 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005237/1.079, allocations: 445.3 kB / 0.768 GB, free: 116.8 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002463/1.081, allocations: 0.5463 MB / 0.7685 GB, free: 116.8 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02772/1.109, allocations: 14.07 MB / 0.7823 GB, free: 113.8 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003406/1.109, allocations: 72.77 kB / 0.7823 GB, free: 113.8 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001896/1.111, allocations: 263 kB / 0.7826 GB, free: 113.8 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00165/1.113, allocations: 1.291 MB / 0.7838 GB, free: 113.8 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02052/1.133, allocations: 11.66 MB / 0.7952 GB, free: 113.7 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07178/1.205, allocations: 59.29 MB / 0.8531 GB, free: 71.7 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01063/1.216, allocations: 4.635 MB / 0.8577 GB, free: 69.95 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002985/1.219, allocations: 2.712 MB / 0.8603 GB, free: 68.76 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01611/1.235, allocations: 12.58 MB / 0.8726 GB, free: 61.61 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.163e-05/1.235, allocations: 57.53 kB / 0.8726 GB, free: 61.56 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=191): time 5.11e-06/1.235, allocations: 0 / 0.8726 GB, free: 61.56 MB / 0.5261 GB Notification: Performance of matching and sorting (n=242): time 0.08822/1.323, allocations: 32.75 MB / 0.9046 GB, free: 35.81 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.101e-05/1.323, allocations: 231.6 kB / 0.9048 GB, free: 35.54 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006569/1.33, allocations: 4.165 MB / 0.9089 GB, free: 31.84 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0004772/1.33, allocations: 61.7 kB / 0.909 GB, free: 31.77 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001655/1.332, allocations: 3.912 MB / 0.9128 GB, free: 28.27 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007929/1.333, allocations: 0.9131 MB / 0.9137 GB, free: 27.46 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003183/1.333, allocations: 147.9 kB / 0.9138 GB, free: 27.32 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002537/1.333, allocations: 0.6071 MB / 0.9144 GB, free: 26.79 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003511/1.337, allocations: 3.159 MB / 0.9175 GB, free: 23.93 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004801/1.342, allocations: 7.431 MB / 0.9248 GB, free: 14.79 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004975/1.347, allocations: 4.744 MB / 0.9294 GB, free: 10.55 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.449e-05/1.347, allocations: 48 kB / 0.9294 GB, free: 10.5 MB / 0.5261 GB Notification: Performance of matching and sorting (n=942) (initialization): time 0.02776/1.375, allocations: 13.68 MB / 0.9428 GB, free: 12.81 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002204/1.375, allocations: 75.98 kB / 0.9429 GB, free: 12.73 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002515/1.375, allocations: 152 kB / 0.943 GB, free: 12.59 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01212/1.387, allocations: 3.802 MB / 0.9467 GB, free: 8.777 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005861/1.393, allocations: 1.606 MB / 0.9483 GB, free: 7.168 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3027/1.696, allocations: 18 MB / 0.9659 GB, free: 117.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006453/1.702, allocations: 487.3 kB / 0.9663 GB, free: 117.8 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001635/1.704, allocations: 431.2 kB / 0.9668 GB, free: 117.8 MB / 0.5417 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 () * 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.001301/1.705, allocations: 0.6506 MB / 0.9674 GB, free: 117.7 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001/1.706, allocations: 436.9 kB / 0.9678 GB, free: 117.7 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01746/1.724, allocations: 8.079 MB / 0.9757 GB, free: 117.5 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.829e-05/1.724, allocations: 26.22 kB / 0.9757 GB, free: 117.5 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.692e-05/1.724, allocations: 11.19 kB / 0.9757 GB, free: 117.5 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-05/1.724, allocations: 16.75 kB / 0.9757 GB, free: 117.5 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0295/1.754, allocations: 17.38 MB / 0.9927 GB, free: 116.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-05/1.754, allocations: 3.688 kB / 0.9927 GB, free: 116.4 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001845/1.756, allocations: 383.6 kB / 0.9931 GB, free: 116.4 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01031/1.766, allocations: 3.854 MB / 0.9969 GB, free: 115.8 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004859/1.766, allocations: 42.41 kB / 0.9969 GB, free: 115.8 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01936/1.786, allocations: 16.44 MB / 1.013 GB, free: 109 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/1.786, allocations: 3.562 kB / 1.013 GB, free: 109 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02103/1.807, allocations: 12.55 MB / 1.025 GB, free: 104.7 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001525/1.808, allocations: 467.7 kB / 1.026 GB, free: 104.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001389/1.81, allocations: 42.81 kB / 1.026 GB, free: 104.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003083/1.813, allocations: 210.2 kB / 1.026 GB, free: 104.4 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006718/1.814, allocations: 147.3 kB / 1.026 GB, free: 104.3 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002814/1.814, allocations: 64.69 kB / 1.026 GB, free: 104.3 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.00506/1.819, allocations: 2.906 MB / 1.029 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.8e-07/1.819, allocations: 0 / 1.029 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006959/1.826, allocations: 1.456 MB / 1.03 GB, free: 103.2 MB / 0.5417 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 () * 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.02134/1.847, allocations: 13.45 MB / 1.043 GB, free: 97.87 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01043/1.858, allocations: 7.741 MB / 1.051 GB, free: 95.26 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/1.858, allocations: 3.219 kB / 1.051 GB, free: 95.26 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.003529/1.861, allocations: 2.908 MB / 1.054 GB, free: 93.5 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003184/1.865, allocations: 499.7 kB / 1.054 GB, free: 93.08 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02463/1.889, allocations: 12.42 MB / 1.067 GB, free: 82.38 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003451/1.893, allocations: 4.209 MB / 1.071 GB, free: 79.25 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.004678/1.897, allocations: 2.187 MB / 1.073 GB, free: 78.01 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002392/1.9, allocations: 2.469 MB / 1.075 GB, free: 75.71 MB / 0.5417 GB Notification: Performance of SimCode: time 1.272e-06/1.9, allocations: 0 / 1.075 GB, free: 75.71 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3953/2.295, allocations: 110.9 MB / 1.183 GB, free: 122.2 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001333/2.295, allocations: 167.7 kB / 1.184 GB, free: 121.9 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.175/6.47, allocations: 0 / 1.184 GB, free: 121.9 MB / 0.5573 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointUSP2_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointUSP2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP2_res.mat does not exist to compare? outputFormat=mat