Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.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.FreeMotionScalarInit,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit",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.001614/0.001614, allocations: 181.4 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.091/2.091, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001142/0.001141, allocations: 86.64 kB / 267.5 MB, free: 14.11 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.2872/0.2872, allocations: 43.5 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 4.529e-05/4.551e-05, allocations: 4 kB / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1275/0.1276, allocations: 58.85 MB / 484.2 MB, free: 12.36 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5198/0.6475, allocations: 104.3 MB / 0.5748 GB, free: 15.13 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002846/0.6478, allocations: 78.62 kB / 0.5748 GB, free: 15.1 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.383/1.031, allocations: 91.61 MB / 0.6643 GB, free: 11.46 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.903e-06/1.031, allocations: 0 / 0.6643 GB, free: 11.46 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002311/1.031, allocations: 76 kB / 0.6644 GB, free: 11.38 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: 1699 * Number of variables: 1699 Notification: Performance of Generate backend data structure: time 0.02358/1.055, allocations: 4.278 MB / 0.6685 GB, free: 7.039 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.481e-05/1.055, allocations: 12.03 kB / 0.6686 GB, free: 7.027 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004495/1.059, allocations: 0.8609 MB / 0.6694 GB, free: 6.156 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02865/1.088, allocations: 3.558 MB / 0.6729 GB, free: 2.586 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02041/1.109, allocations: 4.682 MB / 0.6774 GB, free: 13.85 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005839/1.109, allocations: 332.6 kB / 0.6778 GB, free: 13.52 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003146/1.112, allocations: 435.8 kB / 0.6782 GB, free: 13.09 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03741/1.15, allocations: 10.97 MB / 0.6889 GB, free: 1.641 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002834/1.15, allocations: 27.75 kB / 0.6889 GB, free: 1.613 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002752/1.153, allocations: 195.9 kB / 0.6891 GB, free: 1.422 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003175/1.156, allocations: 1.231 MB / 0.6903 GB, free: 192 kB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0341/1.19, allocations: 10.53 MB / 0.7006 GB, free: 5.637 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.417/1.607, allocations: 37.44 MB / 0.7371 GB, free: 103 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01248/1.62, allocations: 4.368 MB / 0.7414 GB, free: 101.8 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004606/1.625, allocations: 2.125 MB / 0.7435 GB, free: 101.8 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001559/1.626, allocations: 1.318 MB / 0.7448 GB, free: 100.7 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.8e-05/1.626, allocations: 55.64 kB / 0.7448 GB, free: 100.6 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=244): time 6.302e-06/1.626, allocations: 0 / 0.7448 GB, free: 100.6 MB / 0.4948 GB Notification: Performance of matching and sorting (n=265): time 0.05634/1.683, allocations: 11.16 MB / 0.7557 GB, free: 99.71 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.426e-05/1.683, allocations: 76.25 kB / 0.7558 GB, free: 99.64 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0053/1.688, allocations: 2.506 MB / 0.7582 GB, free: 99.34 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0005883/1.689, allocations: 65.2 kB / 0.7583 GB, free: 99.31 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002171/1.691, allocations: 2.933 MB / 0.7612 GB, free: 97.81 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001506/1.692, allocations: 0.9798 MB / 0.7621 GB, free: 97.23 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006256/1.693, allocations: 112.6 kB / 0.7622 GB, free: 97.23 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0003973/1.693, allocations: 0.5582 MB / 0.7628 GB, free: 96.91 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005306/1.699, allocations: 2.286 MB / 0.765 GB, free: 96.62 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007542/1.706, allocations: 5.442 MB / 0.7703 GB, free: 91.69 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007832/1.714, allocations: 3.581 MB / 0.7738 GB, free: 90.68 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001038/1.714, allocations: 31.78 kB / 0.7739 GB, free: 90.68 MB / 0.4948 GB Notification: Performance of matching and sorting (n=775) (initialization): time 0.02486/1.739, allocations: 8.404 MB / 0.7821 GB, free: 88.1 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.000119/1.739, allocations: 58.53 kB / 0.7821 GB, free: 88.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000141/1.74, allocations: 111.4 kB / 0.7822 GB, free: 88.1 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006379/1.746, allocations: 1.052 MB / 0.7833 GB, free: 87.98 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008343/1.754, allocations: 1.34 MB / 0.7846 GB, free: 87.82 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003772/1.758, allocations: 2.453 MB / 0.787 GB, free: 86.28 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005788/1.764, allocations: 319.8 kB / 0.7873 GB, free: 86.18 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001187/1.765, allocations: 342.7 kB / 0.7876 GB, free: 86.14 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 503 * Number of states: 0 () * Number of discrete variables: 24 (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 (722): * Single equations (assignments): 713 * 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.001286/1.767, allocations: 0.5214 MB / 0.7881 GB, free: 85.7 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007205/1.767, allocations: 294.2 kB / 0.7884 GB, free: 85.54 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01472/1.782, allocations: 5.019 MB / 0.7933 GB, free: 83.89 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001018/1.782, allocations: 44.14 kB / 0.7933 GB, free: 83.89 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.097e-05/1.782, allocations: 7.609 kB / 0.7933 GB, free: 83.89 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.183e-05/1.782, allocations: 14.39 kB / 0.7933 GB, free: 83.89 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03321/1.815, allocations: 11.57 MB / 0.8046 GB, free: 77.12 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.679e-05/1.816, allocations: 8 kB / 0.8046 GB, free: 77.12 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003781/1.819, allocations: 429.2 kB / 0.8051 GB, free: 76.78 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006029/1.825, allocations: 0.907 MB / 0.8059 GB, free: 76.22 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006085/1.826, allocations: 68.23 kB / 0.806 GB, free: 76.16 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003439/1.83, allocations: 2.276 MB / 0.8082 GB, free: 74.02 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.689e-06/1.83, allocations: 11.94 kB / 0.8082 GB, free: 74.01 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01926/1.849, allocations: 8.103 MB / 0.8162 GB, free: 66.44 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001069/1.85, allocations: 338.5 kB / 0.8165 GB, free: 66.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009314/1.851, allocations: 48.94 kB / 0.8165 GB, free: 66.05 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002454/1.853, allocations: 140.3 kB / 0.8167 GB, free: 65.96 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004487/1.854, allocations: 158.1 kB / 0.8168 GB, free: 65.86 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002514/1.854, allocations: 80.42 kB / 0.8169 GB, free: 65.79 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003597/1.858, allocations: 1.705 MB / 0.8186 GB, free: 64.28 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8.42e-07/1.858, allocations: 0 / 0.8186 GB, free: 64.28 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006295/1.864, allocations: 1.004 MB / 0.8195 GB, free: 63.28 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * 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.angle_d_1,freeMotionScalarInit.angle_d_2,freeMotionScalarInit.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.01933/1.884, allocations: 10.7 MB / 0.83 GB, free: 53.29 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01508/1.899, allocations: 6.073 MB / 0.8359 GB, free: 47.78 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.362e-05/1.899, allocations: 4 kB / 0.8359 GB, free: 47.77 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.007441/1.906, allocations: 2.573 MB / 0.8384 GB, free: 45.46 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003361/1.91, allocations: 387 kB / 0.8388 GB, free: 45.14 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0331/1.943, allocations: 11.33 MB / 0.8499 GB, free: 35.21 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007999/1.951, allocations: 3.609 MB / 0.8534 GB, free: 32.43 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005247/1.956, allocations: 2.028 MB / 0.8554 GB, free: 30.55 MB / 0.4948 GB Notification: Performance of SimCode: time 2.956e-06/1.956, allocations: 0 / 0.8554 GB, free: 30.55 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.735/6.691, allocations: 140.5 MB / 0.9926 GB, free: 85.58 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit_res.mat does not exist to compare? outputFormat=mat