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.001056/0.001056, allocations: 198.1 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 225.6 MB / 234.8 MB, free: 3.273 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009295/0.0009295, allocations: 94.64 kB / 286.7 MB, free: 5.258 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1932/0.1932, allocations: 45.15 MB / 383.7 MB, free: 280 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 2.725e-05/2.74e-05, allocations: 4 kB / 453.3 MB, free: 75.74 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.144/0.1441, allocations: 63.24 MB / 0.5045 GB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4567/0.6008, allocations: 110.6 MB / 0.6124 GB, free: 7.98 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002478/0.6011, allocations: 78.7 kB / 0.6125 GB, free: 7.941 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2425/0.8436, allocations: 97.39 MB / 0.7076 GB, free: 14.66 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.937e-06/0.8437, allocations: 0 / 0.7076 GB, free: 14.66 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002371/0.8439, allocations: 91.94 kB / 0.7077 GB, free: 14.57 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.01771/0.8617, allocations: 4.71 MB / 0.7123 GB, free: 9.797 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.948e-05/0.8617, allocations: 8.031 kB / 0.7123 GB, free: 9.789 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01629/0.878, allocations: 3.608 MB / 0.7158 GB, free: 6.168 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01287/0.891, allocations: 4.218 MB / 0.72 GB, free: 1.898 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003407/0.8914, allocations: 156 kB / 0.7201 GB, free: 1.746 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002731/0.8941, allocations: 299.8 kB / 0.7204 GB, free: 1.453 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0171/0.9113, allocations: 8.294 MB / 0.7285 GB, free: 9.152 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02649/0.9378, allocations: 10.99 MB / 0.7392 GB, free: 13.64 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003243/0.9382, allocations: 31.75 kB / 0.7392 GB, free: 13.61 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002701/0.9409, allocations: 16 kB / 0.7393 GB, free: 13.59 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002187/0.9431, allocations: 1.303 MB / 0.7405 GB, free: 12.29 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3349/1.278, allocations: 39.07 MB / 0.7787 GB, free: 115.3 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005506/1.284, allocations: 4.265 MB / 0.7829 GB, free: 114.1 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002983/1.287, allocations: 2.279 MB / 0.7851 GB, free: 114.1 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009953/1.288, allocations: 1.65 MB / 0.7867 GB, free: 112.6 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.017e-05/1.288, allocations: 57.41 kB / 0.7867 GB, free: 112.6 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=263): time 5.38e-06/1.288, allocations: 3.812 kB / 0.7867 GB, free: 112.6 MB / 0.5261 GB Notification: Performance of matching and sorting (n=282): time 0.02798/1.316, allocations: 16.85 MB / 0.8032 GB, free: 110.5 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.432e-05/1.316, allocations: 106.9 kB / 0.8033 GB, free: 110.4 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002852/1.319, allocations: 2.546 MB / 0.8058 GB, free: 110.1 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0002051/1.319, allocations: 29.2 kB / 0.8058 GB, free: 110 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001201/1.32, allocations: 3.239 MB / 0.809 GB, free: 108.3 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006781/1.321, allocations: 1.012 MB / 0.81 GB, free: 107.5 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002227/1.321, allocations: 0 / 0.81 GB, free: 107.5 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002496/1.321, allocations: 0.5881 MB / 0.8105 GB, free: 107.1 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002442/1.324, allocations: 2.374 MB / 0.8129 GB, free: 106.3 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003622/1.327, allocations: 5.895 MB / 0.8186 GB, free: 100.7 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004164/1.332, allocations: 3.775 MB / 0.8223 GB, free: 99.63 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.455e-05/1.332, allocations: 36.34 kB / 0.8223 GB, free: 99.63 MB / 0.5261 GB Notification: Performance of matching and sorting (n=859) (initialization): time 0.01782/1.349, allocations: 9.413 MB / 0.8315 GB, free: 97.32 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 6.823e-05/1.35, allocations: 58.94 kB / 0.8316 GB, free: 97.32 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001126/1.35, allocations: 126.5 kB / 0.8317 GB, free: 97.32 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00841/1.358, allocations: 2.34 MB / 0.834 GB, free: 97.09 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004767/1.363, allocations: 1.436 MB / 0.8354 GB, free: 96.92 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0143/1.377, allocations: 9.841 MB / 0.845 GB, free: 92.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005117/1.382, allocations: 209.8 kB / 0.8452 GB, free: 92.4 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009737/1.383, allocations: 378 kB / 0.8456 GB, free: 92.35 MB / 0.5261 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: spring.e_rel_0[1]:VARIABLE(unit = "1" ) "Unit vector in direction from frame_a to frame_b, resolved in world frame" type: Real [3] spring.e_rel_0[2]:VARIABLE(unit = "1" ) "Unit vector in direction from frame_a to frame_b, resolved in world frame" type: Real [3] spring.e_rel_0[3]:VARIABLE(unit = "1" ) "Unit vector in direction from frame_a to frame_b, resolved in world frame" type: Real [3] spring.f:VARIABLE(unit = "N" ) "Line force acting on frame_a and on frame_b (positive, if acting on frame_b and directed from frame_a to frame_b)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 570 * 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 (777): * Single equations (assignments): 769 * 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 24} Notification: Performance of prepare postOptimizeDAE: time 0.0009692/1.384, allocations: 440.7 kB / 0.846 GB, free: 92 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006035/1.39, allocations: 4.314 MB / 0.8502 GB, free: 90.15 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004802/1.391, allocations: 308 kB / 0.8505 GB, free: 89.85 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006595/1.398, allocations: 4.902 MB / 0.8553 GB, free: 85.77 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.006e-05/1.398, allocations: 55.78 kB / 0.8553 GB, free: 85.71 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/1.398, allocations: 0 / 0.8553 GB, free: 85.71 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.262e-05/1.398, allocations: 11.34 kB / 0.8553 GB, free: 85.71 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01487/1.413, allocations: 10.98 MB / 0.8661 GB, free: 76.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.631e-05/1.413, allocations: 11.52 kB / 0.8661 GB, free: 76.49 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001816/1.414, allocations: 458.1 kB / 0.8665 GB, free: 76.13 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001886/1.416, allocations: 0.7025 MB / 0.8672 GB, free: 75.66 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002085/1.417, allocations: 34.94 kB / 0.8672 GB, free: 75.64 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001938/1.418, allocations: 2.346 MB / 0.8695 GB, free: 73.45 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.256e-06/1.418, allocations: 15.94 kB / 0.8695 GB, free: 73.44 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00865/1.427, allocations: 8.244 MB / 0.8776 GB, free: 65.6 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007752/1.428, allocations: 347.8 kB / 0.8779 GB, free: 65.24 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000419/1.428, allocations: 26.75 kB / 0.8779 GB, free: 65.22 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001303/1.43, allocations: 105.7 kB / 0.878 GB, free: 65.17 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002489/1.43, allocations: 181.1 kB / 0.8782 GB, free: 65.05 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001826/1.43, allocations: 90.75 kB / 0.8783 GB, free: 64.97 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001963/1.432, allocations: 1.656 MB / 0.8799 GB, free: 63.54 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.2e-07/1.432, allocations: 0 / 0.8799 GB, free: 63.54 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004073/1.436, allocations: 0.9919 MB / 0.8809 GB, free: 62.55 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 39 * 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 (231): * Single equations (assignments): 222 * 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.008702/1.445, allocations: 11.15 MB / 0.8918 GB, free: 51.99 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 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: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. Notification: Performance of simCode: created initialization part: time 0.008097/1.453, allocations: 5.986 MB / 0.8976 GB, free: 46.59 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.166e-05/1.453, allocations: 0 / 0.8976 GB, free: 46.59 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004007/1.457, allocations: 2.599 MB / 0.9002 GB, free: 44.26 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002011/1.459, allocations: 331.6 kB / 0.9005 GB, free: 43.98 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01902/1.478, allocations: 11.13 MB / 0.9113 GB, free: 34.2 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003303/1.482, allocations: 3.821 MB / 0.9151 GB, free: 31.29 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.00461/1.486, allocations: 2.257 MB / 0.9173 GB, free: 29.86 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002332/1.489, allocations: 2.133 MB / 0.9194 GB, free: 27.89 MB / 0.5261 GB Notification: Performance of SimCode: time 1.543e-06/1.489, allocations: 0 / 0.9194 GB, free: 27.89 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3615/1.85, allocations: 78.24 MB / 0.9958 GB, free: 127.6 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001696/1.85, allocations: 148.2 kB / 0.9959 GB, free: 127.4 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.891/5.741, allocations: 2.812 kB / 0.9959 GB, free: 127.4 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