Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0015/0.0015, allocations: 174.9 kB / 8.004 MB, free: 1.07 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.624/1.624, allocations: 205.3 MB / 213.7 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008675/0.0008673, allocations: 82.66 kB / 261.7 MB, free: 1.688 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2125/0.2125, allocations: 43.49 MB / 353.2 MB, free: 272 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.522e-05/1.525e-05, allocations: 4 kB / 418.4 MB, free: 28.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1098, allocations: 58.85 MB / 477.2 MB, free: 1.539 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4301/0.5399, allocations: 103.6 MB / 0.5672 GB, free: 7.691 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000267/0.5403, allocations: 81.73 kB / 0.5673 GB, free: 7.652 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2231/0.7634, allocations: 90.34 MB / 0.6555 GB, free: 5.445 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.257e-06/0.7635, allocations: 0 / 0.6555 GB, free: 5.445 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001502/0.7636, allocations: 80 kB / 0.6556 GB, free: 5.367 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1720 * Number of variables: 1720 Notification: Performance of Generate backend data structure: time 0.01485/0.7785, allocations: 4.306 MB / 0.6598 GB, free: 0.9961 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.397e-05/0.7785, allocations: 12.03 kB / 0.6598 GB, free: 0.9844 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01583/0.7944, allocations: 3.585 MB / 0.6633 GB, free: 13.39 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01316/0.8076, allocations: 4.706 MB / 0.6679 GB, free: 8.629 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002212/0.8078, allocations: 140 kB / 0.6681 GB, free: 8.492 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001952/0.8098, allocations: 264 kB / 0.6683 GB, free: 8.234 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0134/0.8232, allocations: 7.937 MB / 0.6761 GB, free: 296 kB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01843/0.8417, allocations: 10.38 MB / 0.6862 GB, free: 5.43 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000117/0.8419, allocations: 27.72 kB / 0.6862 GB, free: 5.402 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005229/0.8424, allocations: 23.92 kB / 0.6863 GB, free: 5.379 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001661/0.8441, allocations: 1.259 MB / 0.6875 GB, free: 4.117 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3241/1.168, allocations: 35.46 MB / 0.7221 GB, free: 112.8 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005241/1.173, allocations: 4.096 MB / 0.7261 GB, free: 111.6 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003572/1.177, allocations: 2.167 MB / 0.7282 GB, free: 111.6 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001375/1.179, allocations: 1.32 MB / 0.7295 GB, free: 110.5 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.293e-05/1.179, allocations: 57.28 kB / 0.7296 GB, free: 110.5 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=246): time 8.035e-06/1.179, allocations: 3.875 kB / 0.7296 GB, free: 110.5 MB / 0.4948 GB Notification: Performance of matching and sorting (n=258): time 0.02535/1.204, allocations: 10.48 MB / 0.7398 GB, free: 109.5 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.307e-05/1.204, allocations: 74.92 kB / 0.7399 GB, free: 109.4 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003216/1.207, allocations: 2.421 MB / 0.7423 GB, free: 109.1 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002951/1.208, allocations: 25.7 kB / 0.7423 GB, free: 109.1 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001369/1.209, allocations: 3.055 MB / 0.7453 GB, free: 107.5 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007575/1.21, allocations: 0.9251 MB / 0.7462 GB, free: 106.9 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002053/1.21, allocations: 3.938 kB / 0.7462 GB, free: 106.9 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002535/1.21, allocations: 0.5697 MB / 0.7467 GB, free: 106.6 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002419/1.213, allocations: 2.201 MB / 0.7489 GB, free: 106.6 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003923/1.217, allocations: 5.59 MB / 0.7543 GB, free: 102.2 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00399/1.221, allocations: 3.544 MB / 0.7578 GB, free: 102.2 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.38e-05/1.221, allocations: 32.84 kB / 0.7578 GB, free: 102.2 MB / 0.4948 GB Notification: Performance of matching and sorting (n=813) (initialization): time 0.0125/1.233, allocations: 7.901 MB / 0.7655 GB, free: 101.1 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 6.72e-05/1.233, allocations: 53.88 kB / 0.7656 GB, free: 101.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000106/1.233, allocations: 122.2 kB / 0.7657 GB, free: 101.1 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003359/1.237, allocations: 1.034 MB / 0.7667 GB, free: 101 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004245/1.241, allocations: 1.403 MB / 0.7681 GB, free: 100.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002043/1.243, allocations: 2.402 MB / 0.7704 GB, free: 99.38 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003974/1.247, allocations: 212.7 kB / 0.7706 GB, free: 99.38 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006052/1.248, allocations: 359.3 kB / 0.771 GB, free: 99.32 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 548 * Number of states: 0 () * Number of discrete variables: 24 (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.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 (760): * Single equations (assignments): 751 * 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.0009209/1.249, allocations: 409.3 kB / 0.7714 GB, free: 98.98 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006877/1.255, allocations: 4.189 MB / 0.7755 GB, free: 97.71 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005199/1.256, allocations: 282.2 kB / 0.7757 GB, free: 97.55 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008464/1.264, allocations: 4.725 MB / 0.7803 GB, free: 96.05 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.606e-05/1.265, allocations: 49.48 kB / 0.7804 GB, free: 96.04 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.496e-05/1.265, allocations: 3.938 kB / 0.7804 GB, free: 96.04 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.783e-05/1.265, allocations: 14.47 kB / 0.7804 GB, free: 96.04 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02229/1.287, allocations: 10.29 MB / 0.7905 GB, free: 92.55 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.711e-05/1.287, allocations: 7.25 kB / 0.7905 GB, free: 92.55 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001762/1.289, allocations: 416.2 kB / 0.7909 GB, free: 92.52 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002761/1.292, allocations: 0.5917 MB / 0.7914 GB, free: 92.43 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002699/1.292, allocations: 30.16 kB / 0.7915 GB, free: 92.43 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001809/1.294, allocations: 2.018 MB / 0.7934 GB, free: 91.03 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.004e-05/1.294, allocations: 15.47 kB / 0.7934 GB, free: 91.02 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009566/1.303, allocations: 7.599 MB / 0.8009 GB, free: 83.81 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000822/1.304, allocations: 336.7 kB / 0.8012 GB, free: 83.47 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006744/1.305, allocations: 15.14 kB / 0.8012 GB, free: 83.46 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001532/1.306, allocations: 93.53 kB / 0.8013 GB, free: 83.41 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000277/1.307, allocations: 162.5 kB / 0.8014 GB, free: 83.3 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001737/1.307, allocations: 79.03 kB / 0.8015 GB, free: 83.23 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003292/1.31, allocations: 1.584 MB / 0.8031 GB, free: 81.85 MB / 0.4948 GB Notification: Performance of sort global known variables: time 5.61e-07/1.31, allocations: 0 / 0.8031 GB, free: 81.85 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.007306/1.318, allocations: 0.8756 MB / 0.8039 GB, free: 80.99 MB / 0.4948 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 (209): * Single equations (assignments): 200 * 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.0119/1.329, allocations: 10.64 MB / 0.8143 GB, free: 70.85 MB / 0.4948 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Mechanics/MultiBody/Joints.mo:1916:5-1918:161: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 3.2.3+maint.om/Mechanics/MultiBody/Joints.mo:1913:5-1915:161: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.008842/1.338, allocations: 5.747 MB / 0.8199 GB, free: 65.67 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.136e-05/1.338, allocations: 0 / 0.8199 GB, free: 65.67 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003586/1.342, allocations: 2.312 MB / 0.8222 GB, free: 63.55 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002467/1.344, allocations: 291.3 kB / 0.8225 GB, free: 63.31 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02419/1.369, allocations: 10.58 MB / 0.8328 GB, free: 54.01 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005208/1.374, allocations: 3.615 MB / 0.8363 GB, free: 51.23 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.005462/1.379, allocations: 2.179 MB / 0.8385 GB, free: 49.86 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004052/1.384, allocations: 1.957 MB / 0.8404 GB, free: 48.05 MB / 0.4948 GB Notification: Performance of SimCode: time 2.004e-06/1.384, allocations: 0 / 0.8404 GB, free: 48.05 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3665/1.75, allocations: 67.74 MB / 0.9065 GB, free: 108.6 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001383/1.75, allocations: 150.6 kB / 0.9067 GB, free: 108.4 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.684/5.434, allocations: 3.797 kB / 0.9067 GB, free: 108.4 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2_res.mat does not exist to compare? outputFormat=mat