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.001473/0.001473, allocations: 179 kB / 8.364 MB, free: 0.7109 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.113/2.113, 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.001052/0.001052, allocations: 84.92 kB / 262.1 MB, free: 13.88 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.3045/0.3045, allocations: 43.49 MB / 353.6 MB, free: 2.285 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.775e-05/2.784e-05, allocations: 4.219 kB / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4101/0.4101, allocations: 58.85 MB / 477.2 MB, free: 5.145 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1907/0.6009, allocations: 103.8 MB / 0.5674 GB, free: 11.34 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002861/0.6012, allocations: 75.95 kB / 0.5675 GB, free: 11.27 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.7216/1.323, allocations: 93.89 MB / 0.6592 GB, free: 110 MB / 475.1 MB Notification: Performance of FrontEnd: time 1.913e-06/1.323, allocations: 7.906 kB / 0.6592 GB, free: 110 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0002545/1.323, allocations: 89.7 kB / 0.6592 GB, free: 110 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: 1787 * Number of variables: 1787 Notification: Performance of Generate backend data structure: time 0.02495/1.348, allocations: 4.508 MB / 0.6636 GB, free: 108.2 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.09e-05/1.348, allocations: 9.656 kB / 0.6637 GB, free: 108.2 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02777/1.376, allocations: 3.599 MB / 0.6672 GB, free: 107.8 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01915/1.395, allocations: 4.824 MB / 0.6719 GB, free: 107.3 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003329/1.396, allocations: 156.7 kB / 0.672 GB, free: 107.3 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002968/1.399, allocations: 271.2 kB / 0.6723 GB, free: 107.3 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01921/1.418, allocations: 8.051 MB / 0.6802 GB, free: 107.3 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02975/1.448, allocations: 10.58 MB / 0.6905 GB, free: 102.9 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002886/1.448, allocations: 30.75 kB / 0.6905 GB, free: 102.9 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002626/1.451, allocations: 14.44 kB / 0.6905 GB, free: 102.9 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002622/1.453, allocations: 1.247 MB / 0.6917 GB, free: 102.6 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07739/1.531, allocations: 35.82 MB / 0.7267 GB, free: 78.22 MB / 475.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006339/1.537, allocations: 3.815 MB / 0.7304 GB, free: 74.46 MB / 475.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004093/1.541, allocations: 2.083 MB / 0.7325 GB, free: 72.56 MB / 475.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001519/1.543, allocations: 1.318 MB / 0.7338 GB, free: 71.12 MB / 475.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.113e-05/1.543, allocations: 59.88 kB / 0.7338 GB, free: 71.06 MB / 475.1 MB Notification: Performance of pre-optimization done (n=246): time 6.191e-06/1.543, allocations: 0 / 0.7338 GB, free: 71.06 MB / 475.1 MB Notification: Performance of matching and sorting (n=273): time 0.04207/1.585, allocations: 11.22 MB / 0.7448 GB, free: 60.79 MB / 475.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.635e-05/1.585, allocations: 77.41 kB / 0.7449 GB, free: 60.7 MB / 475.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005009/1.59, allocations: 2.542 MB / 0.7473 GB, free: 58.14 MB / 475.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006055/1.591, allocations: 25.7 kB / 0.7474 GB, free: 58.11 MB / 475.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002377/1.593, allocations: 3.195 MB / 0.7505 GB, free: 54.87 MB / 475.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001509/1.595, allocations: 0.9904 MB / 0.7515 GB, free: 53.87 MB / 475.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006759/1.595, allocations: 4 kB / 0.7515 GB, free: 53.86 MB / 475.1 MB Notification: Performance of setup shared object (initialization): time 0.0004968/1.596, allocations: 0.5875 MB / 0.752 GB, free: 53.27 MB / 475.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005519/1.601, allocations: 2.359 MB / 0.7543 GB, free: 50.9 MB / 475.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007869/1.609, allocations: 5.871 MB / 0.7601 GB, free: 43.28 MB / 475.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007866/1.617, allocations: 3.76 MB / 0.7637 GB, free: 39.52 MB / 475.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001172/1.617, allocations: 36 kB / 0.7638 GB, free: 39.48 MB / 475.1 MB Notification: Performance of matching and sorting (n=849) (initialization): time 0.02469/1.642, allocations: 8.32 MB / 0.7719 GB, free: 31.14 MB / 475.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.241e-05/1.642, allocations: 60.94 kB / 0.772 GB, free: 31.09 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001488/1.642, allocations: 124 kB / 0.7721 GB, free: 30.96 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006779/1.649, allocations: 1.071 MB / 0.7731 GB, free: 29.88 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009144/1.658, allocations: 1.486 MB / 0.7746 GB, free: 28.39 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003672/1.662, allocations: 2.418 MB / 0.7769 GB, free: 25.86 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006466/1.669, allocations: 207.8 kB / 0.7771 GB, free: 25.66 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001511/1.67, allocations: 383.5 kB / 0.7775 GB, free: 25.29 MB / 475.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 569 * 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 (796): * Single equations (assignments): 787 * 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.001669/1.672, allocations: 436.7 kB / 0.7779 GB, free: 24.85 MB / 475.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01406/1.686, allocations: 4.5 MB / 0.7823 GB, free: 20.3 MB / 475.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001239/1.687, allocations: 300.1 kB / 0.7826 GB, free: 20 MB / 475.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01623/1.704, allocations: 5.125 MB / 0.7876 GB, free: 14.81 MB / 475.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001262/1.704, allocations: 55.19 kB / 0.7877 GB, free: 14.76 MB / 475.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.441e-05/1.704, allocations: 3.953 kB / 0.7877 GB, free: 14.75 MB / 475.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.466e-05/1.704, allocations: 11.95 kB / 0.7877 GB, free: 14.74 MB / 475.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0362/1.74, allocations: 10.84 MB / 0.7982 GB, free: 3.797 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.451e-05/1.74, allocations: 8 kB / 0.7983 GB, free: 3.789 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004774/1.745, allocations: 451.3 kB / 0.7987 GB, free: 3.348 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006157/1.751, allocations: 0.8996 MB / 0.7996 GB, free: 2.438 MB / 475.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006744/1.752, allocations: 39.97 kB / 0.7996 GB, free: 2.398 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003234/1.755, allocations: 2.204 MB / 0.8018 GB, free: 88 kB / 475.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.328e-05/1.755, allocations: 15.94 kB / 0.8018 GB, free: 72 kB / 475.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.032/1.787, allocations: 8.328 MB / 0.8099 GB, free: 7.285 MB / 491.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001534/1.789, allocations: 337.1 kB / 0.8102 GB, free: 6.934 MB / 491.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001382/1.79, allocations: 20 kB / 0.8102 GB, free: 6.914 MB / 491.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0047/1.795, allocations: 103.8 kB / 0.8103 GB, free: 6.812 MB / 491.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001039/1.796, allocations: 169.6 kB / 0.8105 GB, free: 6.648 MB / 491.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005377/1.797, allocations: 87.95 kB / 0.8106 GB, free: 6.562 MB / 491.1 MB Notification: Performance of sorting global known variables: time 0.006661/1.803, allocations: 1.664 MB / 0.8122 GB, free: 4.898 MB / 491.1 MB Notification: Performance of sort global known variables: time 1.603e-06/1.803, allocations: 0 / 0.8122 GB, free: 4.898 MB / 491.1 MB Notification: Performance of remove unused functions: time 0.01151/1.815, allocations: 0.9336 MB / 0.8131 GB, free: 3.961 MB / 491.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 35 * 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 (224): * Single equations (assignments): 215 * 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.03536/1.85, allocations: 10.97 MB / 0.8238 GB, free: 8.68 MB / 0.4952 GB Notification: Performance of simCode: created initialization part: time 0.02649/1.877, allocations: 6.18 MB / 0.8299 GB, free: 2.465 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 2.343e-05/1.877, allocations: 5.688 kB / 0.8299 GB, free: 2.461 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.3838/2.261, allocations: 2.623 MB / 0.8324 GB, free: 129.2 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003762/2.265, allocations: 351.9 kB / 0.8328 GB, free: 129.2 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04015/2.305, allocations: 11.69 MB / 0.8442 GB, free: 127.2 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01017/2.315, allocations: 3.776 MB / 0.8479 GB, free: 126.4 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00617/2.321, allocations: 2.163 MB / 0.85 GB, free: 126.4 MB / 0.4952 GB Notification: Performance of SimCode: time 1.753e-06/2.321, allocations: 1.094 kB / 0.85 GB, free: 126.4 MB / 0.4952 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.599/6.92, allocations: 147.7 MB / 0.9943 GB, free: 20.85 MB / 0.4952 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