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.001696/0.001696, allocations: 180.5 kB / 14.15 MB, free: 1.176 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.483/1.483, allocations: 221.3 MB / 236 MB, free: 2.988 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.0009255/0.0009255, allocations: 95.78 kB / 287 MB, free: 248 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2224/0.2224, allocations: 44.15 MB / 382 MB, free: 14.68 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.596e-05/3.605e-05, allocations: 8.203 kB / 451.9 MB, free: 9.332 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1396/0.1397, allocations: 61.92 MB / 0.5018 GB, free: 11.36 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5011/0.6408, allocations: 110.3 MB / 0.6095 GB, free: 10.88 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003151/0.6412, allocations: 79.95 kB / 0.6096 GB, free: 10.8 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2462/0.8875, allocations: 98.35 MB / 0.7057 GB, free: 7.762 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.234e-06/0.8875, allocations: 0 / 0.7057 GB, free: 7.762 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001876/0.8877, allocations: 88 kB / 0.7057 GB, free: 7.676 MB / 0.5105 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.01717/0.9049, allocations: 4.616 MB / 0.7102 GB, free: 2.992 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.242e-05/0.905, allocations: 8.031 kB / 0.7103 GB, free: 2.984 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00339/0.9084, allocations: 0.9389 MB / 0.7112 GB, free: 2.031 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4016/1.31, allocations: 3.595 MB / 0.7147 GB, free: 122.6 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0163/1.326, allocations: 4.725 MB / 0.7193 GB, free: 122.3 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007955/1.327, allocations: 373.3 kB / 0.7197 GB, free: 122.3 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003496/1.331, allocations: 499 kB / 0.7201 GB, free: 122.3 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03927/1.37, allocations: 11.98 MB / 0.7318 GB, free: 120.8 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005738/1.371, allocations: 37.38 kB / 0.7319 GB, free: 120.8 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002968/1.374, allocations: 223.4 kB / 0.7321 GB, free: 120.8 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002665/1.376, allocations: 1.295 MB / 0.7333 GB, free: 120.8 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02483/1.401, allocations: 11.2 MB / 0.7443 GB, free: 120.7 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06093/1.462, allocations: 41.46 MB / 0.7848 GB, free: 96.63 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009231/1.471, allocations: 4.846 MB / 0.7895 GB, free: 94.38 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002888/1.474, allocations: 2.355 MB / 0.7918 GB, free: 93.46 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00915/1.483, allocations: 6.834 MB / 0.7985 GB, free: 89.62 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.814e-05/1.484, allocations: 51.19 kB / 0.7985 GB, free: 89.57 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=229): time 4.218e-06/1.484, allocations: 0 / 0.7985 GB, free: 89.57 MB / 0.5105 GB Notification: Performance of matching and sorting (n=250): time 0.03704/1.521, allocations: 15.69 MB / 0.8138 GB, free: 80.41 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.97e-05/1.521, allocations: 73.41 kB / 0.8139 GB, free: 80.33 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00352/1.524, allocations: 2.779 MB / 0.8166 GB, free: 77.86 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0001424/1.524, allocations: 57.7 kB / 0.8167 GB, free: 77.8 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001277/1.526, allocations: 3.22 MB / 0.8198 GB, free: 74.93 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005978/1.526, allocations: 0.9369 MB / 0.8207 GB, free: 74.1 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002264/1.526, allocations: 123.7 kB / 0.8209 GB, free: 73.98 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002632/1.527, allocations: 0.5707 MB / 0.8214 GB, free: 73.48 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002675/1.529, allocations: 2.366 MB / 0.8237 GB, free: 71.34 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004009/1.533, allocations: 5.681 MB / 0.8293 GB, free: 64.44 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004134/1.538, allocations: 3.706 MB / 0.8329 GB, free: 61.31 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.076e-05/1.538, allocations: 39.95 kB / 0.8329 GB, free: 61.27 MB / 0.5105 GB Notification: Performance of matching and sorting (n=805) (initialization): time 0.01692/1.555, allocations: 9.785 MB / 0.8425 GB, free: 53.08 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 7.306e-05/1.555, allocations: 59.94 kB / 0.8425 GB, free: 53.02 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.501e-05/1.555, allocations: 116 kB / 0.8427 GB, free: 52.91 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008073/1.563, allocations: 2.327 MB / 0.8449 GB, free: 51.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004912/1.568, allocations: 1.331 MB / 0.8462 GB, free: 50.24 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0162/1.584, allocations: 10.6 MB / 0.8566 GB, free: 41.16 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005694/1.59, allocations: 327.7 kB / 0.8569 GB, free: 40.89 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009481/1.591, allocations: 355.9 kB / 0.8572 GB, free: 40.55 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 () * 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.0009241/1.592, allocations: 0.5403 MB / 0.8578 GB, free: 40.01 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004196/1.592, allocations: 304 kB / 0.858 GB, free: 39.71 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006732/1.599, allocations: 4.53 MB / 0.8625 GB, free: 35.89 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.204e-05/1.599, allocations: 47.38 kB / 0.8625 GB, free: 35.85 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.698e-06/1.599, allocations: 4 kB / 0.8625 GB, free: 35.85 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.954e-05/1.599, allocations: 9.656 kB / 0.8625 GB, free: 35.85 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01532/1.614, allocations: 10.73 MB / 0.873 GB, free: 25.05 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.224e-05/1.614, allocations: 11.09 kB / 0.873 GB, free: 25.04 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001621/1.616, allocations: 411.4 kB / 0.8734 GB, free: 24.64 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001812/1.618, allocations: 0.6929 MB / 0.8741 GB, free: 23.94 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001952/1.618, allocations: 59.8 kB / 0.8741 GB, free: 23.88 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00221/1.62, allocations: 2.403 MB / 0.8765 GB, free: 21.34 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.122e-06/1.62, allocations: 15.89 kB / 0.8765 GB, free: 21.33 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009086/1.629, allocations: 7.384 MB / 0.8837 GB, free: 13.66 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00118/1.631, allocations: 349.1 kB / 0.884 GB, free: 13.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005389/1.631, allocations: 55.69 kB / 0.8841 GB, free: 13.25 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001355/1.633, allocations: 131.8 kB / 0.8842 GB, free: 13.12 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002898/1.633, allocations: 141.7 kB / 0.8844 GB, free: 12.98 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001589/1.633, allocations: 71.97 kB / 0.8844 GB, free: 12.91 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002704/1.636, allocations: 1.865 MB / 0.8862 GB, free: 11.04 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.4e-07/1.636, allocations: 0 / 0.8862 GB, free: 11.04 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.004996/1.641, allocations: 1.122 MB / 0.8873 GB, free: 9.93 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 () * 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.009201/1.65, allocations: 9.183 MB / 0.8963 GB, free: 0.5469 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 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. [/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. Notification: Performance of simCode: created initialization part: time 0.01167/1.662, allocations: 5.983 MB / 0.9022 GB, free: 10.58 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.434e-05/1.662, allocations: 4 kB / 0.9022 GB, free: 10.58 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005131/1.667, allocations: 2.475 MB / 0.9046 GB, free: 8.047 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002679/1.67, allocations: 435.7 kB / 0.905 GB, free: 7.648 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3454/2.015, allocations: 10.89 MB / 0.9156 GB, free: 125.4 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006562/2.022, allocations: 3.816 MB / 0.9193 GB, free: 124.6 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.006347/2.028, allocations: 2.041 MB / 0.9213 GB, free: 124.6 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003747/2.032, allocations: 2.109 MB / 0.9234 GB, free: 124.5 MB / 0.5261 GB Notification: Performance of SimCode: time 1.543e-06/2.032, allocations: 4.844 kB / 0.9234 GB, free: 124.5 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.131/2.163, allocations: 81.25 MB / 1.003 GB, free: 100.1 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000184/2.163, allocations: 195.8 kB / 1.003 GB, free: 99.92 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.483/6.646, allocations: 0 / 1.003 GB, free: 99.92 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