Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.InitializationConversion.Bodies.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.InitializationConversion.Bodies,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_InitializationConversion_Bodies",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.InitializationConversion.Bodies,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_InitializationConversion_Bodies",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001751/0.001752, allocations: 180.2 kB / 13.65 MB, free: 1.66 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.148/2.148, allocations: 205.2 MB / 219.4 MB, free: 14.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.002935/0.002935, allocations: 90.64 kB / 267.5 MB, free: 14.09 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.284/0.284, allocations: 43.49 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.293e-05/3.309e-05, allocations: 0 / 425.4 MB, free: 23.28 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1269/0.127, allocations: 58.85 MB / 484.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.55/0.6771, allocations: 101.5 MB / 0.572 GB, free: 2.305 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003078/0.6775, allocations: 78.58 kB / 0.5721 GB, free: 2.266 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4543/1.132, allocations: 102.9 MB / 0.6726 GB, free: 3.199 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.264e-06/1.132, allocations: 0 / 0.6726 GB, free: 3.199 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0004543/1.132, allocations: 88 kB / 0.6727 GB, free: 3.113 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1498 * Number of variables: 1498 Notification: Performance of Generate backend data structure: time 0.05554/1.188, allocations: 6.384 MB / 0.6789 GB, free: 12.66 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.713e-05/1.188, allocations: 8.031 kB / 0.6789 GB, free: 12.65 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003814/1.192, allocations: 0.7855 MB / 0.6797 GB, free: 11.86 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05829/1.25, allocations: 7.365 MB / 0.6869 GB, free: 4.473 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0738/1.324, allocations: 18.33 MB / 0.7048 GB, free: 2.043 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005192/1.325, allocations: 312.1 kB / 0.705 GB, free: 1.734 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002669/1.327, allocations: 443.5 kB / 0.7055 GB, free: 1.301 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3815/1.709, allocations: 10.51 MB / 0.7157 GB, free: 111.2 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005321/1.709, allocations: 82.89 kB / 0.7158 GB, free: 111.2 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002259/1.712, allocations: 205 kB / 0.716 GB, free: 111.2 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003258/1.715, allocations: 1.051 MB / 0.717 GB, free: 111.2 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03002/1.745, allocations: 9.082 MB / 0.7259 GB, free: 111.2 MB / 0.4948 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08064/1.826, allocations: 51.32 MB / 0.776 GB, free: 78.43 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01372/1.839, allocations: 3.831 MB / 0.7798 GB, free: 76.74 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004475/1.844, allocations: 1.946 MB / 0.7817 GB, free: 75.88 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003231/1.844, allocations: 30.33 kB / 0.7817 GB, free: 75.88 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.322e-05/1.844, allocations: 66.11 kB / 0.7818 GB, free: 75.82 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=188): time 6.272e-06/1.844, allocations: 0.75 kB / 0.7818 GB, free: 75.82 MB / 0.4948 GB Notification: Performance of matching and sorting (n=216): time 0.07952/1.924, allocations: 19.26 MB / 0.8006 GB, free: 67.34 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005035/1.929, allocations: 6.179 MB / 0.8066 GB, free: 61.18 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01183/1.941, allocations: 4.478 MB / 0.811 GB, free: 59.64 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0007834/1.942, allocations: 56.95 kB / 0.811 GB, free: 59.59 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.003534/1.945, allocations: 3.35 MB / 0.8143 GB, free: 57.12 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001773/1.947, allocations: 0.9141 MB / 0.8152 GB, free: 56.47 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001411/1.949, allocations: 141.7 kB / 0.8153 GB, free: 56.36 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0006738/1.949, allocations: 0.6132 MB / 0.8159 GB, free: 55.92 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00779/1.957, allocations: 3.01 MB / 0.8189 GB, free: 54.92 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01106/1.968, allocations: 7.35 MB / 0.826 GB, free: 48.04 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01066/1.979, allocations: 4.613 MB / 0.8305 GB, free: 46.45 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001957/1.979, allocations: 44 kB / 0.8306 GB, free: 46.41 MB / 0.4948 GB Notification: Performance of matching and sorting (n=949) (initialization): time 0.08039/2.06, allocations: 15.4 MB / 0.8456 GB, free: 34.59 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001167/2.06, allocations: 72.25 kB / 0.8457 GB, free: 34.52 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.06114/2.121, allocations: 8.908 MB / 0.8544 GB, free: 28.42 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06668/2.188, allocations: 6.731 MB / 0.861 GB, free: 23.74 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01014/2.198, allocations: 1.688 MB / 0.8626 GB, free: 22.05 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03453/2.233, allocations: 15.7 MB / 0.878 GB, free: 5.578 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01249/2.245, allocations: 0.7952 MB / 0.8787 GB, free: 4.789 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001977/2.247, allocations: 455.9 kB / 0.8792 GB, free: 4.344 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 697 * Number of states: 0 () * Number of discrete variables: 39 (body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],body1.frameTranslation.color[3],body1.frameTranslation.color[2],body1.frameTranslation.color[1],pointMass.sphereColor[3],pointMass.sphereColor[2],pointMass.sphereColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (873): * Single equations (assignments): 848 * 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 {(3,100.0%),(4,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.003325/2.251, allocations: 0.6531 MB / 0.8798 GB, free: 3.688 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001551/2.252, allocations: 454.2 kB / 0.8802 GB, free: 3.238 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002693/2.255, allocations: 0.6224 MB / 0.8808 GB, free: 2.617 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02864/2.284, allocations: 5.972 MB / 0.8867 GB, free: 12.59 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.627e-05/2.284, allocations: 8 kB / 0.8867 GB, free: 12.58 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.459e-05/2.284, allocations: 7.969 kB / 0.8867 GB, free: 12.57 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03829/2.322, allocations: 10.44 MB / 0.8969 GB, free: 2.043 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.065e-05/2.322, allocations: 7.984 kB / 0.8969 GB, free: 2.035 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004668/2.327, allocations: 443.3 kB / 0.8973 GB, free: 1.602 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.3942/2.721, allocations: 3.589 MB / 0.9008 GB, free: 114.1 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008389/2.722, allocations: 89.83 kB / 0.9009 GB, free: 114.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02287/2.745, allocations: 13.61 MB / 0.9142 GB, free: 106.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004491/2.749, allocations: 5.855 MB / 0.9199 GB, free: 101 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03658/2.786, allocations: 10.65 MB / 0.9303 GB, free: 99.56 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001954/2.788, allocations: 0.5342 MB / 0.9308 GB, free: 99.47 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001575/2.79, allocations: 68.19 kB / 0.9309 GB, free: 99.47 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006186/2.796, allocations: 342.8 kB / 0.9312 GB, free: 99.47 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001071/2.797, allocations: 184.4 kB / 0.9314 GB, free: 99.46 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000317/2.797, allocations: 74.75 kB / 0.9315 GB, free: 99.46 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.007642/2.805, allocations: 3.162 MB / 0.9346 GB, free: 99.26 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.012e-06/2.805, allocations: 0 / 0.9346 GB, free: 99.26 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01043/2.816, allocations: 1.63 MB / 0.9361 GB, free: 99.26 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 54 ($STATESET4.x[3],$STATESET4.x[2],$STATESET4.x[1],body3.v_0[1],body3.v_0[2],body3.v_0[3],body3.body.frame_a.r_0[1],body3.body.frame_a.r_0[2],body3.body.frame_a.r_0[3],body3.body.w_a[1],body3.body.w_a[2],body3.body.w_a[3],$STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.body.frame_a.r_0[1],body2.body.frame_a.r_0[2],body2.body.frame_a.r_0[3],body2.body.w_a[1],body2.body.w_a[2],body2.body.w_a[3],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.body.frame_a.r_0[1],body1.body.frame_a.r_0[2],body1.body.frame_a.r_0[3],body1.body.w_a[1],body1.body.w_a[2],body1.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],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.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]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (156): * Single equations (assignments): 139 * 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.03596/2.852, allocations: 11.98 MB / 0.9478 GB, free: 96.73 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02533/2.877, allocations: 9.17 MB / 0.9568 GB, free: 95.19 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.372e-05/2.877, allocations: 6 kB / 0.9568 GB, free: 95.19 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01477/2.892, allocations: 4.649 MB / 0.9613 GB, free: 93.65 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00626/2.898, allocations: 0.6237 MB / 0.962 GB, free: 93.56 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04402/2.942, allocations: 14.62 MB / 0.9762 GB, free: 87.64 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01029/2.953, allocations: 3.798 MB / 0.9799 GB, free: 86.29 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006436/2.959, allocations: 2.342 MB / 0.9822 GB, free: 84.45 MB / 0.5105 GB Notification: Performance of SimCode: time 2.374e-06/2.959, allocations: 0 / 0.9822 GB, free: 84.45 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.953/9.912, allocations: 369.1 MB / 1.343 GB, free: 140.1 MB / 0.5417 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.InitializationConversion.Bodies.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.InitializationConversion.Bodies.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.InitializationConversion.Bodies.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.InitializationConversion.Bodies.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.InitializationConversion.Bodies_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_InitializationConversion_Bodies_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_InitializationConversion_Bodies.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.InitializationConversion.Bodies.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.InitializationConversion.Bodies_res.mat does not exist to compare? outputFormat=mat