Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSP2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUSP2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSP2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUSP2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001509/0.001509, allocations: 169.9 kB / 8.742 MB, free: 344 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.54/1.54, allocations: 221.5 MB / 230.7 MB, free: 7.562 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009663/0.0009663, allocations: 104.3 kB / 281.6 MB, free: 5.305 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2525/0.2525, allocations: 44.14 MB / 376.5 MB, free: 3.031 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.983e-05/1.985e-05, allocations: 4.219 kB / 444.7 MB, free: 15.13 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1392/0.1393, allocations: 61.91 MB / 0.4948 GB, free: 1.152 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4842/0.6235, allocations: 116 MB / 0.6081 GB, free: 12.29 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002222/0.6238, allocations: 79.95 kB / 0.6081 GB, free: 12.21 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6918/1.316, allocations: 122.6 MB / 0.7279 GB, free: 115.2 MB / 0.4948 GB Notification: Performance of FrontEnd: time 4.068e-06/1.316, allocations: 0 / 0.7279 GB, free: 115.2 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.000314/1.316, allocations: 108.7 kB / 0.728 GB, free: 115.2 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: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.02191/1.338, allocations: 5.631 MB / 0.7335 GB, free: 113.1 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.613e-05/1.338, allocations: 19.05 kB / 0.7335 GB, free: 113.1 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02172/1.36, allocations: 4.725 MB / 0.7381 GB, free: 112.7 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01782/1.378, allocations: 6.336 MB / 0.7443 GB, free: 111.9 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004546/1.378, allocations: 266.2 kB / 0.7446 GB, free: 111.9 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002954/1.381, allocations: 324.5 kB / 0.7449 GB, free: 111.9 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01763/1.399, allocations: 8.462 MB / 0.7531 GB, free: 110.7 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02712/1.426, allocations: 12.07 MB / 0.7649 GB, free: 104.3 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002386/1.426, allocations: 60.75 kB / 0.765 GB, free: 104.3 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001009/1.427, allocations: 36.28 kB / 0.765 GB, free: 104.3 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001642/1.429, allocations: 1.301 MB / 0.7663 GB, free: 104.1 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06068/1.49, allocations: 57.59 MB / 0.8225 GB, free: 53.67 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004714/1.494, allocations: 3.929 MB / 0.8264 GB, free: 49.6 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002945/1.497, allocations: 2.624 MB / 0.8289 GB, free: 46.96 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01553/1.513, allocations: 11.71 MB / 0.8404 GB, free: 34.78 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.601e-05/1.513, allocations: 63.56 kB / 0.8404 GB, free: 34.71 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=191): time 5.66e-06/1.513, allocations: 0 / 0.8404 GB, free: 34.71 MB / 0.4948 GB Notification: Performance of matching and sorting (n=242): time 0.07223/1.585, allocations: 33.45 MB / 0.8731 GB, free: 1.133 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.056e-05/1.585, allocations: 227.6 kB / 0.8733 GB, free: 0.8594 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006535/1.592, allocations: 3.644 MB / 0.8769 GB, free: 13.2 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.000686/1.593, allocations: 25.7 kB / 0.8769 GB, free: 13.17 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003201/1.596, allocations: 3.966 MB / 0.8808 GB, free: 9.148 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001385/1.597, allocations: 0.8944 MB / 0.8816 GB, free: 8.242 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003399/1.598, allocations: 0 / 0.8816 GB, free: 8.242 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0004817/1.598, allocations: 0.6162 MB / 0.8822 GB, free: 7.621 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004411/1.602, allocations: 3.06 MB / 0.8852 GB, free: 4.559 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3931/1.996, allocations: 7.448 MB / 0.8925 GB, free: 114.8 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009105/2.005, allocations: 4.659 MB / 0.897 GB, free: 114.8 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002059/2.005, allocations: 45.03 kB / 0.8971 GB, free: 114.8 MB / 0.5105 GB Notification: Performance of matching and sorting (n=968) (initialization): time 0.0362/2.041, allocations: 12.82 MB / 0.9096 GB, free: 114.2 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002448/2.042, allocations: 72.41 kB / 0.9097 GB, free: 114.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003321/2.042, allocations: 156.6 kB / 0.9098 GB, free: 114.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01206/2.054, allocations: 3.783 MB / 0.9135 GB, free: 114.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006179/2.06, allocations: 1.664 MB / 0.9152 GB, free: 114 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02468/2.085, allocations: 16.52 MB / 0.9313 GB, free: 109.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007907/2.093, allocations: 352.9 kB / 0.9316 GB, free: 109.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002558/2.095, allocations: 448.7 kB / 0.9321 GB, free: 109.3 MB / 0.5105 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.004143/2.1, allocations: 496.4 kB / 0.9325 GB, free: 109 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02457/2.124, allocations: 7.916 MB / 0.9403 GB, free: 106.8 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001808/2.126, allocations: 404.4 kB / 0.9406 GB, free: 106.8 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02535/2.151, allocations: 7.886 MB / 0.9483 GB, free: 104.3 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.982e-05/2.152, allocations: 24.78 kB / 0.9484 GB, free: 104.3 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-05/2.152, allocations: 17.8 kB / 0.9484 GB, free: 104.3 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.818e-05/2.152, allocations: 14.16 kB / 0.9484 GB, free: 104.3 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04881/2.201, allocations: 16.21 MB / 0.9642 GB, free: 98.53 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.346e-05/2.201, allocations: 3.469 kB / 0.9642 GB, free: 98.53 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003023/2.204, allocations: 381.5 kB / 0.9646 GB, free: 98.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01582/2.22, allocations: 3.828 MB / 0.9683 GB, free: 97.83 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008666/2.221, allocations: 11.06 kB / 0.9683 GB, free: 97.82 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02898/2.25, allocations: 15 MB / 0.983 GB, free: 87.67 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.606e-06/2.25, allocations: 4 kB / 0.983 GB, free: 87.66 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03134/2.281, allocations: 12.34 MB / 0.9951 GB, free: 77.39 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001821/2.283, allocations: 427.4 kB / 0.9955 GB, free: 76.96 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001986/2.285, allocations: 0 / 0.9955 GB, free: 76.96 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004956/2.29, allocations: 175.7 kB / 0.9956 GB, free: 76.79 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001196/2.291, allocations: 158.2 kB / 0.9958 GB, free: 76.64 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007094/2.292, allocations: 60.77 kB / 0.9958 GB, free: 76.58 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.007718/2.3, allocations: 2.436 MB / 0.9982 GB, free: 74.14 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.01e-07/2.3, allocations: 0 / 0.9982 GB, free: 74.14 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01327/2.313, allocations: 1.269 MB / 0.9995 GB, free: 72.89 MB / 0.5105 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.03365/2.347, allocations: 13.22 MB / 1.012 GB, free: 59.63 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01566/2.362, allocations: 7.421 MB / 1.02 GB, free: 52.24 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.107e-06/2.362, allocations: 0.9375 kB / 1.02 GB, free: 52.24 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005335/2.368, allocations: 2.843 MB / 1.022 GB, free: 49.39 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00357/2.371, allocations: 404.5 kB / 1.023 GB, free: 49 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03983/2.411, allocations: 12.11 MB / 1.035 GB, free: 36.86 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007233/2.418, allocations: 4.204 MB / 1.039 GB, free: 32.65 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.008879/2.427, allocations: 2.212 MB / 1.041 GB, free: 30.45 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005247/2.433, allocations: 2.464 MB / 1.043 GB, free: 27.99 MB / 0.5105 GB Notification: Performance of SimCode: time 1.342e-06/2.433, allocations: 0 / 1.043 GB, free: 27.99 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5314/2.964, allocations: 104.3 MB / 1.145 GB, free: 117.6 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002088/2.964, allocations: 128.5 kB / 1.145 GB, free: 117.4 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.812/7.776, allocations: 0 / 1.145 GB, free: 117.4 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUSP2_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUSP2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2_res.mat does not exist to compare? outputFormat=mat