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.001034/0.001034, allocations: 177.5 kB / 8.008 MB, free: 1.066 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.6/1.6, allocations: 205.3 MB / 213.7 MB, free: 1.75 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008787/0.0008788, allocations: 90.31 kB / 261.8 MB, free: 1.691 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.2291/0.2291, allocations: 43.5 MB / 353.2 MB, free: 292 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.821e-05/1.822e-05, allocations: 4 kB / 418.4 MB, free: 28.47 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1108, allocations: 58.85 MB / 477.2 MB, free: 1.574 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4094/0.5202, allocations: 108.4 MB / 0.5719 GB, free: 3.086 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002467/0.5205, allocations: 81.86 kB / 0.5719 GB, free: 3.047 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2384/0.759, allocations: 97.57 MB / 0.6672 GB, free: 9.496 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.427e-06/0.759, allocations: 4 kB / 0.6672 GB, free: 9.492 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002079/0.7593, allocations: 88 kB / 0.6673 GB, free: 9.406 MB / 474.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.0173/0.7766, allocations: 4.703 MB / 0.6719 GB, free: 4.637 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.699e-05/0.7766, allocations: 8.031 kB / 0.6719 GB, free: 4.629 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01602/0.7927, allocations: 3.632 MB / 0.6755 GB, free: 0.9844 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01399/0.8067, allocations: 4.936 MB / 0.6803 GB, free: 12 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003198/0.8071, allocations: 160 kB / 0.6804 GB, free: 11.84 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002923/0.81, allocations: 299.8 kB / 0.6807 GB, free: 11.55 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01694/0.827, allocations: 8.529 MB / 0.689 GB, free: 3.012 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02507/0.8521, allocations: 11.24 MB / 0.7 GB, free: 7.242 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001816/0.8523, allocations: 43.64 kB / 0.7001 GB, free: 7.199 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009066/0.8532, allocations: 16 kB / 0.7001 GB, free: 7.184 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001738/0.855, allocations: 1.338 MB / 0.7014 GB, free: 5.844 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3904/1.245, allocations: 39.89 MB / 0.7403 GB, free: 104.6 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004149/1.25, allocations: 4.364 MB / 0.7446 GB, free: 103.4 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002299/1.252, allocations: 2.318 MB / 0.7469 GB, free: 103.4 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001073/1.253, allocations: 1.653 MB / 0.7485 GB, free: 102 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.969e-05/1.253, allocations: 58.89 kB / 0.7485 GB, free: 101.9 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=272): time 4.489e-06/1.253, allocations: 0 / 0.7485 GB, free: 101.9 MB / 0.4948 GB Notification: Performance of matching and sorting (n=291): time 0.02793/1.281, allocations: 17.1 MB / 0.7652 GB, free: 98.67 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.062e-05/1.281, allocations: 100.8 kB / 0.7653 GB, free: 98.57 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003661/1.285, allocations: 2.612 MB / 0.7679 GB, free: 97.59 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002412/1.285, allocations: 25.7 kB / 0.7679 GB, free: 97.56 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001416/1.286, allocations: 3.322 MB / 0.7712 GB, free: 95.37 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007506/1.287, allocations: 1.041 MB / 0.7722 GB, free: 94.58 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000236/1.287, allocations: 0.7656 kB / 0.7722 GB, free: 94.58 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002749/1.288, allocations: 0.5986 MB / 0.7728 GB, free: 94.15 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002486/1.29, allocations: 2.42 MB / 0.7751 GB, free: 93.33 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003964/1.294, allocations: 6.044 MB / 0.781 GB, free: 87.64 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004162/1.298, allocations: 3.859 MB / 0.7848 GB, free: 86.5 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.712e-05/1.298, allocations: 38.56 kB / 0.7848 GB, free: 86.5 MB / 0.4948 GB Notification: Performance of matching and sorting (n=884) (initialization): time 0.01704/1.315, allocations: 9.576 MB / 0.7942 GB, free: 83.79 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 8.404e-05/1.316, allocations: 59.34 kB / 0.7942 GB, free: 83.79 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001438/1.316, allocations: 130.4 kB / 0.7944 GB, free: 83.79 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008301/1.324, allocations: 2.35 MB / 0.7967 GB, free: 83.56 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005164/1.329, allocations: 1.476 MB / 0.7981 GB, free: 83.39 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01407/1.343, allocations: 9.835 MB / 0.8077 GB, free: 75.75 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005082/1.348, allocations: 217.7 kB / 0.8079 GB, free: 75.59 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001167/1.35, allocations: 391.1 kB / 0.8083 GB, free: 75.21 MB / 0.4948 GB 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.001074/1.351, allocations: 445.7 kB / 0.8087 GB, free: 74.78 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0062/1.357, allocations: 4.371 MB / 0.813 GB, free: 71 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005552/1.357, allocations: 319.7 kB / 0.8133 GB, free: 70.68 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006966/1.364, allocations: 4.99 MB / 0.8182 GB, free: 66.53 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.256e-05/1.365, allocations: 52.48 kB / 0.8182 GB, free: 66.48 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/1.365, allocations: 0 / 0.8182 GB, free: 66.48 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.271e-05/1.365, allocations: 10.55 kB / 0.8182 GB, free: 66.48 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01655/1.381, allocations: 11.16 MB / 0.8291 GB, free: 57.08 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.871e-05/1.381, allocations: 11.7 kB / 0.8291 GB, free: 57.07 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001896/1.383, allocations: 486.7 kB / 0.8296 GB, free: 56.68 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001911/1.385, allocations: 0.6928 MB / 0.8303 GB, free: 56.22 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002604/1.385, allocations: 31.59 kB / 0.8303 GB, free: 56.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002028/1.387, allocations: 2.341 MB / 0.8326 GB, free: 54.03 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.848e-06/1.387, allocations: 19.22 kB / 0.8326 GB, free: 54.01 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008675/1.396, allocations: 8.376 MB / 0.8408 GB, free: 46.06 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009554/1.397, allocations: 359.7 kB / 0.8411 GB, free: 45.69 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005153/1.398, allocations: 15.28 kB / 0.8411 GB, free: 45.68 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001451/1.399, allocations: 110.5 kB / 0.8412 GB, free: 45.62 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002971/1.399, allocations: 181.9 kB / 0.8414 GB, free: 45.5 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001817/1.4, allocations: 86.8 kB / 0.8415 GB, free: 45.42 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002728/1.402, allocations: 1.702 MB / 0.8432 GB, free: 43.95 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.9e-07/1.402, allocations: 0 / 0.8432 GB, free: 43.95 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006538/1.409, allocations: 1.006 MB / 0.8441 GB, free: 42.95 MB / 0.4948 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.01081/1.42, allocations: 11.26 MB / 0.8551 GB, free: 32.27 MB / 0.4948 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.008945/1.429, allocations: 6.105 MB / 0.8611 GB, free: 26.76 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.2e-05/1.429, allocations: 0 / 0.8611 GB, free: 26.76 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003847/1.433, allocations: 2.647 MB / 0.8637 GB, free: 24.38 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002007/1.435, allocations: 310.2 kB / 0.864 GB, free: 24.12 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02247/1.457, allocations: 11.39 MB / 0.8751 GB, free: 14.08 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00351/1.461, allocations: 3.915 MB / 0.8789 GB, free: 10.15 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.004944/1.466, allocations: 2.297 MB / 0.8812 GB, free: 7.859 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002685/1.468, allocations: 2.198 MB / 0.8833 GB, free: 5.66 MB / 0.4948 GB Notification: Performance of SimCode: time 1.693e-06/1.468, allocations: 3.938 kB / 0.8833 GB, free: 5.656 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3927/1.861, allocations: 79.7 MB / 0.9612 GB, free: 117 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001394/1.861, allocations: 143.3 kB / 0.9613 GB, free: 116.8 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.185/6.046, allocations: 0 / 0.9613 GB, free: 116.8 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