Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00133/0.00133, allocations: 176.7 kB / 8.742 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.609/1.609, allocations: 221.5 MB / 230.7 MB, free: 7.566 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007728/0.0007731, allocations: 91.47 kB / 281.6 MB, free: 5.32 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1999/0.1999, allocations: 44.15 MB / 376.5 MB, free: 3.047 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.714e-05/2.718e-05, allocations: 4 kB / 444.7 MB, free: 15.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1909/0.191, allocations: 61.92 MB / 0.4948 GB, free: 1.164 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4642/0.6552, allocations: 109.7 MB / 0.6019 GB, free: 2.656 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002507/0.6555, allocations: 67.97 kB / 0.6019 GB, free: 2.59 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2415/0.897, allocations: 96.53 MB / 0.6962 GB, free: 1.328 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.094e-06/0.8971, allocations: 0 / 0.6962 GB, free: 1.328 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001959/0.8973, allocations: 95.98 kB / 0.6963 GB, free: 1.234 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.01849/0.9158, allocations: 4.612 MB / 0.7008 GB, free: 12.55 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.639e-05/0.9159, allocations: 15.98 kB / 0.7008 GB, free: 12.54 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01633/0.9322, allocations: 3.601 MB / 0.7043 GB, free: 8.926 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01415/0.9464, allocations: 4.726 MB / 0.7089 GB, free: 4.148 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000335/0.9468, allocations: 160 kB / 0.7091 GB, free: 3.992 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003306/0.9501, allocations: 284 kB / 0.7094 GB, free: 3.715 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.3638/1.314, allocations: 8.294 MB / 0.7175 GB, free: 125.2 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02869/1.343, allocations: 10.98 MB / 0.7282 GB, free: 123.8 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003408/1.343, allocations: 37.58 kB / 0.7282 GB, free: 123.8 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001907/1.345, allocations: 15.41 kB / 0.7282 GB, free: 123.8 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002319/1.347, allocations: 1.293 MB / 0.7295 GB, free: 123.8 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06062/1.408, allocations: 39.09 MB / 0.7677 GB, free: 105.4 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004791/1.413, allocations: 4.264 MB / 0.7718 GB, free: 103 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002921/1.416, allocations: 2.282 MB / 0.7741 GB, free: 102.1 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001291/1.417, allocations: 1.648 MB / 0.7757 GB, free: 100.6 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.025e-05/1.417, allocations: 59.97 kB / 0.7757 GB, free: 100.6 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=263): time 7.314e-06/1.417, allocations: 0 / 0.7757 GB, free: 100.6 MB / 0.5105 GB Notification: Performance of matching and sorting (n=282): time 0.03379/1.451, allocations: 16.85 MB / 0.7922 GB, free: 94.82 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.711e-05/1.451, allocations: 102.8 kB / 0.7923 GB, free: 94.72 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003871/1.455, allocations: 2.544 MB / 0.7948 GB, free: 93.77 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0005218/1.455, allocations: 25.7 kB / 0.7948 GB, free: 93.73 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001732/1.457, allocations: 3.242 MB / 0.798 GB, free: 91.26 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001459/1.459, allocations: 1.014 MB / 0.7989 GB, free: 90.5 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000302/1.459, allocations: 0 / 0.7989 GB, free: 90.5 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0003854/1.459, allocations: 0.5924 MB / 0.7995 GB, free: 90.07 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003178/1.463, allocations: 2.365 MB / 0.8018 GB, free: 89.27 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004324/1.467, allocations: 5.905 MB / 0.8076 GB, free: 83.73 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004584/1.472, allocations: 3.769 MB / 0.8113 GB, free: 82.59 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.258e-05/1.472, allocations: 38.06 kB / 0.8113 GB, free: 82.59 MB / 0.5105 GB Notification: Performance of matching and sorting (n=859) (initialization): time 0.01937/1.491, allocations: 9.416 MB / 0.8205 GB, free: 75.32 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 9.597e-05/1.491, allocations: 60 kB / 0.8206 GB, free: 75.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000169/1.491, allocations: 124 kB / 0.8207 GB, free: 75.14 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008775/1.5, allocations: 2.35 MB / 0.823 GB, free: 73.63 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004846/1.505, allocations: 1.426 MB / 0.8244 GB, free: 72.38 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01419/1.519, allocations: 9.833 MB / 0.834 GB, free: 64.01 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004508/1.524, allocations: 225.3 kB / 0.8342 GB, free: 63.84 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001095/1.525, allocations: 383.5 kB / 0.8346 GB, free: 63.48 MB / 0.5105 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.001034/1.526, allocations: 431.4 kB / 0.835 GB, free: 63.05 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006716/1.533, allocations: 4.311 MB / 0.8392 GB, free: 59.33 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007048/1.533, allocations: 308 kB / 0.8395 GB, free: 59.02 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007136/1.541, allocations: 4.913 MB / 0.8443 GB, free: 54.93 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.146e-05/1.541, allocations: 44 kB / 0.8443 GB, free: 54.89 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.724e-06/1.541, allocations: 6.25 kB / 0.8443 GB, free: 54.89 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.248e-05/1.541, allocations: 13.5 kB / 0.8443 GB, free: 54.89 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01595/1.557, allocations: 10.96 MB / 0.855 GB, free: 45.68 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.871e-05/1.557, allocations: 8 kB / 0.8551 GB, free: 45.67 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001905/1.559, allocations: 466.5 kB / 0.8555 GB, free: 45.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002013/1.561, allocations: 0.6974 MB / 0.8562 GB, free: 44.84 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003185/1.561, allocations: 39.45 kB / 0.8562 GB, free: 44.81 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002095/1.563, allocations: 2.344 MB / 0.8585 GB, free: 42.64 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-05/1.563, allocations: 19.81 kB / 0.8585 GB, free: 42.62 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009244/1.572, allocations: 8.246 MB / 0.8666 GB, free: 34.78 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000944/1.573, allocations: 349.1 kB / 0.8669 GB, free: 34.43 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004632/1.574, allocations: 18.02 kB / 0.8669 GB, free: 34.41 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001434/1.575, allocations: 108.9 kB / 0.867 GB, free: 34.35 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002803/1.576, allocations: 177.2 kB / 0.8672 GB, free: 34.18 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001756/1.576, allocations: 84.77 kB / 0.8673 GB, free: 34.1 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002396/1.578, allocations: 1.66 MB / 0.8689 GB, free: 32.44 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.5e-07/1.578, allocations: 0 / 0.8689 GB, free: 32.44 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005831/1.584, allocations: 0.99 MB / 0.8699 GB, free: 31.46 MB / 0.5105 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.009997/1.594, allocations: 11.15 MB / 0.8808 GB, free: 19.97 MB / 0.5105 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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 4.0.0+maint.om/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 4.0.0+maint.om/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.008269/1.602, allocations: 5.986 MB / 0.8866 GB, free: 13.99 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.421e-05/1.602, allocations: 1.5 kB / 0.8866 GB, free: 13.99 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004577/1.607, allocations: 2.608 MB / 0.8891 GB, free: 11.34 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00339/1.61, allocations: 344 kB / 0.8895 GB, free: 11.02 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02254/1.633, allocations: 11.11 MB / 0.9003 GB, free: 15.79 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004335/1.637, allocations: 3.818 MB / 0.9041 GB, free: 11.95 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.005519/1.643, allocations: 2.257 MB / 0.9063 GB, free: 9.699 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003659/1.647, allocations: 2.139 MB / 0.9083 GB, free: 7.562 MB / 0.5261 GB Notification: Performance of SimCode: time 1.452e-06/1.647, allocations: 0 / 0.9083 GB, free: 7.562 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4238/2.071, allocations: 78.25 MB / 0.9848 GB, free: 116.1 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002204/2.071, allocations: 147.8 kB / 0.9849 GB, free: 115.9 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.457/6.527, allocations: 0 / 0.9849 GB, free: 115.9 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit4_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit4.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4_res.mat does not exist to compare? outputFormat=mat