Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.InitializationConversion.Bodies.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.InitializationConversion.Bodies,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_InitializationConversion_Bodies",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.InitializationConversion.Bodies,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_InitializationConversion_Bodies",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001277/0.001277, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.373/1.373, allocations: 225.6 MB / 234.8 MB, free: 3.238 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001031/0.001031, allocations: 98.56 kB / 286.7 MB, free: 5.25 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2173/0.2173, allocations: 45.15 MB / 383.8 MB, free: 292 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 2.23e-05/2.242e-05, allocations: 4 kB / 453.3 MB, free: 75.75 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1265/0.1266, allocations: 63.25 MB / 0.5045 GB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4947/0.6214, allocations: 103.7 MB / 0.6057 GB, free: 14.75 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002323/0.6216, allocations: 78.52 kB / 0.6058 GB, free: 14.71 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2835/0.9052, allocations: 108.7 MB / 0.712 GB, free: 10.25 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.974e-06/0.9052, allocations: 0 / 0.712 GB, free: 10.25 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0004034/0.9057, allocations: 87.98 kB / 0.7121 GB, free: 10.16 MB / 0.4948 GB 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.03686/0.9425, allocations: 6.763 MB / 0.7187 GB, free: 3.328 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.682e-05/0.9426, allocations: 8.031 kB / 0.7187 GB, free: 3.32 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03262/0.9752, allocations: 7.587 MB / 0.7261 GB, free: 11.71 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05378/1.029, allocations: 20.25 MB / 0.7459 GB, free: 7.355 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003501/1.029, allocations: 132 kB / 0.746 GB, free: 7.227 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002859/1.032, allocations: 271.7 kB / 0.7463 GB, free: 6.961 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01469/1.047, allocations: 6.205 MB / 0.7523 GB, free: 0.75 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3605/1.408, allocations: 9.542 MB / 0.7616 GB, free: 124.4 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006837/1.408, allocations: 83.08 kB / 0.7617 GB, free: 124.4 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002032/1.41, allocations: 33.69 kB / 0.7618 GB, free: 124.4 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002119/1.413, allocations: 1.051 MB / 0.7628 GB, free: 124.4 MB / 0.5261 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.05162/1.464, allocations: 49.31 MB / 0.8109 GB, free: 94.54 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003964/1.468, allocations: 3.189 MB / 0.814 GB, free: 93.79 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002128/1.47, allocations: 1.895 MB / 0.8159 GB, free: 93.73 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000133/1.47, allocations: 27.5 kB / 0.8159 GB, free: 93.73 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.578e-05/1.471, allocations: 64.12 kB / 0.816 GB, free: 93.68 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=188): time 4.769e-06/1.471, allocations: 2.906 kB / 0.816 GB, free: 93.68 MB / 0.5261 GB Notification: Performance of matching and sorting (n=216): time 0.03792/1.508, allocations: 18.56 MB / 0.8341 GB, free: 85.27 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.928e-05/1.509, allocations: 331.3 kB / 0.8344 GB, free: 84.9 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006826/1.515, allocations: 3.901 MB / 0.8382 GB, free: 83.5 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006578/1.516, allocations: 25.7 kB / 0.8383 GB, free: 83.47 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.002078/1.518, allocations: 3.541 MB / 0.8417 GB, free: 80.88 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001335/1.52, allocations: 0.8919 MB / 0.8426 GB, free: 80.23 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004746/1.52, allocations: 3.125 kB / 0.8426 GB, free: 80.23 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003529/1.52, allocations: 0.6175 MB / 0.8432 GB, free: 79.79 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00341/1.524, allocations: 2.912 MB / 0.846 GB, free: 78.78 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005203/1.529, allocations: 7.343 MB / 0.8532 GB, free: 71.78 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006101/1.535, allocations: 4.513 MB / 0.8576 GB, free: 70.33 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001543/1.535, allocations: 47.22 kB / 0.8577 GB, free: 70.33 MB / 0.5261 GB Notification: Performance of matching and sorting (n=973) (initialization): time 0.04582/1.581, allocations: 14.6 MB / 0.8719 GB, free: 66.54 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001072/1.581, allocations: 72.91 kB / 0.872 GB, free: 66.54 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.03114/1.613, allocations: 8.692 MB / 0.8805 GB, free: 62.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03358/1.646, allocations: 6.538 MB / 0.8869 GB, free: 58.67 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004968/1.651, allocations: 1.733 MB / 0.8885 GB, free: 57.18 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01749/1.669, allocations: 15.18 MB / 0.9034 GB, free: 43.12 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008018/1.677, allocations: 0.6392 MB / 0.904 GB, free: 42.48 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001737/1.678, allocations: 471.9 kB / 0.9044 GB, free: 42.02 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 721 * 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 (897): * Single equations (assignments): 872 * 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.001517/1.68, allocations: 0.502 MB / 0.9049 GB, free: 41.52 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01473/1.695, allocations: 6.671 MB / 0.9115 GB, free: 34.79 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001495/1.696, allocations: 426.5 kB / 0.9119 GB, free: 34.37 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001977/1.698, allocations: 0.573 MB / 0.9124 GB, free: 33.79 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01287/1.711, allocations: 5.877 MB / 0.9182 GB, free: 27.86 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.979e-05/1.711, allocations: 11.47 kB / 0.9182 GB, free: 27.85 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.469e-05/1.711, allocations: 11.92 kB / 0.9182 GB, free: 27.84 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01699/1.728, allocations: 9.805 MB / 0.9278 GB, free: 17.95 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.835e-05/1.728, allocations: 4 kB / 0.9278 GB, free: 17.95 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002111/1.731, allocations: 438.9 kB / 0.9282 GB, free: 17.52 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01172/1.742, allocations: 3.537 MB / 0.9316 GB, free: 13.94 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006576/1.743, allocations: 67.86 kB / 0.9317 GB, free: 13.87 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01068/1.754, allocations: 13.4 MB / 0.9448 GB, free: 15.81 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003978/1.758, allocations: 5.614 MB / 0.9503 GB, free: 9.707 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3197/2.077, allocations: 10.44 MB / 0.9605 GB, free: 124.5 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00158/2.079, allocations: 0.4886 MB / 0.9609 GB, free: 124.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001239/2.08, allocations: 42 kB / 0.961 GB, free: 124.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004178/2.085, allocations: 306.1 kB / 0.9613 GB, free: 124.4 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009235/2.085, allocations: 186.8 kB / 0.9614 GB, free: 124.4 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002619/2.086, allocations: 70.34 kB / 0.9615 GB, free: 124.4 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.005806/2.092, allocations: 2.65 MB / 0.9641 GB, free: 124.2 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.71e-07/2.092, allocations: 0 / 0.9641 GB, free: 124.2 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01036/2.102, allocations: 1.547 MB / 0.9656 GB, free: 124.2 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 54 ($STATESET3.x[3],$STATESET3.x[2],$STATESET3.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],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.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],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.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],$STATESET0.x[3],$STATESET0.x[2],$STATESET0.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.02361/2.126, allocations: 11.78 MB / 0.9771 GB, free: 121.7 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01406/2.14, allocations: 8.783 MB / 0.9857 GB, free: 120.2 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 9.117e-06/2.14, allocations: 0 / 0.9857 GB, free: 120.2 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.007376/2.147, allocations: 4.546 MB / 0.9901 GB, free: 118.7 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003675/2.151, allocations: 0.5474 MB / 0.9907 GB, free: 118.7 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02521/2.176, allocations: 13.72 MB / 1.004 GB, free: 115.2 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004379/2.18, allocations: 3.778 MB / 1.008 GB, free: 114.4 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.006026/2.187, allocations: 2.299 MB / 1.01 GB, free: 114.2 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003568/2.19, allocations: 2.272 MB / 1.012 GB, free: 114.2 MB / 0.5417 GB Notification: Performance of SimCode: time 7.81e-07/2.19, allocations: 0 / 1.012 GB, free: 114.2 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1386/2.329, allocations: 110.2 MB / 1.12 GB, free: 39.73 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001373/2.329, allocations: 158.5 kB / 1.12 GB, free: 39.54 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.48/7.809, allocations: 0 / 1.12 GB, free: 39.54 MB / 0.5417 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.InitializationConversion.Bodies.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.InitializationConversion.Bodies.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.InitializationConversion.Bodies.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.InitializationConversion.Bodies.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.InitializationConversion.Bodies_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_InitializationConversion_Bodies_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_InitializationConversion_Bodies.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.InitializationConversion.Bodies.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.InitializationConversion.Bodies_res.mat does not exist to compare? outputFormat=mat