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.001278/0.001278, allocations: 177.1 kB / 17.06 MB, free: 5.098 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.414/1.414, allocations: 223.2 MB / 241 MB, free: 11.89 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.0009382/0.0009381, allocations: 98.45 kB / 292.1 MB, free: 10.91 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.378/0.378, allocations: 44.22 MB / 387.5 MB, free: 38.81 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003514/0.0003517, allocations: 12 kB / 460 MB, free: 1.422 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.368/0.3683, allocations: 61.89 MB / 0.5096 GB, free: 37.95 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1544/0.5228, allocations: 110.4 MB / 0.6175 GB, free: 0.6523 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002851/0.5231, allocations: 79.94 kB / 0.6175 GB, free: 0.5781 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.568/1.091, allocations: 98.26 MB / 0.7135 GB, free: 96.93 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.136e-06/1.091, allocations: 0 / 0.7135 GB, free: 96.93 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003475/1.092, allocations: 90.16 kB / 0.7136 GB, free: 96.92 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: 1849 * Number of variables: 1849 Notification: Performance of Generate backend data structure: time 0.02268/1.114, allocations: 4.758 MB / 0.7182 GB, free: 94.9 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.808e-05/1.114, allocations: 10.28 kB / 0.7182 GB, free: 94.9 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005232/1.12, allocations: 0.9329 MB / 0.7192 GB, free: 94.82 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01663/1.136, allocations: 3.599 MB / 0.7227 GB, free: 94.48 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01636/1.153, allocations: 4.764 MB / 0.7273 GB, free: 93.24 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005085/1.153, allocations: 374.3 kB / 0.7277 GB, free: 93.1 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003293/1.157, allocations: 494.6 kB / 0.7281 GB, free: 92.96 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03052/1.187, allocations: 12.08 MB / 0.7399 GB, free: 87.93 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000267/1.187, allocations: 42.31 kB / 0.74 GB, free: 87.9 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001775/1.189, allocations: 217.8 kB / 0.7402 GB, free: 87.78 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001592/1.191, allocations: 1.297 MB / 0.7415 GB, free: 87.54 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02399/1.215, allocations: 11.36 MB / 0.7525 GB, free: 84.03 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06435/1.279, allocations: 41.46 MB / 0.793 GB, free: 50.34 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009371/1.289, allocations: 4.863 MB / 0.7978 GB, free: 45.23 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01294/1.302, allocations: 6.834 MB / 0.8045 GB, free: 38.07 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.883e-05/1.302, allocations: 52.56 kB / 0.8045 GB, free: 38.01 MB / 490.7 MB Notification: Performance of pre-optimization done (n=229): time 5.911e-06/1.302, allocations: 0 / 0.8045 GB, free: 38.01 MB / 490.7 MB Notification: Performance of matching and sorting (n=250): time 0.04518/1.347, allocations: 18.85 MB / 0.8229 GB, free: 18.96 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.545e-05/1.347, allocations: 73.41 kB / 0.823 GB, free: 18.88 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005133/1.352, allocations: 2.802 MB / 0.8257 GB, free: 16.07 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005088/1.353, allocations: 57.7 kB / 0.8258 GB, free: 16 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001752/1.354, allocations: 3.227 MB / 0.8289 GB, free: 12.77 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001159/1.356, allocations: 0.9386 MB / 0.8298 GB, free: 11.84 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006819/1.356, allocations: 120 kB / 0.83 GB, free: 11.72 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0005107/1.357, allocations: 0.5625 MB / 0.8305 GB, free: 11.15 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003477/1.36, allocations: 2.417 MB / 0.8329 GB, free: 8.73 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005238/1.366, allocations: 5.722 MB / 0.8385 GB, free: 1.371 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006017/1.372, allocations: 3.719 MB / 0.8421 GB, free: 13.65 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001059/1.372, allocations: 32 kB / 0.8421 GB, free: 13.62 MB / 0.4948 GB Notification: Performance of matching and sorting (n=805) (initialization): time 0.02278/1.395, allocations: 9.887 MB / 0.8518 GB, free: 3.723 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001361/1.395, allocations: 56 kB / 0.8518 GB, free: 3.668 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001767/1.395, allocations: 116 kB / 0.8519 GB, free: 3.555 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008696/1.404, allocations: 2.324 MB / 0.8542 GB, free: 1.23 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004552/1.408, allocations: 1.326 MB / 0.8555 GB, free: 15.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01823/1.427, allocations: 11.07 MB / 0.8663 GB, free: 4.684 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004774/1.431, allocations: 334.9 kB / 0.8666 GB, free: 4.359 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001359/1.433, allocations: 344 kB / 0.867 GB, free: 4.023 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 528 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (720): * Single equations (assignments): 712 * 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 27} Notification: Performance of prepare postOptimizeDAE: time 0.006377/1.439, allocations: 2.392 MB / 0.8693 GB, free: 1.621 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009494/1.44, allocations: 308 kB / 0.8696 GB, free: 1.316 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3187/1.759, allocations: 4.551 MB / 0.874 GB, free: 116 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.993e-05/1.759, allocations: 50.89 kB / 0.8741 GB, free: 116 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.689e-06/1.759, allocations: 2.594 kB / 0.8741 GB, free: 116 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.058e-05/1.759, allocations: 10.03 kB / 0.8741 GB, free: 116 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02078/1.78, allocations: 10.76 MB / 0.8846 GB, free: 115.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-05/1.78, allocations: 5.031 kB / 0.8846 GB, free: 115.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001696/1.781, allocations: 414 kB / 0.885 GB, free: 115.4 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001839/1.783, allocations: 0.69 MB / 0.8857 GB, free: 115.3 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001994/1.784, allocations: 55.88 kB / 0.8857 GB, free: 115.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002314/1.786, allocations: 2.441 MB / 0.8881 GB, free: 114.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.102e-06/1.786, allocations: 8.031 kB / 0.8881 GB, free: 114.1 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008881/1.795, allocations: 7.436 MB / 0.8954 GB, free: 112.4 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001076/1.796, allocations: 348.4 kB / 0.8957 GB, free: 112.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003595/1.796, allocations: 46.22 kB / 0.8958 GB, free: 112.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001197/1.797, allocations: 141.4 kB / 0.8959 GB, free: 112.3 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002886/1.798, allocations: 145.7 kB / 0.896 GB, free: 112.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001732/1.798, allocations: 70.78 kB / 0.8961 GB, free: 112.2 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002852/1.801, allocations: 1.89 MB / 0.8979 GB, free: 111.6 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.31e-07/1.801, allocations: 0 / 0.8979 GB, free: 111.6 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.006362/1.807, allocations: 1.126 MB / 0.899 GB, free: 111.5 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (202): * Single equations (assignments): 193 * 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.01319/1.82, allocations: 9.233 MB / 0.9081 GB, free: 106.8 MB / 0.5105 GB [/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 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 freeMotionScalarInit.angle_1 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:77:3-79:159:writable] Warning: Variable freeMotionScalarInit.angle_2 has attribute stateSelect=StateSelect.always, but can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.009616/1.83, allocations: 6.06 MB / 0.914 GB, free: 105.1 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.056e-05/1.83, allocations: 0 / 0.914 GB, free: 105.1 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004074/1.834, allocations: 2.5 MB / 0.9164 GB, free: 104.1 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002689/1.837, allocations: 429.6 kB / 0.9168 GB, free: 104 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07905/1.916, allocations: 114.9 MB / 1.029 GB, free: 19.35 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00546/1.921, allocations: 3.812 MB / 1.033 GB, free: 17.96 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.004571/1.926, allocations: 2.054 MB / 1.035 GB, free: 17.83 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003161/1.929, allocations: 2.104 MB / 1.037 GB, free: 16.09 MB / 0.5261 GB Notification: Performance of SimCode: time 6.61e-07/1.929, allocations: 0 / 1.037 GB, free: 16.09 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4119/2.341, allocations: 80.37 MB / 1.115 GB, free: 140.1 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001641/2.341, allocations: 218.2 kB / 1.115 GB, free: 139.9 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.408/6.749, allocations: 3.75 kB / 1.115 GB, free: 139.9 MB / 0.5417 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