Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.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.FreeMotionScalarInit5,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit5",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit5",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.002054/0.002058, allocations: 181.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.098/2.098, 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.001123/0.001122, allocations: 94.62 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.2866/0.2866, allocations: 43.5 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.54e-05/3.554e-05, allocations: 4 kB / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1258/0.1259, allocations: 58.85 MB / 484.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5345/0.6604, allocations: 104.5 MB / 0.5749 GB, free: 15.3 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003519/0.6609, allocations: 77.22 kB / 0.575 GB, free: 15.27 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4282/1.089, allocations: 95.64 MB / 0.6684 GB, free: 7.355 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.194e-06/1.089, allocations: 4 kB / 0.6684 GB, free: 7.352 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002731/1.089, allocations: 84 kB / 0.6685 GB, free: 7.27 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: 1787 * Number of variables: 1787 Notification: Performance of Generate backend data structure: time 0.02471/1.114, allocations: 4.506 MB / 0.6729 GB, free: 2.699 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.204e-05/1.114, allocations: 12.03 kB / 0.6729 GB, free: 2.688 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004645/1.119, allocations: 0.9138 MB / 0.6738 GB, free: 1.766 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02866/1.148, allocations: 3.593 MB / 0.6773 GB, free: 14.16 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02136/1.169, allocations: 4.827 MB / 0.682 GB, free: 9.277 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000611/1.17, allocations: 353.3 kB / 0.6823 GB, free: 8.93 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00331/1.173, allocations: 467.8 kB / 0.6828 GB, free: 8.473 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03921/1.212, allocations: 11.39 MB / 0.6939 GB, free: 12.6 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002926/1.213, allocations: 27.75 kB / 0.6939 GB, free: 12.57 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002833/1.215, allocations: 207.9 kB / 0.6941 GB, free: 12.37 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00325/1.219, allocations: 1.244 MB / 0.6953 GB, free: 11.12 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03565/1.254, allocations: 10.82 MB / 0.7059 GB, free: 300 kB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4309/1.685, allocations: 38.56 MB / 0.7436 GB, free: 102.2 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0124/1.698, allocations: 4.357 MB / 0.7478 GB, free: 101 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004687/1.703, allocations: 2.134 MB / 0.7499 GB, free: 101 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001652/1.704, allocations: 1.324 MB / 0.7512 GB, free: 99.86 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.264e-05/1.704, allocations: 46.66 kB / 0.7512 GB, free: 99.82 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=244): time 6.172e-06/1.704, allocations: 3.656 kB / 0.7512 GB, free: 99.82 MB / 0.4948 GB Notification: Performance of matching and sorting (n=265): time 0.05284/1.757, allocations: 10.78 MB / 0.7618 GB, free: 97.69 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.673e-05/1.757, allocations: 73.94 kB / 0.7618 GB, free: 97.62 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005835/1.763, allocations: 2.647 MB / 0.7644 GB, free: 96.66 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0006337/1.764, allocations: 60.69 kB / 0.7645 GB, free: 96.61 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002459/1.766, allocations: 3.09 MB / 0.7675 GB, free: 94.41 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001497/1.768, allocations: 0.9817 MB / 0.7685 GB, free: 93.68 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007078/1.769, allocations: 120.4 kB / 0.7686 GB, free: 93.59 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0004532/1.769, allocations: 0.5658 MB / 0.7691 GB, free: 93.17 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005852/1.775, allocations: 2.323 MB / 0.7714 GB, free: 92.42 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00821/1.783, allocations: 5.613 MB / 0.7769 GB, free: 87.29 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008205/1.792, allocations: 3.65 MB / 0.7804 GB, free: 86.25 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001273/1.792, allocations: 31.69 kB / 0.7805 GB, free: 86.25 MB / 0.4948 GB Notification: Performance of matching and sorting (n=796) (initialization): time 0.02639/1.818, allocations: 8.576 MB / 0.7888 GB, free: 83.6 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001004/1.818, allocations: 58.34 kB / 0.7889 GB, free: 83.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001722/1.819, allocations: 115 kB / 0.789 GB, free: 83.6 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006817/1.825, allocations: 1.059 MB / 0.79 GB, free: 83.48 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008989/1.834, allocations: 1.375 MB / 0.7914 GB, free: 83.32 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004086/1.839, allocations: 2.465 MB / 0.7938 GB, free: 81.78 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006621/1.845, allocations: 328.5 kB / 0.7941 GB, free: 81.68 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001489/1.847, allocations: 349.6 kB / 0.7944 GB, free: 81.63 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 524 * Number of states: 0 () * Number of discrete variables: 27 (freeMotionScalarInit2.arrowColor[3],freeMotionScalarInit2.arrowColor[2],freeMotionScalarInit2.arrowColor[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],freeMotionScalarInit1.arrowColor[3],freeMotionScalarInit1.arrowColor[2],freeMotionScalarInit1.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 (743): * 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): 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 prepare postOptimizeDAE: time 0.001948/1.849, allocations: 0.5373 MB / 0.795 GB, free: 81.18 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001018/1.85, allocations: 304 kB / 0.7953 GB, free: 81.01 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01596/1.866, allocations: 5.038 MB / 0.8002 GB, free: 79.36 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001199/1.866, allocations: 53.08 kB / 0.8002 GB, free: 79.36 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.47e-05/1.866, allocations: 0 / 0.8002 GB, free: 79.36 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-05/1.866, allocations: 11.77 kB / 0.8002 GB, free: 79.36 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03456/1.901, allocations: 11.77 MB / 0.8117 GB, free: 71.71 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.615e-05/1.901, allocations: 8.031 kB / 0.8117 GB, free: 71.71 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003817/1.905, allocations: 429.8 kB / 0.8122 GB, free: 71.37 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006031/1.911, allocations: 0.8987 MB / 0.813 GB, free: 70.81 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006391/1.911, allocations: 67.34 kB / 0.8131 GB, free: 70.76 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003397/1.915, allocations: 2.284 MB / 0.8153 GB, free: 68.61 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.468e-06/1.915, allocations: 11.94 kB / 0.8153 GB, free: 68.6 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01907/1.934, allocations: 8.125 MB / 0.8233 GB, free: 61.03 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001038/1.935, allocations: 344.4 kB / 0.8236 GB, free: 60.68 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009166/1.936, allocations: 55.83 kB / 0.8237 GB, free: 60.63 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002579/1.939, allocations: 137.8 kB / 0.8238 GB, free: 60.55 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005489/1.939, allocations: 157.7 kB / 0.8239 GB, free: 60.44 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002603/1.939, allocations: 75.94 kB / 0.824 GB, free: 60.37 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003862/1.943, allocations: 1.799 MB / 0.8258 GB, free: 58.79 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.143e-06/1.943, allocations: 3 kB / 0.8258 GB, free: 58.79 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006896/1.95, allocations: 1.044 MB / 0.8268 GB, free: 57.75 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 12 (freeMotionScalarInit1.r_rel_a_1,freeMotionScalarInit1.r_rel_a_2,freeMotionScalarInit1.r_rel_a_3,freeMotionScalarInit1.v_rel_a_1,freeMotionScalarInit1.v_rel_a_2,freeMotionScalarInit1.v_rel_a_3,freeMotionScalarInit2.angle_1,freeMotionScalarInit2.angle_2,freeMotionScalarInit2.angle_3,freeMotionScalarInit2.angle_d_1,freeMotionScalarInit2.angle_d_2,freeMotionScalarInit2.angle_d_3) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (216): * Single equations (assignments): 207 * 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.02018/1.97, allocations: 10.71 MB / 0.8372 GB, free: 47.74 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01529/1.986, allocations: 6.149 MB / 0.8432 GB, free: 42.16 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.26e-05/1.986, allocations: 4 kB / 0.8433 GB, free: 42.16 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.007265/1.993, allocations: 2.572 MB / 0.8458 GB, free: 39.85 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00391/1.997, allocations: 459.4 kB / 0.8462 GB, free: 39.49 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03527/2.032, allocations: 11.77 MB / 0.8577 GB, free: 29.13 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008743/2.041, allocations: 3.768 MB / 0.8614 GB, free: 25.35 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005416/2.047, allocations: 2.132 MB / 0.8635 GB, free: 23.22 MB / 0.4948 GB Notification: Performance of SimCode: time 1.704e-06/2.047, allocations: 0 / 0.8635 GB, free: 23.22 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.098/7.144, allocations: 147.7 MB / 1.008 GB, free: 73.81 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit5_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit5.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5_res.mat does not exist to compare? outputFormat=mat