Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_ModelicaTest_MultiBody_Joints_JointUSP2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSP2,fileNamePrefix="ModelicaTest_3_2_3_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.001159/0.001159, allocations: 183.9 kB / 15.76 MB, free: 6.363 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.783/1.783, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.0008399/0.0008399, allocations: 98.8 kB / 270.2 MB, free: 13.36 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.2294/0.2294, allocations: 43.55 MB / 362 MB, free: 11.3 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003605/0.0003605, allocations: 16 kB / 431.5 MB, free: 19.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1283/0.1287, allocations: 58.85 MB / 490.3 MB, free: 8.574 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4398/0.5685, allocations: 114.7 MB / 0.5909 GB, free: 1.363 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002965/0.5689, allocations: 79.03 kB / 0.591 GB, free: 1.324 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5821/1.151, allocations: 123.5 MB / 0.7116 GB, free: 108 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.844e-06/1.151, allocations: 0 / 0.7116 GB, free: 108 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0004184/1.151, allocations: 111.6 kB / 0.7117 GB, free: 108 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.02428/1.176, allocations: 6.035 MB / 0.7176 GB, free: 106.7 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.783e-05/1.176, allocations: 12.94 kB / 0.7176 GB, free: 106.7 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00446/1.18, allocations: 0.9769 MB / 0.7186 GB, free: 106.6 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02134/1.202, allocations: 4.723 MB / 0.7232 GB, free: 106.2 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01835/1.22, allocations: 6.677 MB / 0.7297 GB, free: 105.5 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005952/1.221, allocations: 448.1 kB / 0.7301 GB, free: 105.5 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003353/1.224, allocations: 0.5447 MB / 0.7306 GB, free: 105.5 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03413/1.258, allocations: 14.21 MB / 0.7445 GB, free: 102.4 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004223/1.259, allocations: 69.61 kB / 0.7446 GB, free: 102.4 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00202/1.261, allocations: 263.4 kB / 0.7448 GB, free: 102.4 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001546/1.262, allocations: 1.294 MB / 0.7461 GB, free: 102.4 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02427/1.287, allocations: 11.9 MB / 0.7577 GB, free: 102.3 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06982/1.356, allocations: 59.33 MB / 0.8157 GB, free: 60.14 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01272/1.369, allocations: 4.676 MB / 0.8202 GB, free: 58.37 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01944/1.389, allocations: 12.61 MB / 0.8325 GB, free: 50.48 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.768e-05/1.389, allocations: 59.66 kB / 0.8326 GB, free: 50.42 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=191): time 4.94e-06/1.389, allocations: 0 / 0.8326 GB, free: 50.42 MB / 0.4948 GB Notification: Performance of matching and sorting (n=242): time 0.1244/1.513, allocations: 39.82 MB / 0.8715 GB, free: 16.9 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.418e-05/1.513, allocations: 231.6 kB / 0.8717 GB, free: 16.62 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00685/1.52, allocations: 4.276 MB / 0.8759 GB, free: 12.35 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0006522/1.521, allocations: 65.7 kB / 0.8759 GB, free: 12.28 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002622/1.524, allocations: 3.921 MB / 0.8798 GB, free: 8.355 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001391/1.525, allocations: 0.9056 MB / 0.8807 GB, free: 7.457 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004839/1.525, allocations: 144 kB / 0.8808 GB, free: 7.316 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000333/1.526, allocations: 0.604 MB / 0.8814 GB, free: 6.707 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004286/1.53, allocations: 3.255 MB / 0.8846 GB, free: 3.449 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007862/1.538, allocations: 7.526 MB / 0.8919 GB, free: 9.797 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007951/1.546, allocations: 4.811 MB / 0.8966 GB, free: 4.992 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.59e-05/1.546, allocations: 44 kB / 0.8966 GB, free: 4.949 MB / 0.5105 GB Notification: Performance of matching and sorting (n=942) (initialization): time 0.2915/1.838, allocations: 13.86 MB / 0.9102 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001789/1.838, allocations: 76.67 kB / 0.9103 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003488/1.838, allocations: 151.2 kB / 0.9104 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01288/1.851, allocations: 3.811 MB / 0.9141 GB, free: 108.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006083/1.857, allocations: 1.615 MB / 0.9157 GB, free: 108.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0247/1.882, allocations: 18.64 MB / 0.9339 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006966/1.889, allocations: 486.6 kB / 0.9344 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001912/1.891, allocations: 433.1 kB / 0.9348 GB, free: 107.3 MB / 0.5105 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.005947/1.897, allocations: 2.667 MB / 0.9374 GB, free: 107.1 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001236/1.898, allocations: 434.5 kB / 0.9378 GB, free: 107.1 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01672/1.915, allocations: 8.142 MB / 0.9458 GB, free: 106.4 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.857e-05/1.915, allocations: 26.94 kB / 0.9458 GB, free: 106.4 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.94e-05/1.915, allocations: 15.59 kB / 0.9458 GB, free: 106.4 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.292e-05/1.915, allocations: 12.25 kB / 0.9458 GB, free: 106.4 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0391/1.954, allocations: 17.46 MB / 0.9629 GB, free: 100.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-05/1.954, allocations: 0 / 0.9629 GB, free: 100.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002025/1.956, allocations: 384.8 kB / 0.9632 GB, free: 100.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01103/1.967, allocations: 3.86 MB / 0.967 GB, free: 99.64 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005316/1.968, allocations: 35.84 kB / 0.967 GB, free: 99.61 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02195/1.99, allocations: 17.1 MB / 0.9837 GB, free: 92.53 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/1.99, allocations: 3.156 kB / 0.9837 GB, free: 92.53 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02204/2.012, allocations: 12.65 MB / 0.9961 GB, free: 87.43 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003697/2.016, allocations: 0.9385 MB / 0.997 GB, free: 86.56 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001819/2.017, allocations: 44.48 kB / 0.997 GB, free: 86.52 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003673/2.021, allocations: 216.1 kB / 0.9972 GB, free: 86.39 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005877/2.022, allocations: 144.3 kB / 0.9974 GB, free: 86.31 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002113/2.022, allocations: 64.17 kB / 0.9974 GB, free: 86.25 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.005571/2.028, allocations: 2.997 MB / 1 GB, free: 83.8 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5.41e-07/2.028, allocations: 0 / 1 GB, free: 83.8 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008149/2.036, allocations: 1.455 MB / 1.002 GB, free: 82.36 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 () * 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.0231/2.059, allocations: 13.54 MB / 1.015 GB, free: 71.3 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01189/2.071, allocations: 7.898 MB / 1.023 GB, free: 64.65 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.505e-06/2.071, allocations: 0 / 1.023 GB, free: 64.65 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004003/2.075, allocations: 2.952 MB / 1.026 GB, free: 62.03 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003244/2.078, allocations: 493.2 kB / 1.026 GB, free: 61.61 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3108/2.389, allocations: 128 MB / 1.151 GB, free: 68.21 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007322/2.396, allocations: 4.215 MB / 1.155 GB, free: 67.4 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.008758/2.405, allocations: 2.183 MB / 1.157 GB, free: 67.36 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003731/2.409, allocations: 2.482 MB / 1.16 GB, free: 67.36 MB / 0.5261 GB Notification: Performance of SimCode: time 3.006e-06/2.409, allocations: 5.594 kB / 1.16 GB, free: 67.36 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1603/2.569, allocations: 109.6 MB / 1.267 GB, free: 19.52 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001468/2.569, allocations: 196.4 kB / 1.267 GB, free: 19.27 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.535/8.105, allocations: 0 / 1.267 GB, free: 19.27 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUSP2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUSP2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUSP2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUSP2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUSP2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_JointUSP2_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_JointUSP2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUSP2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUSP2_res.mat does not exist to compare? outputFormat=mat