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.002229/0.002229, allocations: 180.9 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.173/2.173, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001086/0.001086, allocations: 90.64 kB / 267.5 MB, free: 14.04 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.2947/0.2947, allocations: 43.49 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 4.784e-05/4.795e-05, allocations: 4 kB / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1289/0.129, allocations: 58.85 MB / 484.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5397/0.6687, allocations: 109 MB / 0.5794 GB, free: 10.45 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000284/0.6691, allocations: 78.19 kB / 0.5794 GB, free: 10.42 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4284/1.098, allocations: 99.46 MB / 0.6766 GB, free: 14.85 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.853e-06/1.098, allocations: 0 / 0.6766 GB, free: 14.85 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.000249/1.098, allocations: 92 kB / 0.6767 GB, free: 14.76 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.02522/1.123, allocations: 4.715 MB / 0.6813 GB, free: 9.98 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.05e-05/1.123, allocations: 8.031 kB / 0.6813 GB, free: 9.973 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004917/1.128, allocations: 0.9557 MB / 0.6822 GB, free: 9.004 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02893/1.157, allocations: 3.628 MB / 0.6858 GB, free: 5.363 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02164/1.179, allocations: 4.932 MB / 0.6906 GB, free: 384 kB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007023/1.18, allocations: 386 kB / 0.6909 GB, free: 15.99 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003603/1.183, allocations: 0.4997 MB / 0.6914 GB, free: 15.5 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04433/1.228, allocations: 12.27 MB / 0.7034 GB, free: 2.691 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003487/1.228, allocations: 35.72 kB / 0.7034 GB, free: 2.656 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003122/1.231, allocations: 223.9 kB / 0.7037 GB, free: 2.438 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003562/1.235, allocations: 1.338 MB / 0.705 GB, free: 1.098 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3904/1.625, allocations: 11.47 MB / 0.7162 GB, free: 115.8 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08794/1.713, allocations: 42.4 MB / 0.7576 GB, free: 98.08 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01662/1.73, allocations: 4.969 MB / 0.7624 GB, free: 95.79 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005246/1.735, allocations: 2.389 MB / 0.7648 GB, free: 94.86 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01735/1.753, allocations: 6.952 MB / 0.7715 GB, free: 91.01 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.665e-05/1.753, allocations: 51.72 kB / 0.7716 GB, free: 90.95 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=238): time 7.774e-06/1.753, allocations: 3.75 kB / 0.7716 GB, free: 90.95 MB / 0.4948 GB Notification: Performance of matching and sorting (n=259): time 0.07563/1.828, allocations: 16.29 MB / 0.7875 GB, free: 86.3 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.155e-05/1.828, allocations: 74.31 kB / 0.7876 GB, free: 86.23 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007325/1.836, allocations: 2.844 MB / 0.7904 GB, free: 85.2 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0006035/1.836, allocations: 62.45 kB / 0.7904 GB, free: 85.14 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002667/1.839, allocations: 3.296 MB / 0.7936 GB, free: 82.58 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001577/1.841, allocations: 0.968 MB / 0.7946 GB, free: 81.87 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008442/1.842, allocations: 121.4 kB / 0.7947 GB, free: 81.78 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0006113/1.842, allocations: 0.5746 MB / 0.7953 GB, free: 81.35 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006458/1.849, allocations: 2.422 MB / 0.7976 GB, free: 80.56 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009021/1.858, allocations: 5.816 MB / 0.8033 GB, free: 75.25 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008608/1.867, allocations: 3.798 MB / 0.807 GB, free: 72.44 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001212/1.867, allocations: 32 kB / 0.807 GB, free: 72.41 MB / 0.4948 GB Notification: Performance of matching and sorting (n=827) (initialization): time 0.03335/1.9, allocations: 9.916 MB / 0.8167 GB, free: 64.14 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001098/1.9, allocations: 66.95 kB / 0.8168 GB, free: 64.08 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001827/1.9, allocations: 116 kB / 0.8169 GB, free: 63.97 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.016/1.916, allocations: 2.327 MB / 0.8192 GB, free: 62.46 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008621/1.925, allocations: 1.368 MB / 0.8205 GB, free: 61.26 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02705/1.952, allocations: 10.64 MB / 0.8309 GB, free: 52.14 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006831/1.959, allocations: 327 kB / 0.8312 GB, free: 51.87 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001476/1.961, allocations: 365.3 kB / 0.8316 GB, free: 51.52 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.002136/1.963, allocations: 0.5472 MB / 0.8321 GB, free: 50.97 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008242/1.964, allocations: 308 kB / 0.8324 GB, free: 50.67 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01316/1.977, allocations: 4.636 MB / 0.8369 GB, free: 46.76 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001086/1.977, allocations: 51.91 kB / 0.837 GB, free: 46.71 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.336e-05/1.977, allocations: 3.891 kB / 0.837 GB, free: 46.71 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.255e-05/1.977, allocations: 6.984 kB / 0.837 GB, free: 46.71 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03248/2.01, allocations: 10.98 MB / 0.8477 GB, free: 37.57 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.732e-05/2.01, allocations: 7.938 kB / 0.8477 GB, free: 37.56 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004002/2.014, allocations: 432.2 kB / 0.8481 GB, free: 37.22 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003634/2.017, allocations: 0.6886 MB / 0.8488 GB, free: 36.76 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006366/2.018, allocations: 55.64 kB / 0.8488 GB, free: 36.71 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003885/2.022, allocations: 2.418 MB / 0.8512 GB, free: 34.45 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.034e-06/2.022, allocations: 7.938 kB / 0.8512 GB, free: 34.45 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0174/2.039, allocations: 7.536 MB / 0.8586 GB, free: 27.49 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001114/2.041, allocations: 358.9 kB / 0.8589 GB, free: 27.12 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001225/2.042, allocations: 61.77 kB / 0.859 GB, free: 27.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003257/2.045, allocations: 137.6 kB / 0.8591 GB, free: 26.98 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007855/2.046, allocations: 141.6 kB / 0.8592 GB, free: 26.9 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002704/2.046, allocations: 83.62 kB / 0.8593 GB, free: 26.82 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.005005/2.051, allocations: 1.917 MB / 0.8612 GB, free: 24.92 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.342e-06/2.051, allocations: 0 / 0.8612 GB, free: 24.92 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.007665/2.059, allocations: 1.149 MB / 0.8623 GB, free: 23.78 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.01815/2.077, allocations: 9.314 MB / 0.8714 GB, free: 14.26 MB / 0.4948 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.01454/2.092, allocations: 6.115 MB / 0.8774 GB, free: 8.156 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.101e-05/2.092, allocations: 0 / 0.8774 GB, free: 8.156 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.007091/2.099, allocations: 2.525 MB / 0.8798 GB, free: 5.578 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003506/2.103, allocations: 436.2 kB / 0.8803 GB, free: 5.18 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03941/2.142, allocations: 11.73 MB / 0.8917 GB, free: 9.383 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01018/2.152, allocations: 3.908 MB / 0.8955 GB, free: 5.465 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006283/2.159, allocations: 2.218 MB / 0.8977 GB, free: 3.246 MB / 0.5105 GB Notification: Performance of SimCode: time 1.543e-06/2.159, allocations: 0 / 0.8977 GB, free: 3.246 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.299/7.457, allocations: 143.5 MB / 1.038 GB, free: 42.65 MB / 0.5105 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