Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.FreeBodies.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.Parts.FreeBodies,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_FreeBodies",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.FreeBodies,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_FreeBodies",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.001444/0.001444, allocations: 176.5 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.455/1.455, 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.000855/0.000855, allocations: 95.09 kB / 292.1 MB, free: 10.93 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.3784/0.3784, allocations: 44.22 MB / 387.5 MB, free: 38.81 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000332/0.0003322, allocations: 8 kB / 460 MB, free: 1.441 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4023/0.4027, allocations: 61.9 MB / 0.5096 GB, free: 38.12 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.159/0.5618, allocations: 108.8 MB / 0.6158 GB, free: 2.336 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000464/0.5624, allocations: 79.94 kB / 0.6159 GB, free: 2.262 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6798/1.242, allocations: 147.9 MB / 0.7604 GB, free: 80.89 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.984e-06/1.242, allocations: 0 / 0.7604 GB, free: 80.89 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0007644/1.243, allocations: 162.2 kB / 0.7605 GB, free: 80.88 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: 2624 * Number of variables: 2624 Notification: Performance of Generate backend data structure: time 0.04674/1.29, allocations: 9.455 MB / 0.7698 GB, free: 75.19 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.058e-05/1.29, allocations: 7.531 kB / 0.7698 GB, free: 75.19 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007501/1.297, allocations: 1.357 MB / 0.7711 GB, free: 74.25 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03192/1.329, allocations: 7.764 MB / 0.7787 GB, free: 66.48 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03123/1.361, allocations: 10.47 MB / 0.7889 GB, free: 55.93 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008028/1.361, allocations: 0.5935 MB / 0.7895 GB, free: 55.33 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004575/1.366, allocations: 0.7924 MB / 0.7903 GB, free: 54.54 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04662/1.413, allocations: 18.34 MB / 0.8082 GB, free: 34.64 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007752/1.414, allocations: 107 kB / 0.8083 GB, free: 34.54 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004073/1.418, allocations: 371.8 kB / 0.8086 GB, free: 34.18 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002819/1.42, allocations: 1.687 MB / 0.8103 GB, free: 32.48 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03313/1.454, allocations: 14.94 MB / 0.8249 GB, free: 17.53 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4462/1.9, allocations: 81.13 MB / 0.9041 GB, free: 51.18 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0219/1.922, allocations: 7.593 MB / 0.9115 GB, free: 50.51 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03942/1.961, allocations: 17.03 MB / 0.9281 GB, free: 45.59 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001132/1.961, allocations: 66.8 kB / 0.9282 GB, free: 45.55 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=301): time 9.508e-06/1.961, allocations: 1.031 kB / 0.9282 GB, free: 45.55 MB / 0.5105 GB Notification: Performance of matching and sorting (n=329): time 0.09155/2.053, allocations: 28.83 MB / 0.9564 GB, free: 39.3 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004389/2.057, allocations: 6.321 MB / 0.9625 GB, free: 33.18 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01429/2.072, allocations: 5.824 MB / 0.9682 GB, free: 31.1 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009841/2.073, allocations: 78.44 kB / 0.9683 GB, free: 31.03 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.00441/2.077, allocations: 5.343 MB / 0.9735 GB, free: 26.92 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002166/2.079, allocations: 1.321 MB / 0.9748 GB, free: 25.96 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001685/2.081, allocations: 201.6 kB / 0.975 GB, free: 25.81 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001181/2.082, allocations: 0.7275 MB / 0.9757 GB, free: 25.32 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007471/2.09, allocations: 4.012 MB / 0.9796 GB, free: 24.01 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01131/2.101, allocations: 9.831 MB / 0.9892 GB, free: 14.9 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01107/2.112, allocations: 6.083 MB / 0.9952 GB, free: 12.74 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003894/2.113, allocations: 58.22 kB / 0.9952 GB, free: 12.74 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1316) (initialization): time 0.04152/2.154, allocations: 16.62 MB / 1.011 GB, free: 3.363 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003551/2.155, allocations: 95.95 kB / 1.012 GB, free: 3.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02767/2.182, allocations: 8.369 MB / 1.02 GB, free: 14.13 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01688/2.199, allocations: 3.913 MB / 1.024 GB, free: 11.51 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009365/2.209, allocations: 2.361 MB / 1.026 GB, free: 9.477 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01857/2.227, allocations: 13.99 MB / 1.039 GB, free: 12.31 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01197/2.239, allocations: 0.8792 MB / 1.04 GB, free: 11.66 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003149/2.243, allocations: 0.596 MB / 1.041 GB, free: 11.08 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 936 * Number of states: 0 () * Number of discrete variables: 78 (spring6.color[3],spring6.color[2],spring6.color[1],spring6.massColor[3],spring6.massColor[2],spring6.massColor[1],pointMass.sphereColor[3],pointMass.sphereColor[2],pointMass.sphereColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],spring5.color[3],spring5.color[2],spring5.color[1],spring5.massColor[3],spring5.massColor[2],spring5.massColor[1],spring4.color[3],spring4.color[2],spring4.color[1],spring4.massColor[3],spring4.massColor[2],spring4.massColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],spring3.color[3],spring3.color[2],spring3.color[1],spring3.massColor[3],spring3.massColor[2],spring3.massColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],bodyShape.color[3],bodyShape.color[2],bodyShape.color[1],bodyShape.body.sphereColor[3],bodyShape.body.sphereColor[2],bodyShape.body.sphereColor[1],bodyShape.frameTranslation.color[3],bodyShape.frameTranslation.color[2],bodyShape.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 (1240): * Single equations (assignments): 1215 * Array equations: 11 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 12 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 4 {4,4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01243/2.255, allocations: 3.477 MB / 1.044 GB, free: 8.027 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002775/2.258, allocations: 0.5976 MB / 1.045 GB, free: 7.426 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02108/2.279, allocations: 7.828 MB / 1.053 GB, free: 15.86 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01664/2.296, allocations: 6.967 MB / 1.059 GB, free: 8.789 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.987e-05/2.296, allocations: 8 kB / 1.059 GB, free: 8.781 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001024/2.296, allocations: 11.95 kB / 1.059 GB, free: 8.77 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05221/2.348, allocations: 19.45 MB / 1.078 GB, free: 5.148 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.702e-05/2.348, allocations: 4 kB / 1.078 GB, free: 5.145 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003725/2.352, allocations: 0.6591 MB / 1.079 GB, free: 4.484 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01017/2.362, allocations: 3.136 MB / 1.082 GB, free: 1.305 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008904/2.363, allocations: 103.9 kB / 1.082 GB, free: 1.203 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0157/2.379, allocations: 14.32 MB / 1.096 GB, free: 2.117 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.3239/2.703, allocations: 6.089 MB / 1.102 GB, free: 162.7 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02259/2.725, allocations: 12.79 MB / 1.115 GB, free: 161.1 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003116/2.728, allocations: 0.6472 MB / 1.115 GB, free: 161 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002842/2.731, allocations: 88.88 kB / 1.115 GB, free: 161 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00478/2.736, allocations: 382.7 kB / 1.116 GB, free: 161 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009034/2.737, allocations: 243.6 kB / 1.116 GB, free: 161 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002916/2.737, allocations: 106 kB / 1.116 GB, free: 161 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.007573/2.745, allocations: 4.071 MB / 1.12 GB, free: 160.8 MB / 0.5886 GB Notification: Performance of sort global known variables: time 4.61e-07/2.745, allocations: 2.688 kB / 1.12 GB, free: 160.8 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01147/2.756, allocations: 2.097 MB / 1.122 GB, free: 160.8 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 54 ($STATESET4.x[3],$STATESET4.x[2],$STATESET4.x[1],$STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],bodyShape.r_0[1],bodyShape.r_0[2],bodyShape.r_0[3],bodyShape.v_0[1],bodyShape.v_0[2],bodyShape.v_0[3],bodyShape.body.w_a[1],bodyShape.body.w_a[2],bodyShape.body.w_a[3],body.r_0[1],body.r_0[2],body.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3],bodyBox.r_0[1],bodyBox.r_0[2],bodyBox.r_0[3],bodyBox.v_0[1],bodyBox.v_0[2],bodyBox.v_0[3],bodyBox.body.w_a[1],bodyBox.body.w_a[2],bodyBox.body.w_a[3],bodyCylinder.r_0[1],bodyCylinder.r_0[2],bodyCylinder.r_0[3],bodyCylinder.v_0[1],bodyCylinder.v_0[2],bodyCylinder.v_0[3],bodyCylinder.body.w_a[1],bodyCylinder.body.w_a[2],bodyCylinder.body.w_a[3],pointMass.r_0[1],pointMass.r_0[2],pointMass.r_0[3],pointMass.v_0[1],pointMass.v_0[2],pointMass.v_0[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 (269): * Single equations (assignments): 252 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 12 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 4 {4,4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02602/2.783, allocations: 14.28 MB / 1.136 GB, free: 157.9 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.02211/2.805, allocations: 11.53 MB / 1.147 GB, free: 155.9 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.039e-05/2.805, allocations: 0 / 1.147 GB, free: 155.9 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.009847/2.815, allocations: 5.467 MB / 1.153 GB, free: 153.2 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00609/2.821, allocations: 0.861 MB / 1.153 GB, free: 152.9 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5094/3.33, allocations: 215.6 MB / 1.364 GB, free: 163.7 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02001/3.35, allocations: 5.529 MB / 1.369 GB, free: 162.9 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.01323/3.364, allocations: 3.038 MB / 1.372 GB, free: 162.8 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009964/3.374, allocations: 3.681 MB / 1.376 GB, free: 162.8 MB / 0.6042 GB Notification: Performance of SimCode: time 2.074e-06/3.374, allocations: 0 / 1.376 GB, free: 162.8 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2324/3.606, allocations: 150.5 MB / 1.523 GB, free: 47.26 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001461/3.606, allocations: 200.5 kB / 1.523 GB, free: 47.02 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.261/11.87, allocations: 4 kB / 1.523 GB, free: 47.02 MB / 0.6042 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.FreeBodies.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.FreeBodies.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.FreeBodies.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.FreeBodies.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.FreeBodies_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_FreeBodies_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_FreeBodies.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.FreeBodies.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.FreeBodies_res.mat does not exist to compare? outputFormat=mat