Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.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.FreeMotionScalarInit4,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit4",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.001853/0.001853, allocations: 183.7 kB / 13.19 MB, free: 2.129 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.632/1.632, allocations: 205.2 MB / 218.9 MB, free: 9.203 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.0009317/0.000932, allocations: 84.59 kB / 267 MB, free: 9.277 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4406/0.4406, allocations: 43.46 MB / 358.6 MB, free: 51.58 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.383e-05/4.385e-05, allocations: 4 kB / 425.4 MB, free: 8.102 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1815/0.1816, allocations: 58.84 MB / 484.3 MB, free: 13.15 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5246/0.7063, allocations: 109 MB / 0.5794 GB, free: 12.85 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002497/0.7066, allocations: 75.06 kB / 0.5795 GB, free: 12.81 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2608/0.9674, allocations: 99.47 MB / 0.6766 GB, free: 1.887 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.605e-06/0.9675, allocations: 0 / 0.6766 GB, free: 1.887 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002672/0.9678, allocations: 92 kB / 0.6767 GB, free: 1.797 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: 1897 * Number of variables: 1897 Notification: Performance of Generate backend data structure: time 0.01986/0.9876, allocations: 4.7 MB / 0.6813 GB, free: 13.03 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.081e-05/0.9877, allocations: 15.97 kB / 0.6813 GB, free: 13.02 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004135/0.9918, allocations: 0.9557 MB / 0.6822 GB, free: 12.05 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01783/1.01, allocations: 3.635 MB / 0.6858 GB, free: 8.398 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01697/1.027, allocations: 4.921 MB / 0.6906 GB, free: 3.422 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006163/1.027, allocations: 379.4 kB / 0.6909 GB, free: 3.051 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004244/1.032, allocations: 0.4997 MB / 0.6914 GB, free: 2.551 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4182/1.45, allocations: 12.27 MB / 0.7034 GB, free: 94.1 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002848/1.45, allocations: 35.73 kB / 0.7035 GB, free: 94.1 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002583/1.453, allocations: 223.9 kB / 0.7037 GB, free: 94.1 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002045/1.455, allocations: 1.333 MB / 0.705 GB, free: 94.09 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02683/1.482, allocations: 11.48 MB / 0.7162 GB, free: 94.04 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07848/1.56, allocations: 42.41 MB / 0.7576 GB, free: 74.07 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01187/1.572, allocations: 4.963 MB / 0.7624 GB, free: 71.79 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003746/1.576, allocations: 2.386 MB / 0.7648 GB, free: 70.86 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01412/1.59, allocations: 6.952 MB / 0.7716 GB, free: 67.01 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.346e-05/1.59, allocations: 53.83 kB / 0.7716 GB, free: 66.96 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=238): time 8.446e-06/1.59, allocations: 0 / 0.7716 GB, free: 66.96 MB / 0.4948 GB Notification: Performance of matching and sorting (n=259): time 0.04315/1.633, allocations: 16.29 MB / 0.7875 GB, free: 62.3 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.66e-05/1.634, allocations: 82.42 kB / 0.7876 GB, free: 62.23 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008354/1.642, allocations: 2.836 MB / 0.7904 GB, free: 61.2 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0005816/1.642, allocations: 64.92 kB / 0.7904 GB, free: 61.14 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002485/1.645, allocations: 3.308 MB / 0.7937 GB, free: 58.61 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001341/1.646, allocations: 0.9655 MB / 0.7946 GB, free: 57.91 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007059/1.647, allocations: 124.3 kB / 0.7947 GB, free: 57.81 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0006249/1.648, allocations: 0.5678 MB / 0.7953 GB, free: 57.39 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003878/1.652, allocations: 2.428 MB / 0.7977 GB, free: 56.6 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005606/1.657, allocations: 5.814 MB / 0.8033 GB, free: 51.25 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005579/1.663, allocations: 3.796 MB / 0.807 GB, free: 49.99 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001281/1.663, allocations: 31.44 kB / 0.8071 GB, free: 49.99 MB / 0.4948 GB Notification: Performance of matching and sorting (n=827) (initialization): time 0.02038/1.683, allocations: 9.997 MB / 0.8168 GB, free: 46.77 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001655/1.684, allocations: 54.56 kB / 0.8169 GB, free: 46.77 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002582/1.684, allocations: 122.3 kB / 0.817 GB, free: 46.77 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008536/1.692, allocations: 2.324 MB / 0.8193 GB, free: 46.53 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006358/1.699, allocations: 1.366 MB / 0.8206 GB, free: 45.44 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02294/1.722, allocations: 10.62 MB / 0.831 GB, free: 36.33 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0079/1.73, allocations: 344.2 kB / 0.8313 GB, free: 36.05 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00157/1.731, allocations: 362.4 kB / 0.8317 GB, free: 35.7 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 541 * Number of states: 0 () * Number of discrete variables: 30 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (742): * Single equations (assignments): 734 * Array equations: 6 * 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: 0 * Non-linear torn systems: 2 {4 5,3 27} Notification: Performance of prepare postOptimizeDAE: time 0.001303/1.733, allocations: 0.5432 MB / 0.8322 GB, free: 35.15 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007756/1.733, allocations: 308 kB / 0.8325 GB, free: 34.85 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008636/1.742, allocations: 4.636 MB / 0.837 GB, free: 30.94 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.94e-05/1.742, allocations: 51.47 kB / 0.8371 GB, free: 30.89 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.493e-05/1.742, allocations: 0 / 0.8371 GB, free: 30.89 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.703e-05/1.742, allocations: 10.55 kB / 0.8371 GB, free: 30.89 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0216/1.764, allocations: 10.99 MB / 0.8478 GB, free: 21.74 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.547e-05/1.764, allocations: 4 kB / 0.8478 GB, free: 21.73 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001768/1.766, allocations: 426.2 kB / 0.8482 GB, free: 21.39 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001868/1.768, allocations: 0.6939 MB / 0.8489 GB, free: 20.93 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001912/1.768, allocations: 51.19 kB / 0.8489 GB, free: 20.88 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002343/1.77, allocations: 2.411 MB / 0.8513 GB, free: 18.63 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/1.77, allocations: 7.938 kB / 0.8513 GB, free: 18.62 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009045/1.779, allocations: 7.544 MB / 0.8587 GB, free: 11.66 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001292/1.781, allocations: 359.3 kB / 0.859 GB, free: 11.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003714/1.781, allocations: 48 kB / 0.859 GB, free: 11.25 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00134/1.782, allocations: 143.7 kB / 0.8592 GB, free: 11.16 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003323/1.783, allocations: 147.5 kB / 0.8593 GB, free: 11.07 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001769/1.783, allocations: 71.03 kB / 0.8594 GB, free: 11.01 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002936/1.786, allocations: 1.917 MB / 0.8613 GB, free: 9.32 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.5e-07/1.786, allocations: 0 / 0.8613 GB, free: 9.32 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005901/1.792, allocations: 1.155 MB / 0.8624 GB, free: 8.176 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 12 (freeMotionScalarInit.r_rel_a_1,freeMotionScalarInit.r_rel_a_2,freeMotionScalarInit.r_rel_a_3,freeMotionScalarInit.v_rel_a_1,freeMotionScalarInit.v_rel_a_2,freeMotionScalarInit.v_rel_a_3,freeMotionScalarInit.angle_1,freeMotionScalarInit.angle_2,freeMotionScalarInit.angle_3,freeMotionScalarInit.derdd[1].u,freeMotionScalarInit.derdd[2].u,freeMotionScalarInit.derdd[3].u) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (212): * Single equations (assignments): 203 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01087/1.803, allocations: 9.445 MB / 0.8716 GB, free: 15.83 MB / 0.5105 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Mechanics/MultiBody/Joints.mo:1913:5-1915:161:writable] Warning: Variable freeMotionScalarInit.angle_1 has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Mechanics/MultiBody/Joints.mo:1916:5-1918:161:writable] Warning: Variable freeMotionScalarInit.angle_2 has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Mechanics/MultiBody/Joints.mo:1919:5-1921:161:writable] Warning: Variable freeMotionScalarInit.angle_3 has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. Notification: Performance of simCode: created initialization part: time 0.01146/1.814, allocations: 6.115 MB / 0.8776 GB, free: 10.28 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.228e-05/1.814, allocations: 8.188 kB / 0.8776 GB, free: 10.27 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004817/1.819, allocations: 2.512 MB / 0.8801 GB, free: 7.988 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003298/1.822, allocations: 443.4 kB / 0.8805 GB, free: 7.645 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3528/2.175, allocations: 11.17 MB / 0.8914 GB, free: 103.6 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007816/2.183, allocations: 3.903 MB / 0.8952 GB, free: 102.8 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.005773/2.189, allocations: 2.087 MB / 0.8972 GB, free: 102.7 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003987/2.193, allocations: 2.17 MB / 0.8993 GB, free: 102.7 MB / 0.5105 GB Notification: Performance of SimCode: time 1.503e-06/2.193, allocations: 2.688 kB / 0.8993 GB, free: 102.7 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1679/2.361, allocations: 83.08 MB / 0.9805 GB, free: 88.2 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001571/2.361, allocations: 185.6 kB / 0.9807 GB, free: 87.98 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.425/6.786, allocations: 0 / 0.9807 GB, free: 87.98 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit4_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit4.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4_res.mat does not exist to compare? outputFormat=mat