Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001209/0.001209, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.416/1.416, allocations: 227.2 MB / 245 MB, free: 7.668 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001059/0.001059, allocations: 96.45 kB / 297.3 MB, free: 6.199 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.443/0.443, allocations: 45.24 MB / 394.7 MB, free: 31.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000273/0.000273, allocations: 8 kB / 468.5 MB, free: 7.641 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3251/0.3254, allocations: 63.25 MB / 0.5193 GB, free: 43.88 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1641/0.4895, allocations: 106.3 MB / 0.6231 GB, free: 15.25 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002665/0.4898, allocations: 83.92 kB / 0.6232 GB, free: 15.17 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5165/1.006, allocations: 91.13 MB / 0.7122 GB, free: 98.47 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.966e-06/1.006, allocations: 0 / 0.7122 GB, free: 98.47 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001538/1.007, allocations: 79.2 kB / 0.7123 GB, free: 98.46 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1651 * Number of variables: 1651 Notification: Performance of Generate backend data structure: time 0.01717/1.024, allocations: 4.428 MB / 0.7166 GB, free: 96.64 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.085e-05/1.024, allocations: 8.688 kB / 0.7166 GB, free: 96.64 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003035/1.027, allocations: 0.8323 MB / 0.7174 GB, free: 96.57 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01373/1.041, allocations: 3.539 MB / 0.7209 GB, free: 96.28 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01275/1.053, allocations: 3.992 MB / 0.7248 GB, free: 95.78 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004169/1.054, allocations: 325.2 kB / 0.7251 GB, free: 95.77 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00278/1.057, allocations: 431.5 kB / 0.7255 GB, free: 95.76 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03302/1.09, allocations: 10.76 MB / 0.736 GB, free: 94.44 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003831/1.09, allocations: 29.55 kB / 0.736 GB, free: 94.43 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002703/1.093, allocations: 191.4 kB / 0.7362 GB, free: 94.43 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00246/1.095, allocations: 1.191 MB / 0.7374 GB, free: 94.42 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02831/1.124, allocations: 10.38 MB / 0.7475 GB, free: 93.01 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06183/1.186, allocations: 36.5 MB / 0.7831 GB, free: 71.07 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007607/1.193, allocations: 4.28 MB / 0.7873 GB, free: 68.93 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001181/1.194, allocations: 1.318 MB / 0.7886 GB, free: 67.75 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.266e-05/1.194, allocations: 51.62 kB / 0.7887 GB, free: 67.7 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=235): time 6.983e-06/1.195, allocations: 112 / 0.7887 GB, free: 67.7 MB / 0.4948 GB Notification: Performance of matching and sorting (n=256): time 0.04039/1.235, allocations: 14.02 MB / 0.8023 GB, free: 63.08 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.022e-05/1.235, allocations: 76.09 kB / 0.8024 GB, free: 63.01 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006359/1.241, allocations: 2.462 MB / 0.8048 GB, free: 61 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.000674/1.242, allocations: 61.41 kB / 0.8049 GB, free: 60.93 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002202/1.244, allocations: 2.852 MB / 0.8077 GB, free: 58.39 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001477/1.246, allocations: 0.9586 MB / 0.8086 GB, free: 57.54 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000715/1.247, allocations: 108 kB / 0.8087 GB, free: 57.44 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0006472/1.247, allocations: 0.5502 MB / 0.8092 GB, free: 56.95 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003867/1.251, allocations: 2.27 MB / 0.8115 GB, free: 55.02 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005988/1.257, allocations: 5.348 MB / 0.8167 GB, free: 48.59 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005185/1.262, allocations: 3.508 MB / 0.8201 GB, free: 45.47 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001056/1.262, allocations: 32 kB / 0.8201 GB, free: 45.44 MB / 0.4948 GB Notification: Performance of matching and sorting (n=753) (initialization): time 0.0173/1.28, allocations: 8.354 MB / 0.8283 GB, free: 38.22 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001355/1.28, allocations: 55.95 kB / 0.8283 GB, free: 38.16 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002038/1.28, allocations: 108 kB / 0.8284 GB, free: 38.06 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003498/1.284, allocations: 1.048 MB / 0.8295 GB, free: 37.36 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004762/1.288, allocations: 1.285 MB / 0.8307 GB, free: 36.24 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002509/1.291, allocations: 2.496 MB / 0.8332 GB, free: 33.91 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005013/1.296, allocations: 307.4 kB / 0.8335 GB, free: 33.65 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001388/1.297, allocations: 325.4 kB / 0.8338 GB, free: 33.34 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 490 * Number of states: 0 () * Number of discrete variables: 26 (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.arrow.arrow.arrowLine.twoHeadedArrow,freeMotionScalarInit.arrow.headAtOrigin,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 (700): * Single equations (assignments): 691 * 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.00542/1.303, allocations: 2.205 MB / 0.8359 GB, free: 31.43 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007942/1.304, allocations: 284.3 kB / 0.8362 GB, free: 31.15 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009896/1.314, allocations: 4.95 MB / 0.841 GB, free: 26.75 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.763e-05/1.314, allocations: 47.83 kB / 0.8411 GB, free: 26.71 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.487e-05/1.314, allocations: 4 kB / 0.8411 GB, free: 26.71 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.193e-05/1.314, allocations: 11.95 kB / 0.8411 GB, free: 26.7 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02325/1.337, allocations: 11.35 MB / 0.8522 GB, free: 15.21 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.181e-05/1.337, allocations: 11.94 kB / 0.8522 GB, free: 15.2 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001799/1.339, allocations: 407.4 kB / 0.8526 GB, free: 14.8 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003134/1.342, allocations: 0.908 MB / 0.8535 GB, free: 13.89 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003768/1.342, allocations: 59.89 kB / 0.8535 GB, free: 13.83 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002253/1.345, allocations: 2.302 MB / 0.8558 GB, free: 11.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.216e-05/1.345, allocations: 11.94 kB / 0.8558 GB, free: 11.39 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01044/1.355, allocations: 7.996 MB / 0.8636 GB, free: 3.047 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001033/1.356, allocations: 325.4 kB / 0.8639 GB, free: 2.707 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008172/1.357, allocations: 44 kB / 0.8639 GB, free: 2.664 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001771/1.359, allocations: 139.6 kB / 0.8641 GB, free: 2.531 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000329/1.359, allocations: 157.6 kB / 0.8642 GB, free: 2.379 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001851/1.359, allocations: 67.98 kB / 0.8643 GB, free: 2.312 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003546/1.363, allocations: 1.677 MB / 0.8659 GB, free: 0.6289 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.8e-07/1.363, allocations: 0 / 0.8659 GB, free: 0.6289 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005765/1.369, allocations: 0.9885 MB / 0.8669 GB, free: 15.64 MB / 0.5105 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (206): * Single equations (assignments): 197 * 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.01472/1.383, allocations: 10.6 MB / 0.8772 GB, free: 4.742 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01146/1.395, allocations: 6.006 MB / 0.8831 GB, free: 14.7 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.185e-05/1.395, allocations: 4 kB / 0.8831 GB, free: 14.7 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005101/1.4, allocations: 2.542 MB / 0.8856 GB, free: 12.1 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003088/1.403, allocations: 391.2 kB / 0.886 GB, free: 11.73 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3608/1.764, allocations: 105.6 MB / 0.9891 GB, free: 51.3 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004004/1.768, allocations: 3.522 MB / 0.9925 GB, free: 50.51 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.004619/1.773, allocations: 2.044 MB / 0.9945 GB, free: 50.48 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002645/1.775, allocations: 1.886 MB / 0.9964 GB, free: 50.48 MB / 0.5417 GB Notification: Performance of SimCode: time 9.72e-07/1.776, allocations: 0 / 0.9964 GB, free: 50.48 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1258/1.901, allocations: 69.16 MB / 1.064 GB, free: 34.8 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001465/1.901, allocations: 201.1 kB / 1.064 GB, free: 34.57 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.89/5.792, allocations: 0 / 1.064 GB, free: 34.57 MB / 0.5417 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit_res.mat does not exist to compare? outputFormat=mat