Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.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.FreeMotion2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion2",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.001337/0.001337, allocations: 176.5 kB / 17.06 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.458/1.458, allocations: 223.2 MB / 241 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008898/0.0008899, allocations: 93.03 kB / 292.1 MB, free: 10.94 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.3941/0.3941, allocations: 44.22 MB / 387.5 MB, free: 38.79 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003506/0.0003509, allocations: 8 kB / 460 MB, free: 1.438 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3947/0.3951, allocations: 61.9 MB / 0.5096 GB, free: 37.9 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1506/0.5458, allocations: 110.4 MB / 0.6174 GB, free: 0.582 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002572/0.5461, allocations: 87.88 kB / 0.6175 GB, free: 0.5039 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.633/1.179, allocations: 118.2 MB / 0.733 GB, free: 93.38 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.234e-06/1.179, allocations: 3.906 kB / 0.733 GB, free: 93.38 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004753/1.18, allocations: 116.3 kB / 0.7331 GB, free: 93.37 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1982 * Number of variables: 1982 Notification: Performance of Generate backend data structure: time 0.02321/1.203, allocations: 6.326 MB / 0.7393 GB, free: 90.28 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.819e-05/1.203, allocations: 11.16 kB / 0.7393 GB, free: 90.28 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00501/1.208, allocations: 0.9963 MB / 0.7403 GB, free: 89.8 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02747/1.235, allocations: 6.961 MB / 0.7471 GB, free: 88.74 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02016/1.256, allocations: 7.482 MB / 0.7544 GB, free: 85.81 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004884/1.256, allocations: 428 kB / 0.7548 GB, free: 85.65 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003221/1.259, allocations: 0.5789 MB / 0.7553 GB, free: 85.47 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03938/1.299, allocations: 13.67 MB / 0.7687 GB, free: 76.05 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007152/1.3, allocations: 79.25 kB / 0.7688 GB, free: 75.98 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003537/1.303, allocations: 271.9 kB / 0.769 GB, free: 75.71 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002151/1.305, allocations: 1.283 MB / 0.7703 GB, free: 74.43 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02505/1.33, allocations: 11.45 MB / 0.7815 GB, free: 62.96 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07819/1.409, allocations: 61.28 MB / 0.8413 GB, free: 15.75 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01629/1.425, allocations: 5.649 MB / 0.8468 GB, free: 9.945 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001135/1.426, allocations: 0.6876 MB / 0.8475 GB, free: 9.152 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.059e-05/1.426, allocations: 60.56 kB / 0.8475 GB, free: 9.086 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=245): time 7.674e-06/1.426, allocations: 0 / 0.8475 GB, free: 9.086 MB / 0.4948 GB Notification: Performance of matching and sorting (n=311): time 0.4496/1.876, allocations: 33.4 MB / 0.8802 GB, free: 112.1 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001051/1.876, allocations: 266.6 kB / 0.8804 GB, free: 111.9 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00955/1.886, allocations: 4.604 MB / 0.8849 GB, free: 111.5 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001045/1.887, allocations: 76.44 kB / 0.885 GB, free: 111.4 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003334/1.89, allocations: 3.978 MB / 0.8889 GB, free: 109.4 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001494/1.892, allocations: 1.157 MB / 0.89 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005137/1.892, allocations: 151.9 kB / 0.8901 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0003611/1.893, allocations: 0.6224 MB / 0.8907 GB, free: 108.4 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005101/1.898, allocations: 3.264 MB / 0.8939 GB, free: 108.4 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008103/1.906, allocations: 7.427 MB / 0.9012 GB, free: 103.1 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0123/1.918, allocations: 4.853 MB / 0.9059 GB, free: 101.8 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003396/1.919, allocations: 44.3 kB / 0.906 GB, free: 101.8 MB / 0.5105 GB Notification: Performance of matching and sorting (n=985) (initialization): time 0.03438/1.953, allocations: 12.41 MB / 0.9181 GB, free: 97.45 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.00044/1.953, allocations: 70.17 kB / 0.9182 GB, free: 97.45 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000613/1.954, allocations: 142.2 kB / 0.9183 GB, free: 97.45 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007016/1.961, allocations: 2.136 MB / 0.9204 GB, free: 96.99 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006953/1.968, allocations: 1.723 MB / 0.9221 GB, free: 96.79 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01957/1.988, allocations: 14.83 MB / 0.9365 GB, free: 89.07 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01145/1.999, allocations: 442.5 kB / 0.937 GB, free: 88.93 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002924/2.002, allocations: 445.9 kB / 0.9374 GB, free: 88.88 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 663 * Number of states: 0 () * Number of discrete variables: 44 (universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],freeMotion.arrow.arrowLine.twoHeadedArrow,freeMotion.arrow.headAtOrigin,freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[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 (909): * Single equations (assignments): 904 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,100.0%) 24,(3,100.0%) 24} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01042/2.013, allocations: 2.771 MB / 0.9401 GB, free: 87.57 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002232/2.015, allocations: 490.2 kB / 0.9406 GB, free: 87.31 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01811/2.033, allocations: 6.965 MB / 0.9474 GB, free: 84.61 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.466e-05/2.033, allocations: 31.56 kB / 0.9474 GB, free: 84.61 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.35e-05/2.033, allocations: 11.69 kB / 0.9474 GB, free: 84.61 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.52e-05/2.033, allocations: 13.88 kB / 0.9474 GB, free: 84.61 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0338/2.067, allocations: 15.82 MB / 0.9629 GB, free: 78.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.537e-05/2.067, allocations: 3.375 kB / 0.9629 GB, free: 78.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002488/2.07, allocations: 0.4907 MB / 0.9633 GB, free: 78.36 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004638/2.074, allocations: 1.875 MB / 0.9652 GB, free: 77.91 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005948/2.075, allocations: 66.05 kB / 0.9652 GB, free: 77.88 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01573/2.091, allocations: 13.31 MB / 0.9782 GB, free: 68.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.081e-06/2.091, allocations: 8 kB / 0.9782 GB, free: 68.79 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01675/2.108, allocations: 11.99 MB / 0.99 GB, free: 58.03 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002949/2.111, allocations: 0.5336 MB / 0.9905 GB, free: 57.49 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001117/2.112, allocations: 63.44 kB / 0.9905 GB, free: 57.43 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002324/2.114, allocations: 212.5 kB / 0.9907 GB, free: 57.3 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005389/2.115, allocations: 202.2 kB / 0.9909 GB, free: 57.17 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002208/2.115, allocations: 83.8 kB / 0.991 GB, free: 57.09 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.005341/2.12, allocations: 3.26 MB / 0.9942 GB, free: 54.42 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.5e-07/2.12, allocations: 0 / 0.9942 GB, free: 54.42 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009105/2.129, allocations: 1.47 MB / 0.9956 GB, free: 52.96 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 12 (freeMotion.r_rel_a[1],freeMotion.v_rel_a[1],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b,prismatic1.s,prismatic1.v,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.w_b) * 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 (249): * Single equations (assignments): 244 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(7,46.9%) 17,(7,46.9%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01572/2.145, allocations: 14 MB / 1.009 GB, free: 40.21 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01216/2.157, allocations: 8.138 MB / 1.017 GB, free: 33.02 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.347e-05/2.157, allocations: 4 kB / 1.017 GB, free: 33.01 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.006403/2.164, allocations: 3.882 MB / 1.021 GB, free: 29.72 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004274/2.168, allocations: 0.6303 MB / 1.022 GB, free: 29.19 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4449/2.613, allocations: 153.8 MB / 1.172 GB, free: 60.54 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007867/2.621, allocations: 4.44 MB / 1.176 GB, free: 59.69 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.008542/2.63, allocations: 2.452 MB / 1.179 GB, free: 59.64 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006898/2.636, allocations: 2.734 MB / 1.181 GB, free: 58.96 MB / 0.5417 GB Notification: Performance of SimCode: time 1.673e-06/2.636, allocations: 0 / 1.181 GB, free: 58.96 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5067/3.143, allocations: 117.5 MB / 1.296 GB, free: 119.9 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001513/3.143, allocations: 194 kB / 1.296 GB, free: 119.7 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.931/9.074, allocations: 7.156 kB / 1.296 GB, free: 119.7 MB / 0.5573 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion2_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat does not exist to compare? outputFormat=mat