Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.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.FreeMotionScalarInit2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002/0.002, allocations: 197.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.455/1.455, allocations: 225.6 MB / 234.8 MB, free: 3.305 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001062/0.001062, allocations: 101.2 kB / 286.7 MB, free: 5.254 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2124/0.2124, allocations: 45.15 MB / 383.8 MB, free: 276 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.641e-05/1.642e-05, allocations: 4 kB / 453.3 MB, free: 75.72 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.112, allocations: 63.25 MB / 0.5045 GB, free: 12.52 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4604/0.5724, allocations: 105.6 MB / 0.6076 GB, free: 12.89 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002254/0.5727, allocations: 71.78 kB / 0.6076 GB, free: 12.85 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2233/0.796, allocations: 90.04 MB / 0.6956 GB, free: 11.01 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.545e-06/0.796, allocations: 4 kB / 0.6956 GB, free: 11 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002021/0.7962, allocations: 75.98 kB / 0.6957 GB, free: 10.93 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: 1672 * Number of variables: 1672 Notification: Performance of Generate backend data structure: time 0.02025/0.8165, allocations: 4.325 MB / 0.6999 GB, free: 6.539 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.498e-05/0.8165, allocations: 12.03 kB / 0.6999 GB, free: 6.527 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01642/0.833, allocations: 3.562 MB / 0.7034 GB, free: 2.953 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01204/0.8451, allocations: 3.999 MB / 0.7073 GB, free: 14.9 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003309/0.8454, allocations: 136 kB / 0.7074 GB, free: 14.77 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002817/0.8483, allocations: 255.9 kB / 0.7076 GB, free: 14.52 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01407/0.8623, allocations: 7.71 MB / 0.7152 GB, free: 6.797 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02643/0.8888, allocations: 10.1 MB / 0.725 GB, free: 12.22 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002389/0.8891, allocations: 23.81 kB / 0.7251 GB, free: 12.2 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002236/0.8914, allocations: 12 kB / 0.7251 GB, free: 12.19 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002032/0.8934, allocations: 1.22 MB / 0.7263 GB, free: 10.97 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3955/1.289, allocations: 34.65 MB / 0.7601 GB, free: 123.9 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006003/1.295, allocations: 3.986 MB / 0.764 GB, free: 122.8 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003718/1.299, allocations: 2.128 MB / 0.7661 GB, free: 122.8 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00122/1.3, allocations: 1.319 MB / 0.7674 GB, free: 121.6 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.461e-05/1.3, allocations: 55.38 kB / 0.7674 GB, free: 121.6 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=237): time 9.157e-06/1.3, allocations: 2.531 kB / 0.7674 GB, free: 121.6 MB / 0.5261 GB Notification: Performance of matching and sorting (n=249): time 0.02785/1.328, allocations: 10.19 MB / 0.7774 GB, free: 120.9 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.308e-05/1.328, allocations: 73.75 kB / 0.7774 GB, free: 120.8 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003437/1.332, allocations: 2.352 MB / 0.7797 GB, free: 120.5 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0004168/1.332, allocations: 29.58 kB / 0.7798 GB, free: 120.5 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001385/1.333, allocations: 2.968 MB / 0.7827 GB, free: 118.9 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008877/1.334, allocations: 0.8929 MB / 0.7835 GB, free: 118.4 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001979/1.334, allocations: 2.375 kB / 0.7835 GB, free: 118.4 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002663/1.335, allocations: 0.5653 MB / 0.7841 GB, free: 118.1 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002502/1.337, allocations: 2.141 MB / 0.7862 GB, free: 118.1 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003865/1.341, allocations: 5.433 MB / 0.7915 GB, free: 113.8 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004004/1.345, allocations: 3.452 MB / 0.7949 GB, free: 113.8 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.089e-05/1.345, allocations: 31.78 kB / 0.7949 GB, free: 113.8 MB / 0.5261 GB Notification: Performance of matching and sorting (n=788) (initialization): time 0.01281/1.358, allocations: 7.701 MB / 0.8024 GB, free: 113.3 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 7.849e-05/1.358, allocations: 62.34 kB / 0.8025 GB, free: 113.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001135/1.358, allocations: 122.2 kB / 0.8026 GB, free: 113.3 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003449/1.362, allocations: 1.031 MB / 0.8036 GB, free: 113.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004227/1.366, allocations: 1.352 MB / 0.8049 GB, free: 113.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001993/1.368, allocations: 2.385 MB / 0.8072 GB, free: 111.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003891/1.372, allocations: 210.6 kB / 0.8074 GB, free: 111.9 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008962/1.373, allocations: 348.3 kB / 0.8078 GB, free: 111.9 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 532 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (735): * Single equations (assignments): 726 * 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 {(3,100.0%),(2,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.0008818/1.374, allocations: 403.1 kB / 0.8082 GB, free: 111.6 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006936/1.381, allocations: 4.107 MB / 0.8122 GB, free: 110.5 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007701/1.381, allocations: 283.7 kB / 0.8124 GB, free: 110.3 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008187/1.39, allocations: 4.62 MB / 0.8169 GB, free: 108.9 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.614e-05/1.39, allocations: 47 kB / 0.817 GB, free: 108.9 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.198e-06/1.39, allocations: 6.844 kB / 0.817 GB, free: 108.9 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.882e-05/1.39, allocations: 10.97 kB / 0.817 GB, free: 108.9 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01995/1.41, allocations: 10.07 MB / 0.8268 GB, free: 105.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.96e-05/1.41, allocations: 13.53 kB / 0.8269 GB, free: 105.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001785/1.412, allocations: 392.5 kB / 0.8272 GB, free: 105.4 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002944/1.415, allocations: 0.5957 MB / 0.8278 GB, free: 105.3 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004404/1.415, allocations: 27.97 kB / 0.8278 GB, free: 105.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00196/1.417, allocations: 2.015 MB / 0.8298 GB, free: 103.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.557e-05/1.417, allocations: 14.16 kB / 0.8298 GB, free: 103.9 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01037/1.427, allocations: 7.445 MB / 0.8371 GB, free: 98.98 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000878/1.428, allocations: 324.8 kB / 0.8374 GB, free: 98.64 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006503/1.429, allocations: 19.2 kB / 0.8374 GB, free: 98.63 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00161/1.431, allocations: 96.02 kB / 0.8375 GB, free: 98.58 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002852/1.431, allocations: 152.7 kB / 0.8377 GB, free: 98.48 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001689/1.431, allocations: 74.41 kB / 0.8377 GB, free: 98.41 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.00308/1.434, allocations: 1.541 MB / 0.8392 GB, free: 97.07 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.31e-07/1.434, allocations: 0 / 0.8392 GB, free: 97.07 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006298/1.44, allocations: 0.8507 MB / 0.8401 GB, free: 96.23 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 41 * 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.w_rel_b_1,freeMotionScalarInit.w_rel_b_2,freeMotionScalarInit.w_rel_b_3) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (199): * Single equations (assignments): 190 * 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.01101/1.452, allocations: 10.51 MB / 0.8503 GB, free: 86.28 MB / 0.5261 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Mechanics/MultiBody/Joints/FreeMotionScalarInit.mo:77:3-79:159:writable] Warning: Variable $DER.freeMotionScalarInit.angle_2 has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Mechanics/MultiBody/Joints/FreeMotionScalarInit.mo:74:3-76:159:writable] Warning: Variable $DER.freeMotionScalarInit.angle_1 has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. Notification: Performance of simCode: created initialization part: time 0.009423/1.461, allocations: 5.62 MB / 0.8558 GB, free: 81.22 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.358e-05/1.461, allocations: 4 kB / 0.8558 GB, free: 81.21 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003942/1.465, allocations: 2.254 MB / 0.858 GB, free: 79.16 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002751/1.468, allocations: 302.2 kB / 0.8583 GB, free: 78.91 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02656/1.494, allocations: 10.3 MB / 0.8684 GB, free: 69.84 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005011/1.499, allocations: 3.529 MB / 0.8718 GB, free: 67.13 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.005178/1.505, allocations: 2.13 MB / 0.8739 GB, free: 65.79 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003336/1.508, allocations: 1.894 MB / 0.8757 GB, free: 64.03 MB / 0.5261 GB Notification: Performance of SimCode: time 1.122e-06/1.508, allocations: 0 / 0.8757 GB, free: 64.03 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09623/1.604, allocations: 66.13 MB / 0.9403 GB, free: 3.133 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001392/1.604, allocations: 147.6 kB / 0.9405 GB, free: 2.938 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.462/5.067, allocations: 2.812 kB / 0.9405 GB, free: 2.938 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2_res.mat does not exist to compare? outputFormat=mat