Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.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.FreeMotionScalarInit3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3",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.001464/0.001464, allocations: 174.4 kB / 8.74 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.497/1.497, allocations: 221.5 MB / 230.7 MB, free: 7.574 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.0009764/0.0009765, allocations: 89.86 kB / 281.6 MB, free: 5.328 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.2051/0.2051, allocations: 44.15 MB / 376.5 MB, free: 3.055 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.888e-05/1.898e-05, allocations: 4.219 kB / 444.7 MB, free: 15.15 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1403/0.1403, allocations: 61.92 MB / 0.4948 GB, free: 1.168 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4572/0.5976, allocations: 109.6 MB / 0.6018 GB, free: 2.703 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002165/0.5979, allocations: 79.91 kB / 0.6019 GB, free: 2.625 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2426/0.8405, allocations: 96.09 MB / 0.6957 GB, free: 1.805 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.746e-06/0.8406, allocations: 0 / 0.6957 GB, free: 1.805 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.000192/0.8408, allocations: 92 kB / 0.6958 GB, free: 1.715 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: 1840 * Number of variables: 1840 Notification: Performance of Generate backend data structure: time 0.01914/0.8599, allocations: 4.592 MB / 0.7003 GB, free: 13.05 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.514e-05/0.86, allocations: 11.98 kB / 0.7003 GB, free: 13.04 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01685/0.8769, allocations: 3.605 MB / 0.7039 GB, free: 9.426 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01468/0.8916, allocations: 4.729 MB / 0.7085 GB, free: 4.645 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003161/0.892, allocations: 160 kB / 0.7086 GB, free: 4.488 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003126/0.8951, allocations: 287.9 kB / 0.7089 GB, free: 4.207 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.3637/1.259, allocations: 8.27 MB / 0.717 GB, free: 125.6 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02928/1.288, allocations: 10.95 MB / 0.7277 GB, free: 124.1 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002738/1.288, allocations: 30.47 kB / 0.7277 GB, free: 124.1 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001597/1.29, allocations: 15.56 kB / 0.7277 GB, free: 124.1 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002321/1.292, allocations: 1.297 MB / 0.729 GB, free: 124.1 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05572/1.348, allocations: 39 MB / 0.7671 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006273/1.354, allocations: 4.242 MB / 0.7712 GB, free: 103.3 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003619/1.358, allocations: 2.277 MB / 0.7734 GB, free: 102.4 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001371/1.36, allocations: 1.645 MB / 0.775 GB, free: 100.9 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.41e-05/1.36, allocations: 58.34 kB / 0.7751 GB, free: 100.8 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=260): time 4.819e-06/1.36, allocations: 0 / 0.7751 GB, free: 100.8 MB / 0.5105 GB Notification: Performance of matching and sorting (n=269): time 0.02512/1.385, allocations: 14.18 MB / 0.7889 GB, free: 95.92 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.049e-05/1.385, allocations: 104 kB / 0.789 GB, free: 95.82 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003904/1.389, allocations: 2.541 MB / 0.7915 GB, free: 94.87 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0004956/1.389, allocations: 25.7 kB / 0.7915 GB, free: 94.84 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001635/1.391, allocations: 3.24 MB / 0.7947 GB, free: 92.45 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001024/1.392, allocations: 0.9681 MB / 0.7957 GB, free: 91.73 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002127/1.392, allocations: 3.781 kB / 0.7957 GB, free: 91.73 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002753/1.392, allocations: 0.5824 MB / 0.7962 GB, free: 91.3 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002648/1.395, allocations: 2.304 MB / 0.7985 GB, free: 90.53 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004004/1.399, allocations: 5.808 MB / 0.8041 GB, free: 85.03 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004231/1.403, allocations: 3.689 MB / 0.8077 GB, free: 83.91 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.671e-05/1.403, allocations: 38.22 kB / 0.8078 GB, free: 83.91 MB / 0.5105 GB Notification: Performance of matching and sorting (n=846) (initialization): time 0.0131/1.417, allocations: 8.288 MB / 0.8159 GB, free: 79.31 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 8.156e-05/1.417, allocations: 67.64 kB / 0.8159 GB, free: 79.25 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001259/1.417, allocations: 124 kB / 0.8161 GB, free: 79.13 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003099/1.42, allocations: 1.146 MB / 0.8172 GB, free: 78.33 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004788/1.425, allocations: 1.457 MB / 0.8186 GB, free: 77.07 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004687/1.429, allocations: 4.442 MB / 0.8229 GB, free: 73.07 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004769/1.434, allocations: 217.6 kB / 0.8231 GB, free: 72.91 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001534/1.436, allocations: 376.4 kB / 0.8235 GB, free: 72.55 MB / 0.5105 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: 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[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[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 (785): * Single equations (assignments): 777 * 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: 1 {(3,100.0%) 3} * Non-linear torn systems: 1 {4 5} Notification: Performance of prepare postOptimizeDAE: time 0.001866/1.438, allocations: 430.8 kB / 0.8239 GB, free: 72.12 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00796/1.446, allocations: 4.138 MB / 0.828 GB, free: 68.53 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007991/1.447, allocations: 299.9 kB / 0.8282 GB, free: 68.23 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008311/1.455, allocations: 4.698 MB / 0.8328 GB, free: 64.31 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.136e-05/1.455, allocations: 48.64 kB / 0.8329 GB, free: 64.27 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.153e-05/1.455, allocations: 6.625 kB / 0.8329 GB, free: 64.26 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-05/1.455, allocations: 10.22 kB / 0.8329 GB, free: 64.26 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01701/1.472, allocations: 10.66 MB / 0.8433 GB, free: 55.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.546e-05/1.472, allocations: 8 kB / 0.8433 GB, free: 55.26 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001725/1.474, allocations: 438 kB / 0.8437 GB, free: 54.91 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001814/1.476, allocations: 0.6553 MB / 0.8444 GB, free: 54.48 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000222/1.476, allocations: 27.05 kB / 0.8444 GB, free: 54.45 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002141/1.478, allocations: 2.339 MB / 0.8467 GB, free: 52.29 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.254e-05/1.478, allocations: 22.75 kB / 0.8467 GB, free: 52.27 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009145/1.487, allocations: 7.991 MB / 0.8545 GB, free: 44.6 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00091/1.488, allocations: 339.7 kB / 0.8548 GB, free: 44.25 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004322/1.489, allocations: 23.56 kB / 0.8549 GB, free: 44.23 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001441/1.49, allocations: 116.3 kB / 0.855 GB, free: 44.16 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003634/1.49, allocations: 163.1 kB / 0.8551 GB, free: 44.05 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001784/1.491, allocations: 75.94 kB / 0.8552 GB, free: 43.98 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002844/1.493, allocations: 1.664 MB / 0.8568 GB, free: 42.54 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.1e-07/1.493, allocations: 0 / 0.8568 GB, free: 42.54 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.006318/1.5, allocations: 0.9354 MB / 0.8577 GB, free: 41.61 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * 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,body.w_a[1],body.w_a[2],body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (218): * Single equations (assignments): 209 * 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.009781/1.51, allocations: 11.07 MB / 0.8685 GB, free: 31.06 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.009189/1.519, allocations: 5.704 MB / 0.8741 GB, free: 25.91 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.467e-05/1.519, allocations: 5 kB / 0.8741 GB, free: 25.91 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00395/1.523, allocations: 2.491 MB / 0.8765 GB, free: 23.66 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002338/1.525, allocations: 341.8 kB / 0.8769 GB, free: 23.39 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02408/1.549, allocations: 11.12 MB / 0.8877 GB, free: 12.56 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003962/1.553, allocations: 3.778 MB / 0.8914 GB, free: 8.773 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.004932/1.558, allocations: 2.243 MB / 0.8936 GB, free: 6.543 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002678/1.561, allocations: 2.108 MB / 0.8957 GB, free: 4.434 MB / 0.5105 GB Notification: Performance of SimCode: time 9.52e-07/1.561, allocations: 0 / 0.8957 GB, free: 4.434 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4531/2.014, allocations: 72.91 MB / 0.9669 GB, free: 125.2 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001818/2.014, allocations: 147.1 kB / 0.967 GB, free: 125 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.846/5.86, allocations: 4 kB / 0.967 GB, free: 125 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3_res.mat does not exist to compare? outputFormat=mat