Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.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.FreeMotionScalarInit3,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3",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.001562/0.001561, 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.105/2.105, 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.001181/0.00118, allocations: 86.64 kB / 267.5 MB, free: 14.05 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.2896/0.2896, allocations: 43.5 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 4.267e-05/4.272e-05, allocations: 11.94 kB / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1265/0.1266, allocations: 58.85 MB / 484.2 MB, free: 12.37 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5277/0.6543, allocations: 109 MB / 0.5793 GB, free: 10.82 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002459/0.6546, allocations: 81.42 kB / 0.5794 GB, free: 10.79 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.405/1.06, allocations: 99.02 MB / 0.6761 GB, free: 15.41 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.755e-06/1.06, allocations: 0 / 0.6761 GB, free: 15.41 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002858/1.06, allocations: 92 kB / 0.6762 GB, free: 15.32 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: 1888 * Number of variables: 1888 Notification: Performance of Generate backend data structure: time 0.02556/1.086, allocations: 4.699 MB / 0.6808 GB, free: 10.56 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.808e-05/1.086, allocations: 12.03 kB / 0.6808 GB, free: 10.55 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004234/1.09, allocations: 0.9477 MB / 0.6817 GB, free: 9.59 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02789/1.118, allocations: 3.632 MB / 0.6853 GB, free: 5.945 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02075/1.139, allocations: 4.917 MB / 0.6901 GB, free: 0.9727 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006318/1.139, allocations: 377.9 kB / 0.6904 GB, free: 0.6016 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003313/1.143, allocations: 0.492 MB / 0.6909 GB, free: 112 kB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04172/1.184, allocations: 12.24 MB / 0.7029 GB, free: 3.336 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003233/1.185, allocations: 31.66 kB / 0.7029 GB, free: 3.305 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002741/1.188, allocations: 231.8 kB / 0.7031 GB, free: 3.078 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003277/1.191, allocations: 1.334 MB / 0.7044 GB, free: 1.742 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3753/1.566, allocations: 11.45 MB / 0.7156 GB, free: 116.3 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08716/1.653, allocations: 42.33 MB / 0.7569 GB, free: 98.55 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01597/1.669, allocations: 5.032 MB / 0.7619 GB, free: 96.25 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005148/1.675, allocations: 2.375 MB / 0.7642 GB, free: 95.32 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01681/1.691, allocations: 6.927 MB / 0.7709 GB, free: 91.47 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.935e-05/1.692, allocations: 61.09 kB / 0.771 GB, free: 91.42 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=235): time 6.953e-06/1.692, allocations: 0 / 0.771 GB, free: 91.42 MB / 0.4948 GB Notification: Performance of matching and sorting (n=244): time 0.05688/1.748, allocations: 13.82 MB / 0.7845 GB, free: 87.3 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.881e-05/1.749, allocations: 75.94 kB / 0.7846 GB, free: 87.24 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006134/1.755, allocations: 2.842 MB / 0.7873 GB, free: 86.21 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0005987/1.755, allocations: 61.05 kB / 0.7874 GB, free: 86.16 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002661/1.758, allocations: 3.285 MB / 0.7906 GB, free: 83.63 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001471/1.76, allocations: 0.9117 MB / 0.7915 GB, free: 82.96 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007409/1.76, allocations: 123.6 kB / 0.7916 GB, free: 82.87 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0004784/1.761, allocations: 0.5677 MB / 0.7922 GB, free: 82.45 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005807/1.767, allocations: 2.351 MB / 0.7945 GB, free: 81.69 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008094/1.775, allocations: 5.733 MB / 0.8001 GB, free: 76.41 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008089/1.783, allocations: 3.702 MB / 0.8037 GB, free: 75.29 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000101/1.783, allocations: 37.59 kB / 0.8037 GB, free: 75.29 MB / 0.4948 GB Notification: Performance of matching and sorting (n=812) (initialization): time 0.02447/1.808, allocations: 8.789 MB / 0.8123 GB, free: 68.01 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 9.899e-05/1.808, allocations: 59.44 kB / 0.8124 GB, free: 67.96 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001605/1.808, allocations: 120 kB / 0.8125 GB, free: 67.84 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005765/1.814, allocations: 1.146 MB / 0.8136 GB, free: 67.05 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008619/1.822, allocations: 1.389 MB / 0.8149 GB, free: 65.84 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008458/1.831, allocations: 4.591 MB / 0.8194 GB, free: 61.71 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006312/1.837, allocations: 326 kB / 0.8197 GB, free: 61.44 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001301/1.839, allocations: 353.3 kB / 0.8201 GB, free: 61.1 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 (751): * Single equations (assignments): 743 * 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: 1 {(3,100.0%) 3} * Non-linear torn systems: 1 {4 5} Notification: Performance of prepare postOptimizeDAE: time 0.001391/1.84, allocations: 0.5524 MB / 0.8206 GB, free: 60.55 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007414/1.841, allocations: 300.1 kB / 0.8209 GB, free: 60.25 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01142/1.852, allocations: 4.435 MB / 0.8252 GB, free: 56.54 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.677e-05/1.852, allocations: 47.23 kB / 0.8253 GB, free: 56.5 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.231e-05/1.852, allocations: 11.95 kB / 0.8253 GB, free: 56.49 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-05/1.852, allocations: 9.609 kB / 0.8253 GB, free: 56.49 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02888/1.881, allocations: 10.57 MB / 0.8356 GB, free: 47.66 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.732e-05/1.881, allocations: 8.031 kB / 0.8356 GB, free: 47.65 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003624/1.885, allocations: 399.2 kB / 0.836 GB, free: 47.34 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003365/1.888, allocations: 0.6697 MB / 0.8367 GB, free: 46.89 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005598/1.889, allocations: 54.73 kB / 0.8367 GB, free: 46.84 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003714/1.893, allocations: 2.427 MB / 0.8391 GB, free: 44.57 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.584e-06/1.893, allocations: 11.88 kB / 0.8391 GB, free: 44.56 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01559/1.908, allocations: 7.268 MB / 0.8462 GB, free: 37.83 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001014/1.909, allocations: 354.8 kB / 0.8465 GB, free: 37.48 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001077/1.911, allocations: 43.75 kB / 0.8466 GB, free: 37.44 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002993/1.914, allocations: 136.8 kB / 0.8467 GB, free: 37.35 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007094/1.914, allocations: 146.3 kB / 0.8468 GB, free: 37.25 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002466/1.915, allocations: 74.8 kB / 0.8469 GB, free: 37.19 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.004408/1.919, allocations: 1.917 MB / 0.8488 GB, free: 35.5 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8.11e-07/1.919, allocations: 0 / 0.8488 GB, free: 35.5 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006651/1.926, allocations: 1.087 MB / 0.8498 GB, free: 34.42 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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,body.w_a[1],body.w_a[2],body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (197): * Single equations (assignments): 188 * 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.01722/1.943, allocations: 9.231 MB / 0.8589 GB, free: 25.82 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.014/1.957, allocations: 5.792 MB / 0.8645 GB, free: 20.55 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.14e-05/1.957, allocations: 4.125 kB / 0.8645 GB, free: 20.55 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006686/1.964, allocations: 2.409 MB / 0.8669 GB, free: 18.37 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003628/1.967, allocations: 427.2 kB / 0.8673 GB, free: 18.03 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03671/2.004, allocations: 11.73 MB / 0.8787 GB, free: 6.91 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00872/2.013, allocations: 3.867 MB / 0.8825 GB, free: 3.031 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005627/2.019, allocations: 2.197 MB / 0.8847 GB, free: 0.8359 MB / 0.4948 GB Notification: Performance of SimCode: time 1.984e-06/2.019, allocations: 0 / 0.8847 GB, free: 0.8359 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.961/6.98, allocations: 141.4 MB / 1.023 GB, free: 58.1 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3_res.mat does not exist to compare? outputFormat=mat