Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4,fileNamePrefix="ModelicaTest_3_2_3_cpp_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.002495/0.002495, allocations: 178.4 kB / 8.362 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.087/2.087, allocations: 205.3 MB / 214.1 MB, free: 14.14 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.001097/0.001097, allocations: 93.09 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.2954/0.2954, allocations: 43.49 MB / 353.6 MB, free: 2.266 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.831e-05/2.839e-05, allocations: 4.219 kB / 418.3 MB, free: 40.93 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4091/0.4091, allocations: 58.85 MB / 477.2 MB, free: 5.16 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2041/0.6133, allocations: 108.4 MB / 0.5718 GB, free: 6.77 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002637/0.6136, allocations: 75.97 kB / 0.5719 GB, free: 6.695 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.8557/1.469, allocations: 97.58 MB / 0.6672 GB, free: 109.3 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.635e-06/1.469, allocations: 3.875 kB / 0.6672 GB, free: 109.3 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0002898/1.47, allocations: 85.12 kB / 0.6673 GB, free: 109.3 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: 1897 * Number of variables: 1897 Notification: Performance of Generate backend data structure: time 0.0327/1.502, allocations: 4.705 MB / 0.6719 GB, free: 107.3 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.582e-05/1.502, allocations: 15 kB / 0.6719 GB, free: 107.3 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03889/1.541, allocations: 3.635 MB / 0.6754 GB, free: 107 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02514/1.567, allocations: 4.92 MB / 0.6803 GB, free: 106.3 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004943/1.567, allocations: 160.2 kB / 0.6804 GB, free: 106.3 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003926/1.571, allocations: 296.7 kB / 0.6807 GB, free: 106.3 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.029/1.6, allocations: 8.53 MB / 0.689 GB, free: 104.5 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04154/1.642, allocations: 11.25 MB / 0.7 GB, free: 99.75 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003312/1.642, allocations: 34.45 kB / 0.7 GB, free: 99.74 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003253/1.645, allocations: 13.84 kB / 0.7001 GB, free: 99.74 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00425/1.65, allocations: 1.337 MB / 0.7014 GB, free: 99.49 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09004/1.74, allocations: 39.91 MB / 0.7403 GB, free: 65.8 MB / 475.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007748/1.748, allocations: 4.363 MB / 0.7446 GB, free: 61.19 MB / 475.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004659/1.752, allocations: 2.323 MB / 0.7469 GB, free: 58.86 MB / 475.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001936/1.754, allocations: 1.649 MB / 0.7485 GB, free: 56.95 MB / 475.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.357e-05/1.755, allocations: 56.56 kB / 0.7485 GB, free: 56.89 MB / 475.1 MB Notification: Performance of pre-optimization done (n=272): time 7.243e-06/1.755, allocations: 0 / 0.7485 GB, free: 56.89 MB / 475.1 MB Notification: Performance of matching and sorting (n=291): time 0.05596/1.81, allocations: 17.09 MB / 0.7652 GB, free: 39.62 MB / 475.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.144e-05/1.811, allocations: 103.1 kB / 0.7653 GB, free: 39.51 MB / 475.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005584/1.816, allocations: 2.61 MB / 0.7679 GB, free: 36.89 MB / 475.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006764/1.817, allocations: 25.7 kB / 0.7679 GB, free: 36.86 MB / 475.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002648/1.82, allocations: 3.315 MB / 0.7711 GB, free: 33.49 MB / 475.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001704/1.821, allocations: 1.044 MB / 0.7721 GB, free: 32.43 MB / 475.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008172/1.822, allocations: 4 kB / 0.7722 GB, free: 32.43 MB / 475.1 MB Notification: Performance of setup shared object (initialization): time 0.0005528/1.823, allocations: 0.5999 MB / 0.7727 GB, free: 31.82 MB / 475.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005875/1.829, allocations: 2.418 MB / 0.7751 GB, free: 29.4 MB / 475.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008404/1.837, allocations: 6.044 MB / 0.781 GB, free: 21.54 MB / 475.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008463/1.846, allocations: 3.865 MB / 0.7848 GB, free: 17.68 MB / 475.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001261/1.846, allocations: 36 kB / 0.7848 GB, free: 17.64 MB / 475.1 MB Notification: Performance of matching and sorting (n=884) (initialization): time 0.03272/1.879, allocations: 9.535 MB / 0.7941 GB, free: 8.117 MB / 475.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.851e-05/1.879, allocations: 60 kB / 0.7942 GB, free: 8.059 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00017/1.879, allocations: 132 kB / 0.7943 GB, free: 7.93 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01673/1.896, allocations: 2.353 MB / 0.7966 GB, free: 5.582 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008974/1.905, allocations: 1.474 MB / 0.798 GB, free: 4.105 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02825/1.933, allocations: 9.814 MB / 0.8076 GB, free: 10.15 MB / 491.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006831/1.94, allocations: 219.7 kB / 0.8078 GB, free: 9.934 MB / 491.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001842/1.942, allocations: 384 kB / 0.8082 GB, free: 9.559 MB / 491.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: spring.e_rel_0[3]:VARIABLE(unit = "1" ) "Unit vector in direction from frame_a to frame_b, resolved in world frame" type: Real [3] spring.e_rel_0[1]:VARIABLE(unit = "1" ) "Unit vector in direction from frame_a to frame_b, resolved in world frame" type: Real [3] spring.e_rel_0[2]:VARIABLE(unit = "1" ) "Unit vector in direction from frame_a to frame_b, resolved in world frame" type: Real [3] spring.f:VARIABLE(unit = "N" ) "Line force acting on frame_a and on frame_b (positive, if acting on frame_b and directed from frame_a to frame_b)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 586 * 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 (802): * Single equations (assignments): 794 * 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 24} Notification: Performance of prepare postOptimizeDAE: time 0.002692/1.944, allocations: 455.7 kB / 0.8086 GB, free: 9.117 MB / 491.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01426/1.959, allocations: 4.374 MB / 0.8129 GB, free: 4.695 MB / 491.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001442/1.96, allocations: 312 kB / 0.8132 GB, free: 4.387 MB / 491.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01673/1.977, allocations: 4.99 MB / 0.8181 GB, free: 15.33 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000152/1.977, allocations: 51.73 kB / 0.8181 GB, free: 15.29 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.964e-05/1.977, allocations: 11.94 kB / 0.8181 GB, free: 15.27 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.821e-05/1.977, allocations: 15.89 kB / 0.8182 GB, free: 15.26 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03715/2.015, allocations: 11.15 MB / 0.829 GB, free: 3.949 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.452e-05/2.015, allocations: 8 kB / 0.8291 GB, free: 3.941 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004552/2.019, allocations: 483.2 kB / 0.8295 GB, free: 3.469 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004012/2.023, allocations: 0.6972 MB / 0.8302 GB, free: 2.762 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007344/2.024, allocations: 31.97 kB / 0.8302 GB, free: 2.73 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004348/2.028, allocations: 2.333 MB / 0.8325 GB, free: 284 kB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.618e-05/2.028, allocations: 11.94 kB / 0.8325 GB, free: 272 kB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3742/2.403, allocations: 8.379 MB / 0.8407 GB, free: 121.4 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001112/2.404, allocations: 349.4 kB / 0.841 GB, free: 121.4 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001349/2.405, allocations: 24.28 kB / 0.8411 GB, free: 121.4 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003541/2.409, allocations: 110.1 kB / 0.8412 GB, free: 121.4 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000956/2.41, allocations: 181.3 kB / 0.8413 GB, free: 121.3 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004118/2.41, allocations: 85.7 kB / 0.8414 GB, free: 121.3 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.00531/2.416, allocations: 1.702 MB / 0.8431 GB, free: 121.2 MB / 0.4952 GB Notification: Performance of sort global known variables: time 7.12e-07/2.416, allocations: 0 / 0.8431 GB, free: 121.2 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.008586/2.424, allocations: 1.002 MB / 0.8441 GB, free: 121.2 MB / 0.4952 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 39 * 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 (241): * Single equations (assignments): 232 * 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.02275/2.447, allocations: 11.27 MB / 0.8551 GB, free: 116.9 MB / 0.4952 GB [/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. [/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. Notification: Performance of simCode: created initialization part: time 0.01521/2.462, allocations: 6.118 MB / 0.861 GB, free: 116.7 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 1.676e-05/2.462, allocations: 0 / 0.861 GB, free: 116.7 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.009475/2.472, allocations: 2.648 MB / 0.8636 GB, free: 116.1 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003471/2.475, allocations: 315.7 kB / 0.8639 GB, free: 116 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03866/2.514, allocations: 11.95 MB / 0.8756 GB, free: 111.8 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009511/2.524, allocations: 3.912 MB / 0.8794 GB, free: 110.4 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006266/2.53, allocations: 2.25 MB / 0.8816 GB, free: 108.5 MB / 0.4952 GB Notification: Performance of SimCode: time 2.144e-06/2.53, allocations: 0 / 0.8816 GB, free: 108.5 MB / 0.4952 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.902/7.432, allocations: 142.7 MB / 1.021 GB, free: 118.8 MB / 0.5108 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit4_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit4.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4_res.mat does not exist to compare? outputFormat=mat