Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.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.FreeMotionScalarInit2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2",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.001152/0.001152, allocations: 177.4 kB / 17.06 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.396/1.396, allocations: 223.2 MB / 241 MB, free: 11.9 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008808/0.0008808, allocations: 101.9 kB / 292.1 MB, free: 10.92 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.421/0.421, allocations: 44.21 MB / 387.5 MB, free: 38.8 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003095/0.0003095, allocations: 8 kB / 460 MB, free: 1.43 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3647/0.365, allocations: 61.9 MB / 0.5096 GB, free: 38.19 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1504/0.5154, allocations: 105.4 MB / 0.6126 GB, free: 5.645 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002804/0.5158, allocations: 83.94 kB / 0.6127 GB, free: 5.566 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.545/1.061, allocations: 90.64 MB / 0.7012 GB, free: 96.76 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.126e-06/1.061, allocations: 3.938 kB / 0.7012 GB, free: 96.75 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002328/1.061, allocations: 83.28 kB / 0.7013 GB, free: 96.75 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.01945/1.081, allocations: 4.357 MB / 0.7055 GB, free: 94.91 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.321e-05/1.081, allocations: 8.906 kB / 0.7055 GB, free: 94.91 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005139/1.086, allocations: 0.8518 MB / 0.7064 GB, free: 94.83 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01702/1.103, allocations: 3.546 MB / 0.7098 GB, free: 94.54 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01547/1.118, allocations: 4.531 MB / 0.7143 GB, free: 93.98 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006895/1.119, allocations: 328.9 kB / 0.7146 GB, free: 93.96 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003517/1.123, allocations: 438.6 kB / 0.715 GB, free: 93.96 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03771/1.16, allocations: 11.22 MB / 0.7259 GB, free: 91.04 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003617/1.161, allocations: 31.16 kB / 0.726 GB, free: 91.02 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002934/1.164, allocations: 191.9 kB / 0.7262 GB, free: 90.92 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002042/1.166, allocations: 1.221 MB / 0.7274 GB, free: 90.7 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02268/1.188, allocations: 10.81 MB / 0.7379 GB, free: 87.39 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06009/1.249, allocations: 37.17 MB / 0.7742 GB, free: 65.14 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007707/1.256, allocations: 4.567 MB / 0.7787 GB, free: 61.27 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001097/1.258, allocations: 1.323 MB / 0.78 GB, free: 59.83 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.105e-05/1.258, allocations: 52.56 kB / 0.78 GB, free: 59.77 MB / 490.7 MB Notification: Performance of pre-optimization done (n=235): time 5.981e-06/1.258, allocations: 0 / 0.78 GB, free: 59.77 MB / 490.7 MB Notification: Performance of matching and sorting (n=247): time 0.0383/1.296, allocations: 14.08 MB / 0.7938 GB, free: 47.96 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.003e-05/1.296, allocations: 73.41 kB / 0.7938 GB, free: 47.88 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004939/1.301, allocations: 2.451 MB / 0.7962 GB, free: 45.71 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000463/1.301, allocations: 61.69 kB / 0.7963 GB, free: 45.65 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001812/1.303, allocations: 2.887 MB / 0.7991 GB, free: 42.76 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001095/1.304, allocations: 0.9161 MB / 0.8 GB, free: 41.85 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005635/1.305, allocations: 111.3 kB / 0.8001 GB, free: 41.74 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004705/1.305, allocations: 0.5457 MB / 0.8006 GB, free: 41.19 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003182/1.309, allocations: 2.221 MB / 0.8028 GB, free: 38.96 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00456/1.313, allocations: 5.286 MB / 0.808 GB, free: 32.16 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004536/1.318, allocations: 3.435 MB / 0.8113 GB, free: 28.73 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.215e-05/1.318, allocations: 35.94 kB / 0.8114 GB, free: 28.69 MB / 490.7 MB Notification: Performance of matching and sorting (n=744) (initialization): time 0.01394/1.332, allocations: 8.198 MB / 0.8194 GB, free: 20.47 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001117/1.332, allocations: 55.98 kB / 0.8194 GB, free: 20.42 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001734/1.332, allocations: 108 kB / 0.8195 GB, free: 20.31 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003443/1.336, allocations: 1.032 MB / 0.8205 GB, free: 19.27 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005067/1.341, allocations: 1.279 MB / 0.8218 GB, free: 17.99 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00296/1.344, allocations: 2.479 MB / 0.8242 GB, free: 15.38 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005525/1.349, allocations: 315.2 kB / 0.8245 GB, free: 15.08 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001626/1.351, allocations: 324 kB / 0.8248 GB, free: 14.76 MB / 490.7 MB 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 (691): * Single equations (assignments): 682 * 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.00583/1.357, allocations: 2.219 MB / 0.827 GB, free: 12.54 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000701/1.358, allocations: 276.4 kB / 0.8272 GB, free: 12.26 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008765/1.366, allocations: 4.786 MB / 0.8319 GB, free: 7.445 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.101e-05/1.366, allocations: 47.98 kB / 0.832 GB, free: 7.398 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.487e-05/1.366, allocations: 4 kB / 0.832 GB, free: 7.395 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.176e-05/1.366, allocations: 15.89 kB / 0.832 GB, free: 7.383 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02243/1.389, allocations: 11.26 MB / 0.843 GB, free: 11.99 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.3e-05/1.389, allocations: 8 kB / 0.843 GB, free: 11.98 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002024/1.391, allocations: 395.6 kB / 0.8434 GB, free: 11.59 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002834/1.394, allocations: 0.6109 MB / 0.844 GB, free: 10.97 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004272/1.394, allocations: 55.34 kB / 0.844 GB, free: 10.92 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00265/1.397, allocations: 2.081 MB / 0.846 GB, free: 8.711 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.344e-05/1.397, allocations: 19.89 kB / 0.8461 GB, free: 8.691 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01275/1.41, allocations: 7.569 MB / 0.8535 GB, free: 0.7539 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001617/1.411, allocations: 317.5 kB / 0.8538 GB, free: 432 kB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001209/1.413, allocations: 50.95 kB / 0.8538 GB, free: 384 kB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002308/1.415, allocations: 123.8 kB / 0.8539 GB, free: 260 kB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005755/1.416, allocations: 156.9 kB / 0.8541 GB, free: 104 kB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002891/1.416, allocations: 71.98 kB / 0.8541 GB, free: 32 kB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.004126/1.42, allocations: 1.669 MB / 0.8558 GB, free: 14.36 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.7e-07/1.42, allocations: 4 kB / 0.8558 GB, free: 14.35 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.006466/1.427, allocations: 0.9755 MB / 0.8567 GB, free: 13.38 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.w_rel_b_1,freeMotionScalarInit.w_rel_b_2,freeMotionScalarInit.w_rel_b_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 (197): * Single equations (assignments): 188 * 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.01299/1.44, allocations: 10.51 MB / 0.867 GB, free: 2.566 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 $DER.freeMotionScalarInit.angle_2 has attribute stateSelect=StateSelect.always, but can't be selected as a state. [/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 $DER.freeMotionScalarInit.angle_1 has attribute stateSelect=StateSelect.always, but can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.009892/1.449, allocations: 5.82 MB / 0.8727 GB, free: 12.71 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.311e-05/1.45, allocations: 448 / 0.8727 GB, free: 12.71 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003964/1.454, allocations: 2.336 MB / 0.875 GB, free: 10.32 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002695/1.456, allocations: 397.2 kB / 0.8753 GB, free: 9.949 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3608/1.817, allocations: 105.3 MB / 0.9781 GB, free: 48.65 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004854/1.822, allocations: 3.532 MB / 0.9816 GB, free: 47.86 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.005001/1.827, allocations: 2.027 MB / 0.9836 GB, free: 47.83 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002776/1.83, allocations: 1.912 MB / 0.9854 GB, free: 47.82 MB / 0.5261 GB Notification: Performance of SimCode: time 8.92e-07/1.83, allocations: 0 / 0.9854 GB, free: 47.82 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1144/1.944, allocations: 68.18 MB / 1.052 GB, free: 27.54 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001586/1.944, allocations: 210.5 kB / 1.052 GB, free: 27.29 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.733/5.677, allocations: 0 / 1.052 GB, free: 27.29 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2_res.mat does not exist to compare? outputFormat=mat