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.001559/0.001559, allocations: 186 kB / 16.4 MB, free: 5.699 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.063/2.063, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001164/0.001164, allocations: 86.92 kB / 270.9 MB, free: 8.375 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.5307/0.5307, allocations: 43.55 MB / 362.7 MB, free: 51.93 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004817/0.0004819, allocations: 12 kB / 431.5 MB, free: 5.848 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1286/0.1291, allocations: 58.84 MB / 490.3 MB, free: 10.92 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5325/0.6617, allocations: 109.1 MB / 0.5854 GB, free: 9.312 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003077/0.6621, allocations: 82.86 kB / 0.5855 GB, free: 9.234 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7646/1.427, allocations: 99.39 MB / 0.6825 GB, free: 92.18 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.818e-06/1.427, allocations: 2.781 kB / 0.6825 GB, free: 92.18 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003159/1.427, allocations: 94.28 kB / 0.6826 GB, free: 92.18 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.02629/1.453, allocations: 4.863 MB / 0.6874 GB, free: 90.21 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.015e-05/1.454, allocations: 11.42 kB / 0.6874 GB, free: 90.21 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00519/1.459, allocations: 0.96 MB / 0.6883 GB, free: 90.12 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02804/1.487, allocations: 3.629 MB / 0.6919 GB, free: 89.79 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01955/1.506, allocations: 4.941 MB / 0.6967 GB, free: 89.25 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005858/1.507, allocations: 383.3 kB / 0.6971 GB, free: 89.23 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003361/1.51, allocations: 0.499 MB / 0.6975 GB, free: 89.23 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04098/1.551, allocations: 12.37 MB / 0.7096 GB, free: 87.7 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003521/1.552, allocations: 28.97 kB / 0.7097 GB, free: 87.7 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003007/1.555, allocations: 230.4 kB / 0.7099 GB, free: 87.7 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003707/1.559, allocations: 1.338 MB / 0.7112 GB, free: 87.68 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03782/1.597, allocations: 11.65 MB / 0.7226 GB, free: 86.82 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08568/1.682, allocations: 42.42 MB / 0.764 GB, free: 60.95 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01661/1.699, allocations: 4.997 MB / 0.7689 GB, free: 58.63 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01602/1.715, allocations: 6.942 MB / 0.7756 GB, free: 54.65 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.507e-05/1.715, allocations: 52.28 kB / 0.7757 GB, free: 54.59 MB / 490.7 MB Notification: Performance of pre-optimization done (n=238): time 6.192e-06/1.715, allocations: 4 kB / 0.7757 GB, free: 54.59 MB / 490.7 MB Notification: Performance of matching and sorting (n=259): time 0.08688/1.802, allocations: 19.6 MB / 0.7948 GB, free: 44.75 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.515e-05/1.802, allocations: 77.16 kB / 0.7949 GB, free: 44.66 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006341/1.808, allocations: 2.862 MB / 0.7977 GB, free: 42.24 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005975/1.809, allocations: 61.7 kB / 0.7978 GB, free: 42.18 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002479/1.812, allocations: 3.295 MB / 0.801 GB, free: 39.22 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001459/1.813, allocations: 0.9638 MB / 0.8019 GB, free: 38.37 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000889/1.814, allocations: 129.3 kB / 0.802 GB, free: 38.24 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0005255/1.815, allocations: 0.5759 MB / 0.8026 GB, free: 37.73 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006247/1.821, allocations: 2.479 MB / 0.805 GB, free: 35.62 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008538/1.829, allocations: 5.866 MB / 0.8108 GB, free: 28.55 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008673/1.838, allocations: 3.801 MB / 0.8145 GB, free: 25.15 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001174/1.838, allocations: 32 kB / 0.8145 GB, free: 25.12 MB / 490.7 MB Notification: Performance of matching and sorting (n=827) (initialization): time 0.034/1.872, allocations: 10.01 MB / 0.8243 GB, free: 16.73 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001113/1.873, allocations: 58.81 kB / 0.8243 GB, free: 16.68 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002012/1.873, allocations: 116 kB / 0.8244 GB, free: 16.57 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01634/1.889, allocations: 2.341 MB / 0.8267 GB, free: 15.06 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008608/1.898, allocations: 1.375 MB / 0.8281 GB, free: 13.86 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02863/1.926, allocations: 11.1 MB / 0.8389 GB, free: 2.781 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006493/1.933, allocations: 331.8 kB / 0.8392 GB, free: 2.457 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001501/1.935, allocations: 365.2 kB / 0.8396 GB, free: 2.102 MB / 490.7 MB 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 () * Number of clocked 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.006835/1.941, allocations: 2.442 MB / 0.842 GB, free: 15.65 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000909/1.942, allocations: 311.9 kB / 0.8423 GB, free: 15.34 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01591/1.958, allocations: 4.682 MB / 0.8468 GB, free: 10.61 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000131/1.958, allocations: 47.98 kB / 0.8469 GB, free: 10.56 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.182e-05/1.959, allocations: 3.938 kB / 0.8469 GB, free: 10.55 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.919e-05/1.959, allocations: 15.95 kB / 0.8469 GB, free: 10.54 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4545/2.413, allocations: 11.02 MB / 0.8577 GB, free: 94.78 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.832e-05/2.413, allocations: 4.312 kB / 0.8577 GB, free: 94.78 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004158/2.417, allocations: 425.6 kB / 0.8581 GB, free: 94.78 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004024/2.421, allocations: 0.6966 MB / 0.8587 GB, free: 94.76 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005838/2.422, allocations: 58.28 kB / 0.8588 GB, free: 94.76 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004581/2.427, allocations: 2.434 MB / 0.8612 GB, free: 93.52 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.134e-05/2.427, allocations: 9.75 kB / 0.8612 GB, free: 93.52 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0187/2.445, allocations: 7.602 MB / 0.8686 GB, free: 92.54 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001046/2.447, allocations: 365 kB / 0.869 GB, free: 92.45 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009209/2.448, allocations: 50.91 kB / 0.869 GB, free: 92.45 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002575/2.45, allocations: 139.1 kB / 0.8691 GB, free: 92.45 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005673/2.451, allocations: 141.1 kB / 0.8693 GB, free: 92.44 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002731/2.451, allocations: 73.75 kB / 0.8693 GB, free: 92.44 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.004603/2.456, allocations: 1.95 MB / 0.8713 GB, free: 92.3 MB / 0.4948 GB Notification: Performance of sort global known variables: time 6.91e-07/2.456, allocations: 0 / 0.8713 GB, free: 92.3 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.00684/2.462, allocations: 1.146 MB / 0.8724 GB, free: 92.3 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 () * Number of clocked 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.01806/2.481, allocations: 9.396 MB / 0.8815 GB, free: 89.75 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 can't be selected as a state. [/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 can't be selected as a state. [/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 can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.01505/2.496, allocations: 6.199 MB / 0.8876 GB, free: 89.57 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.07e-05/2.496, allocations: 0 / 0.8876 GB, free: 89.57 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.007597/2.503, allocations: 2.547 MB / 0.8901 GB, free: 89.24 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003504/2.507, allocations: 425.8 kB / 0.8905 GB, free: 89.23 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1208/2.628, allocations: 118.4 MB / 1.006 GB, free: 36.19 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008905/2.637, allocations: 3.905 MB / 1.01 GB, free: 34.78 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005748/2.643, allocations: 2.222 MB / 1.012 GB, free: 32.98 MB / 0.5417 GB Notification: Performance of SimCode: time 1.623e-06/2.643, allocations: 0 / 1.012 GB, free: 32.98 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.261/7.903, allocations: 142.9 MB / 1.152 GB, free: 128.4 MB / 0.5417 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