Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Frames.AngularVelocity.conf.json 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/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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Frames.AngularVelocity,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Frames_AngularVelocity",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Frames.AngularVelocity,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Frames_AngularVelocity",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001186/0.001186, allocations: 94.38 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001398/0.001398, allocations: 186 kB / 17.88 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.42/1.42, allocations: 223.2 MB / 241.8 MB, free: 14.67 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2427/0.2427, allocations: 44.23 MB / 337.1 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003468/0.000347, allocations: 11.98 kB / 409.6 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1456/0.146, allocations: 61.92 MB / 471.5 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Frames.AngularVelocity): time 0.04393/0.19, allocations: 42.58 MB / 0.5021 GB, free: 2.949 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3685/0.5585, allocations: 10.41 MB / 0.5122 GB, free: 10.52 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01163/0.5701, allocations: 214.5 kB / 0.5124 GB, free: 10.51 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009287/0.5794, allocations: 2.106 MB / 0.5145 GB, free: 10.51 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0254/0.6049, allocations: 6.148 MB / 0.5205 GB, free: 10.33 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004226/0.6091, allocations: 0.5858 MB / 0.5211 GB, free: 10.17 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00748/0.6166, allocations: 2.063 MB / 0.5231 GB, free: 9.816 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01082/0.6275, allocations: 4.569 MB / 0.5275 GB, free: 8.438 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002931/0.6305, allocations: 0.9793 MB / 0.5285 GB, free: 8.105 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002078/0.6326, allocations: 1.248 MB / 0.5297 GB, free: 7.637 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000534/0.6332, allocations: 136.7 kB / 0.5299 GB, free: 7.637 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002328/0.6355, allocations: 0.884 MB / 0.5307 GB, free: 7.414 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001613/0.6371, allocations: 1.524 MB / 0.5322 GB, free: 6.941 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008826/0.638, allocations: 0.8216 MB / 0.533 GB, free: 6.746 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005322/0.6433, allocations: 5.354 MB / 0.5382 GB, free: 3.855 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.6434, allocations: 4 kB / 0.5382 GB, free: 3.852 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.316e-06/0.6434, allocations: 2.5 kB / 0.5382 GB, free: 3.852 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002258/0.6436, allocations: 0 / 0.5382 GB, free: 3.852 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1504 * Number of variables: 1504 Notification: Performance of Generate backend data structure: time 0.008762/0.6524, allocations: 3.884 MB / 0.542 GB, free: 1.457 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/0.6524, allocations: 9.25 kB / 0.542 GB, free: 1.457 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001348/0.6538, allocations: 0.7158 MB / 0.5427 GB, free: 1.246 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007574/0.6614, allocations: 2.262 MB / 0.545 GB, free: 228 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006501/0.6679, allocations: 2.24 MB / 0.5471 GB, free: 14.86 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000266/0.6682, allocations: 242.7 kB / 0.5474 GB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001421/0.6696, allocations: 408.2 kB / 0.5478 GB, free: 14.46 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01977/0.6894, allocations: 9.995 MB / 0.5575 GB, free: 6.52 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000127/0.6896, allocations: 31.75 kB / 0.5576 GB, free: 6.488 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004702/0.6901, allocations: 161.1 kB / 0.5577 GB, free: 6.438 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002793/0.6929, allocations: 1.826 MB / 0.5595 GB, free: 4.918 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0179/0.7108, allocations: 8.293 MB / 0.5676 GB, free: 13.73 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05481/0.7656, allocations: 38.9 MB / 0.6056 GB, free: 5.883 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009674/0.7754, allocations: 3.69 MB / 0.6092 GB, free: 2.051 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01366/0.7891, allocations: 7.883 MB / 0.6169 GB, free: 9.797 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.712e-05/0.7892, allocations: 51.56 kB / 0.6169 GB, free: 9.738 MB / 462.1 MB Notification: Performance of pre-optimization done (n=141): time 6.532e-06/0.7892, allocations: 0 / 0.6169 GB, free: 9.738 MB / 462.1 MB Notification: Performance of matching and sorting (n=148): time 0.04114/0.8303, allocations: 12.63 MB / 0.6293 GB, free: 12.9 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001605/0.832, allocations: 1.632 MB / 0.6308 GB, free: 11.09 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006061/0.838, allocations: 3.944 MB / 0.6347 GB, free: 7.168 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000443/0.8385, allocations: 48.2 kB / 0.6347 GB, free: 7.117 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003398/0.8419, allocations: 3.049 MB / 0.6377 GB, free: 4.082 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001366/0.8433, allocations: 0.599 MB / 0.6383 GB, free: 3.488 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004054/0.8437, allocations: 118.7 kB / 0.6384 GB, free: 3.375 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0004603/0.8442, allocations: 0.5458 MB / 0.639 GB, free: 2.82 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003859/0.8481, allocations: 2.045 MB / 0.641 GB, free: 0.7695 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007047/0.8551, allocations: 5.644 MB / 0.6465 GB, free: 9.301 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005974/0.8611, allocations: 3.31 MB / 0.6497 GB, free: 5.988 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.833e-05/0.8612, allocations: 40 kB / 0.6497 GB, free: 5.949 MB / 494.1 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.02379/0.885, allocations: 9.16 MB / 0.6587 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001021/0.8852, allocations: 60.19 kB / 0.6587 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01079/0.896, allocations: 3.611 MB / 0.6623 GB, free: 9.094 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01052/0.9065, allocations: 2.238 MB / 0.6645 GB, free: 6.84 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004872/0.9115, allocations: 1.314 MB / 0.6657 GB, free: 5.523 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01055/0.922, allocations: 7.27 MB / 0.6728 GB, free: 13.98 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005532/0.9276, allocations: 396.2 kB / 0.6732 GB, free: 13.59 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001359/0.929, allocations: 363.3 kB / 0.6736 GB, free: 13.24 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 588 * Number of states: 0 () * Number of discrete variables: 41 (FrameTorque1.arrow.arrowLine.twoHeadedArrow,FrameTorque1.arrow.headAtOrigin,FrameTorque1.color[3],FrameTorque1.color[2],FrameTorque1.color[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (712): * Single equations (assignments): 703 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * 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.004717/0.9337, allocations: 2.029 MB / 0.6755 GB, free: 11.2 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008015/0.9345, allocations: 323.8 kB / 0.6758 GB, free: 10.88 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00619/0.9407, allocations: 2.94 MB / 0.6787 GB, free: 7.918 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00521/0.946, allocations: 2.476 MB / 0.6811 GB, free: 5.422 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.873e-05/0.946, allocations: 4 kB / 0.6811 GB, free: 5.418 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.171e-05/0.9461, allocations: 7.969 kB / 0.6811 GB, free: 5.41 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01784/0.9639, allocations: 8.563 MB / 0.6895 GB, free: 12.78 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.85e-05/0.964, allocations: 0 / 0.6895 GB, free: 12.78 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001233/0.9652, allocations: 247.6 kB / 0.6897 GB, free: 12.54 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003105/0.9683, allocations: 1.037 MB / 0.6908 GB, free: 11.49 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002428/0.9686, allocations: 35.98 kB / 0.6908 GB, free: 11.45 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005999/0.9746, allocations: 5.112 MB / 0.6958 GB, free: 6.078 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001107/0.9758, allocations: 1.494 MB / 0.6972 GB, free: 4.441 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3296/1.305, allocations: 5.321 MB / 0.7024 GB, free: 182.5 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001663/1.307, allocations: 398.5 kB / 0.7028 GB, free: 182.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00064/1.308, allocations: 32.2 kB / 0.7029 GB, free: 182.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001573/1.309, allocations: 137 kB / 0.703 GB, free: 182.4 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003317/1.31, allocations: 93.64 kB / 0.7031 GB, free: 182.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001404/1.31, allocations: 46.5 kB / 0.7031 GB, free: 182.4 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005547/1.315, allocations: 2.461 MB / 0.7055 GB, free: 182.3 MB / 0.5294 GB Notification: Performance of sort global known variables: time 5.61e-07/1.315, allocations: 1.688 kB / 0.7055 GB, free: 182.3 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007301/1.323, allocations: 1.06 MB / 0.7066 GB, free: 182.3 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.v_0[1],body.v_0[2],body.v_0[3],body.body.frame_a.r_0[1],body.body.frame_a.r_0[2],body.body.frame_a.r_0[3],body.body.w_a[1],body.body.w_a[2],body.body.w_a[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 (114): * Single equations (assignments): 107 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * 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.01033/1.333, allocations: 6.315 MB / 0.7127 GB, free: 179.8 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01351/1.347, allocations: 5.487 MB / 0.7181 GB, free: 177.8 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.708e-06/1.347, allocations: 0 / 0.7181 GB, free: 177.8 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004993/1.352, allocations: 2.138 MB / 0.7202 GB, free: 176.9 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003672/1.355, allocations: 409.5 kB / 0.7206 GB, free: 176.8 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08981/1.445, allocations: 123 MB / 0.8407 GB, free: 63.48 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00329/1.449, allocations: 3.252 MB / 0.8439 GB, free: 60.2 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004097/1.453, allocations: 1.814 MB / 0.8456 GB, free: 58.38 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002144/1.455, allocations: 1.788 MB / 0.8474 GB, free: 56.59 MB / 0.5294 GB Notification: Performance of SimCode: time 1.202e-06/1.455, allocations: 0 / 0.8474 GB, free: 56.59 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4475/1.902, allocations: 76.69 MB / 0.9223 GB, free: 178.5 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000204/1.903, allocations: 213.3 kB / 0.9225 GB, free: 178.3 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.89/5.793, allocations: 0 / 0.9225 GB, free: 178.3 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Frames.AngularVelocity.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Frames.AngularVelocity.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Frames.AngularVelocity.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Frames.AngularVelocity.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Frames.AngularVelocity_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Frames_AngularVelocity_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Frames_AngularVelocity.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Frames.AngularVelocity.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Frames.AngularVelocity_res.mat does not exist to compare? outputFormat=mat