Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.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.FreeMotionScalarInit4,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009648/0.0009648, allocations: 196.8 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.235/1.235, allocations: 225.4 MB / 240.1 MB, free: 15.17 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008592/0.0008592, allocations: 88.16 kB / 292.1 MB, free: 5.922 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1758/0.1758, allocations: 45.14 MB / 389.3 MB, free: 11.89 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 2.974e-05/2.978e-05, allocations: 4 kB / 460.5 MB, free: 69.95 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09023/0.09027, allocations: 63.25 MB / 0.5115 GB, free: 6.723 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3646/0.4549, allocations: 111.2 MB / 0.6201 GB, free: 14.97 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001715/0.4551, allocations: 79.7 kB / 0.6202 GB, free: 14.93 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2284/0.6835, allocations: 99.19 MB / 0.717 GB, free: 3.512 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.603e-06/0.6835, allocations: 0 / 0.717 GB, free: 3.512 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001269/0.6837, allocations: 91.94 kB / 0.7171 GB, free: 3.422 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: 1849 * Number of variables: 1849 Notification: Performance of Generate backend data structure: time 0.01152/0.6952, allocations: 4.718 MB / 0.7217 GB, free: 14.64 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.6953, allocations: 11.97 kB / 0.7217 GB, free: 14.62 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001287/0.6965, allocations: 0.935 MB / 0.7226 GB, free: 13.68 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01362/0.7102, allocations: 3.597 MB / 0.7262 GB, free: 10.07 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01083/0.721, allocations: 4.222 MB / 0.7303 GB, free: 5.789 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003875/0.7215, allocations: 369.8 kB / 0.7306 GB, free: 5.426 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002498/0.724, allocations: 495.8 kB / 0.7311 GB, free: 4.941 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02726/0.7513, allocations: 11.99 MB / 0.7428 GB, free: 8.418 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001723/0.7515, allocations: 39.73 kB / 0.7429 GB, free: 8.379 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001026/0.7525, allocations: 219.9 kB / 0.7431 GB, free: 8.164 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001696/0.7542, allocations: 1.287 MB / 0.7443 GB, free: 6.875 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2958/1.05, allocations: 11.19 MB / 0.7552 GB, free: 126 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05084/1.101, allocations: 41.45 MB / 0.7957 GB, free: 109.5 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008107/1.109, allocations: 4.839 MB / 0.8005 GB, free: 107.9 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002478/1.112, allocations: 2.346 MB / 0.8027 GB, free: 107 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008887/1.12, allocations: 6.85 MB / 0.8094 GB, free: 103.2 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.525e-05/1.121, allocations: 55.61 kB / 0.8095 GB, free: 103.1 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=229): time 3.787e-06/1.121, allocations: 3.531 kB / 0.8095 GB, free: 103.1 MB / 0.5261 GB Notification: Performance of matching and sorting (n=250): time 0.03422/1.155, allocations: 15.67 MB / 0.8248 GB, free: 98.74 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.431e-05/1.155, allocations: 75.81 kB / 0.8249 GB, free: 98.67 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003389/1.158, allocations: 2.779 MB / 0.8276 GB, free: 97.6 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0002458/1.159, allocations: 54.52 kB / 0.8276 GB, free: 97.55 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001305/1.16, allocations: 3.236 MB / 0.8308 GB, free: 95.07 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007259/1.161, allocations: 0.9318 MB / 0.8317 GB, free: 94.39 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002311/1.161, allocations: 119.9 kB / 0.8318 GB, free: 94.3 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002576/1.161, allocations: 0.5728 MB / 0.8324 GB, free: 93.88 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002753/1.164, allocations: 2.369 MB / 0.8347 GB, free: 93.11 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003879/1.168, allocations: 5.675 MB / 0.8402 GB, free: 87.94 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004041/1.172, allocations: 3.71 MB / 0.8439 GB, free: 86.8 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.494e-05/1.172, allocations: 34.06 kB / 0.8439 GB, free: 86.8 MB / 0.5261 GB Notification: Performance of matching and sorting (n=805) (initialization): time 0.01796/1.19, allocations: 9.793 MB / 0.8535 GB, free: 83.65 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 7.627e-05/1.19, allocations: 52 kB / 0.8535 GB, free: 83.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001037/1.19, allocations: 116 kB / 0.8536 GB, free: 83.49 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007598/1.198, allocations: 2.339 MB / 0.8559 GB, free: 81.97 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003706/1.201, allocations: 1.327 MB / 0.8572 GB, free: 80.81 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0136/1.215, allocations: 10.59 MB / 0.8675 GB, free: 71.74 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004097/1.219, allocations: 328.8 kB / 0.8679 GB, free: 71.47 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009416/1.22, allocations: 350.6 kB / 0.8682 GB, free: 71.13 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 528 * Number of states: 0 () * Number of discrete variables: 32 (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.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 (720): * Single equations (assignments): 712 * 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: 0 * Non-linear torn systems: 2 {4 5,3 27} Notification: Performance of prepare postOptimizeDAE: time 0.0008882/1.221, allocations: 0.5395 MB / 0.8687 GB, free: 70.59 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004985/1.221, allocations: 300.1 kB / 0.869 GB, free: 70.29 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006163/1.228, allocations: 4.532 MB / 0.8734 GB, free: 66.48 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.624e-05/1.228, allocations: 44 kB / 0.8735 GB, free: 66.44 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.056e-05/1.228, allocations: 0 / 0.8735 GB, free: 66.44 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.635e-05/1.228, allocations: 10.92 kB / 0.8735 GB, free: 66.44 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0146/1.242, allocations: 10.74 MB / 0.884 GB, free: 57.48 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.001e-05/1.242, allocations: 8.125 kB / 0.884 GB, free: 57.47 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001548/1.244, allocations: 406.4 kB / 0.8844 GB, free: 57.15 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001735/1.246, allocations: 0.6917 MB / 0.885 GB, free: 56.68 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001539/1.246, allocations: 58.09 kB / 0.8851 GB, free: 56.63 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001955/1.248, allocations: 2.414 MB / 0.8874 GB, free: 54.38 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/1.248, allocations: 6.438 kB / 0.8875 GB, free: 54.38 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007592/1.255, allocations: 7.39 MB / 0.8947 GB, free: 47.55 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006833/1.256, allocations: 356.7 kB / 0.895 GB, free: 47.19 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003082/1.256, allocations: 47.91 kB / 0.8951 GB, free: 47.15 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001191/1.258, allocations: 138.1 kB / 0.8952 GB, free: 47.06 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002436/1.258, allocations: 140.3 kB / 0.8953 GB, free: 46.97 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001417/1.258, allocations: 67.78 kB / 0.8954 GB, free: 46.91 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002186/1.26, allocations: 1.865 MB / 0.8972 GB, free: 45.27 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.5e-07/1.26, allocations: 0 / 0.8972 GB, free: 45.27 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.003793/1.264, allocations: 1.128 MB / 0.8983 GB, free: 44.15 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * 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.derdd[1].u,freeMotionScalarInit.derdd[2].u,freeMotionScalarInit.derdd[3].u) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (202): * Single equations (assignments): 193 * 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.008026/1.272, allocations: 9.179 MB / 0.9073 GB, free: 35.61 MB / 0.5261 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Mechanics/MultiBody/Joints/FreeMotionScalarInit.mo:80:3-82:159:writable] Warning: Variable freeMotionScalarInit.angle_3 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 freeMotionScalarInit.angle_1 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:77:3-79:159:writable] Warning: Variable freeMotionScalarInit.angle_2 has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. Notification: Performance of simCode: created initialization part: time 0.007634/1.28, allocations: 5.976 MB / 0.9131 GB, free: 29.71 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.471e-06/1.28, allocations: 0 / 0.9131 GB, free: 29.71 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003236/1.283, allocations: 2.479 MB / 0.9155 GB, free: 27.18 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001792/1.285, allocations: 439.3 kB / 0.916 GB, free: 26.78 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01817/1.303, allocations: 10.9 MB / 0.9266 GB, free: 15.84 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003052/1.306, allocations: 3.819 MB / 0.9303 GB, free: 12 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.004073/1.31, allocations: 2.038 MB / 0.9323 GB, free: 9.977 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001975/1.312, allocations: 2.108 MB / 0.9344 GB, free: 7.867 MB / 0.5261 GB Notification: Performance of SimCode: time 7.82e-07/1.312, allocations: 0.75 kB / 0.9344 GB, free: 7.867 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3663/1.678, allocations: 81.24 MB / 1.014 GB, free: 124.4 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001405/1.679, allocations: 185.8 kB / 1.014 GB, free: 124.2 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.491/5.17, allocations: 3.938 kB / 1.014 GB, free: 124.2 MB / 0.5417 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit4_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit4.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4_res.mat does not exist to compare? outputFormat=mat