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.002512/0.002512, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.152/2.152, allocations: 205.3 MB / 214.1 MB, free: 14.12 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001126/0.001125, allocations: 93.67 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3487/0.3487, allocations: 43.49 MB / 353.6 MB, free: 2.262 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.219e-05/2.219e-05, allocations: 4.219 kB / 418.3 MB, free: 40.93 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4161/0.4161, allocations: 58.86 MB / 477.2 MB, free: 5.152 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2129/0.6291, allocations: 114 MB / 0.5773 GB, free: 1.145 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002632/0.6294, allocations: 75.97 kB / 0.5774 GB, free: 1.07 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.8291/1.459, allocations: 121.1 MB / 0.6956 GB, free: 108.4 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.345e-06/1.459, allocations: 4 kB / 0.6956 GB, free: 108.4 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0003505/1.459, allocations: 114.3 kB / 0.6958 GB, free: 108.4 MB / 475.1 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.02442/1.483, allocations: 5.648 MB / 0.7013 GB, free: 104.8 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.47e-05/1.483, allocations: 10.31 kB / 0.7013 GB, free: 104.8 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03491/1.518, allocations: 4.731 MB / 0.7059 GB, free: 102.4 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02472/1.543, allocations: 6.625 MB / 0.7124 GB, free: 96.88 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004826/1.544, allocations: 264.7 kB / 0.7126 GB, free: 96.61 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003379/1.547, allocations: 323.9 kB / 0.7129 GB, free: 96.29 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02124/1.568, allocations: 8.467 MB / 0.7212 GB, free: 87.83 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0321/1.601, allocations: 12.06 MB / 0.733 GB, free: 74.64 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003626/1.601, allocations: 67.41 kB / 0.733 GB, free: 74.58 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003137/1.604, allocations: 39.95 kB / 0.7331 GB, free: 74.54 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002915/1.607, allocations: 1.301 MB / 0.7343 GB, free: 73.24 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08936/1.696, allocations: 57.64 MB / 0.7906 GB, free: 14.12 MB / 475.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007279/1.704, allocations: 3.918 MB / 0.7945 GB, free: 10.04 MB / 475.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004977/1.709, allocations: 2.634 MB / 0.797 GB, free: 7.398 MB / 475.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02953/1.738, allocations: 11.73 MB / 0.8085 GB, free: 11.21 MB / 491.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.285e-05/1.739, allocations: 59.86 kB / 0.8086 GB, free: 11.14 MB / 491.1 MB Notification: Performance of pre-optimization done (n=191): time 6.342e-06/1.739, allocations: 0 / 0.8086 GB, free: 11.14 MB / 491.1 MB Notification: Performance of matching and sorting (n=242): time 0.4993/2.238, allocations: 33.54 MB / 0.8413 GB, free: 129.7 MB / 0.4952 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001126/2.238, allocations: 234 kB / 0.8415 GB, free: 129.4 MB / 0.4952 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01127/2.249, allocations: 3.675 MB / 0.8451 GB, free: 129.1 MB / 0.4952 GB Notification: Performance of collectPreVariables (initialization): time 0.0007157/2.25, allocations: 26.86 kB / 0.8451 GB, free: 129 MB / 0.4952 GB Notification: Performance of collectInitialEqns (initialization): time 0.004256/2.254, allocations: 3.901 MB / 0.849 GB, free: 127 MB / 0.4952 GB Notification: Performance of collectInitialBindings (initialization): time 0.001742/2.256, allocations: 0.8813 MB / 0.8498 GB, free: 126.4 MB / 0.4952 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009291/2.257, allocations: 0 / 0.8498 GB, free: 126.4 MB / 0.4952 GB Notification: Performance of setup shared object (initialization): time 0.0005038/2.258, allocations: 0.6258 MB / 0.8504 GB, free: 126.1 MB / 0.4952 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007911/2.266, allocations: 3.069 MB / 0.8534 GB, free: 126.1 MB / 0.4952 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01162/2.277, allocations: 7.451 MB / 0.8607 GB, free: 120.4 MB / 0.4952 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01137/2.289, allocations: 4.659 MB / 0.8652 GB, free: 120.1 MB / 0.4952 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000334/2.289, allocations: 45.38 kB / 0.8653 GB, free: 120.1 MB / 0.4952 GB Notification: Performance of matching and sorting (n=968) (initialization): time 0.04478/2.334, allocations: 12.7 MB / 0.8777 GB, free: 116.5 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001445/2.334, allocations: 71.78 kB / 0.8778 GB, free: 116.5 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002627/2.334, allocations: 158.6 kB / 0.8779 GB, free: 116.5 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0206/2.355, allocations: 3.781 MB / 0.8816 GB, free: 115.7 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01024/2.365, allocations: 1.668 MB / 0.8832 GB, free: 115.5 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03906/2.404, allocations: 16.53 MB / 0.8994 GB, free: 108.4 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009908/2.414, allocations: 346.3 kB / 0.8997 GB, free: 108.4 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002054/2.417, allocations: 449.6 kB / 0.9001 GB, free: 108.3 MB / 0.4952 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 716 * 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 (885): * Single equations (assignments): 881 * 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.002347/2.419, allocations: 493.2 kB / 0.9006 GB, free: 107.9 MB / 0.4952 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02971/2.449, allocations: 7.922 MB / 0.9083 GB, free: 105.5 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001793/2.45, allocations: 405.3 kB / 0.9087 GB, free: 105.2 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03083/2.481, allocations: 7.883 MB / 0.9164 GB, free: 100.2 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.174e-05/2.481, allocations: 28.62 kB / 0.9165 GB, free: 100.2 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.03e-05/2.481, allocations: 12 kB / 0.9165 GB, free: 100.2 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.778e-05/2.482, allocations: 9.188 kB / 0.9165 GB, free: 100.2 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05551/2.537, allocations: 16.23 MB / 0.9323 GB, free: 87.55 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-05/2.537, allocations: 0 / 0.9323 GB, free: 87.55 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003802/2.541, allocations: 388.1 kB / 0.9327 GB, free: 87.26 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02086/2.562, allocations: 3.824 MB / 0.9364 GB, free: 83.81 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006973/2.563, allocations: 12 kB / 0.9364 GB, free: 83.8 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03442/2.597, allocations: 15 MB / 0.9511 GB, free: 68.68 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.137e-06/2.597, allocations: 4.031 kB / 0.9511 GB, free: 68.68 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03765/2.635, allocations: 12.34 MB / 0.9632 GB, free: 56.27 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003859/2.639, allocations: 0.8979 MB / 0.964 GB, free: 55.34 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001607/2.64, allocations: 3.984 kB / 0.964 GB, free: 55.34 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005222/2.646, allocations: 179.7 kB / 0.9642 GB, free: 55.16 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00115/2.647, allocations: 150.2 kB / 0.9643 GB, free: 55.02 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003971/2.647, allocations: 60.84 kB / 0.9644 GB, free: 54.96 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.006483/2.654, allocations: 2.455 MB / 0.9668 GB, free: 52.5 MB / 0.4952 GB Notification: Performance of sort global known variables: time 9.72e-07/2.654, allocations: 0 / 0.9668 GB, free: 52.5 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.01057/2.664, allocations: 1.273 MB / 0.968 GB, free: 51.24 MB / 0.4952 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.03922/2.704, allocations: 13.23 MB / 0.981 GB, free: 37.98 MB / 0.4952 GB Notification: Performance of simCode: created initialization part: time 0.01634/2.72, allocations: 7.418 MB / 0.9882 GB, free: 30.59 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 1.022e-05/2.72, allocations: 3.844 kB / 0.9882 GB, free: 30.59 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.00619/2.726, allocations: 2.836 MB / 0.991 GB, free: 27.73 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004308/2.731, allocations: 413.3 kB / 0.9914 GB, free: 27.34 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04128/2.772, allocations: 12.77 MB / 1.004 GB, free: 14.51 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009943/2.782, allocations: 4.223 MB / 1.008 GB, free: 10.29 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006388/2.788, allocations: 2.518 MB / 1.01 GB, free: 7.77 MB / 0.4952 GB Notification: Performance of SimCode: time 1.423e-06/2.789, allocations: 4 kB / 1.01 GB, free: 7.766 MB / 0.4952 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.204/7.992, allocations: 127.1 MB / 1.135 GB, free: 68.86 MB / 0.5108 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