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.002298/0.002298, allocations: 177.9 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.095/2.095, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001112/0.001112, allocations: 84.69 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3874/0.3874, allocations: 43.49 MB / 353.6 MB, free: 2.27 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.177e-05/2.144e-05, allocations: 4.219 kB / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4082/0.4083, allocations: 58.85 MB / 477.2 MB, free: 5.152 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1917/0.6001, allocations: 100.8 MB / 0.5645 GB, free: 14.34 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003385/0.6005, allocations: 83.89 kB / 0.5645 GB, free: 14.25 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.7945/1.395, allocations: 101.3 MB / 0.6634 GB, free: 107.7 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.685e-06/1.395, allocations: 0 / 0.6634 GB, free: 107.7 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0004221/1.395, allocations: 84.75 kB / 0.6635 GB, free: 107.7 MB / 475.1 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.05404/1.45, allocations: 6.39 MB / 0.6698 GB, free: 105.7 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.512e-05/1.45, allocations: 11.41 kB / 0.6698 GB, free: 105.7 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05559/1.505, allocations: 7.361 MB / 0.677 GB, free: 105.4 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.07023/1.576, allocations: 18.32 MB / 0.6948 GB, free: 103.3 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002942/1.576, allocations: 133.1 kB / 0.695 GB, free: 103.3 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002578/1.578, allocations: 273.8 kB / 0.6952 GB, free: 103.3 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01623/1.595, allocations: 6.211 MB / 0.7013 GB, free: 101.2 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02426/1.619, allocations: 9.548 MB / 0.7106 GB, free: 94.86 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003633/1.619, allocations: 91.14 kB / 0.7107 GB, free: 94.77 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00174/1.621, allocations: 32.52 kB / 0.7107 GB, free: 94.74 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002526/1.624, allocations: 1.05 MB / 0.7118 GB, free: 93.69 MB / 475.1 MB 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.07369/1.698, allocations: 49.39 MB / 0.76 GB, free: 43.09 MB / 475.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006604/1.704, allocations: 3.184 MB / 0.7631 GB, free: 39.72 MB / 475.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004266/1.709, allocations: 1.902 MB / 0.765 GB, free: 37.8 MB / 475.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001955/1.709, allocations: 35.55 kB / 0.765 GB, free: 37.77 MB / 475.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.964e-05/1.709, allocations: 58.73 kB / 0.7651 GB, free: 37.7 MB / 475.1 MB Notification: Performance of pre-optimization done (n=188): time 9.719e-06/1.709, allocations: 0 / 0.7651 GB, free: 37.7 MB / 475.1 MB Notification: Performance of matching and sorting (n=216): time 0.08064/1.79, allocations: 18.85 MB / 0.7835 GB, free: 18.5 MB / 475.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000123/1.79, allocations: 328.4 kB / 0.7838 GB, free: 18.1 MB / 475.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009053/1.799, allocations: 3.989 MB / 0.7877 GB, free: 14.12 MB / 475.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007311/1.8, allocations: 29.98 kB / 0.7877 GB, free: 14.08 MB / 475.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003329/1.803, allocations: 3.435 MB / 0.7911 GB, free: 10.6 MB / 475.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001761/1.805, allocations: 0.8946 MB / 0.7919 GB, free: 9.695 MB / 475.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001128/1.806, allocations: 3.938 kB / 0.7919 GB, free: 9.691 MB / 475.1 MB Notification: Performance of setup shared object (initialization): time 0.0006097/1.806, allocations: 0.6288 MB / 0.7925 GB, free: 9.055 MB / 475.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01076/1.817, allocations: 2.916 MB / 0.7954 GB, free: 6.137 MB / 475.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01214/1.829, allocations: 7.342 MB / 0.8026 GB, free: 12.57 MB / 491.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0126/1.842, allocations: 4.498 MB / 0.807 GB, free: 8.074 MB / 491.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000187/1.842, allocations: 44 kB / 0.807 GB, free: 8.031 MB / 491.1 MB Notification: Performance of matching and sorting (n=973) (initialization): time 0.08675/1.929, allocations: 14.57 MB / 0.8212 GB, free: 9.406 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001481/1.929, allocations: 76 kB / 0.8213 GB, free: 9.332 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.06619/1.996, allocations: 8.813 MB / 0.8299 GB, free: 476 kB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.4734/2.469, allocations: 6.676 MB / 0.8364 GB, free: 114.6 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01089/2.48, allocations: 1.736 MB / 0.8381 GB, free: 114.6 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03501/2.515, allocations: 15.22 MB / 0.853 GB, free: 107.3 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01278/2.528, allocations: 0.6495 MB / 0.8536 GB, free: 107.3 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002394/2.53, allocations: 472.9 kB / 0.8541 GB, free: 107.3 MB / 0.4952 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.003067/2.533, allocations: 0.4965 MB / 0.8546 GB, free: 107.2 MB / 0.4952 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02958/2.563, allocations: 6.669 MB / 0.8611 GB, free: 107 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00177/2.565, allocations: 432.5 kB / 0.8615 GB, free: 107 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002196/2.567, allocations: 0.5759 MB / 0.862 GB, free: 106.9 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02609/2.593, allocations: 5.874 MB / 0.8678 GB, free: 106.8 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.105e-05/2.593, allocations: 10.41 kB / 0.8678 GB, free: 106.8 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.287e-05/2.593, allocations: 10.55 kB / 0.8678 GB, free: 106.8 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.032/2.625, allocations: 9.851 MB / 0.8774 GB, free: 104.1 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.429e-05/2.625, allocations: 3.875 kB / 0.8774 GB, free: 104.1 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00438/2.63, allocations: 451.7 kB / 0.8779 GB, free: 104.1 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02299/2.653, allocations: 3.532 MB / 0.8813 GB, free: 103.6 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007908/2.654, allocations: 64.53 kB / 0.8814 GB, free: 103.5 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0206/2.674, allocations: 13.38 MB / 0.8944 GB, free: 94.62 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003997/2.678, allocations: 5.614 MB / 0.8999 GB, free: 89.18 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03356/2.712, allocations: 10.46 MB / 0.9101 GB, free: 85.25 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002032/2.714, allocations: 0.5085 MB / 0.9106 GB, free: 84.88 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001805/2.716, allocations: 44.77 kB / 0.9107 GB, free: 84.87 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007019/2.723, allocations: 311.7 kB / 0.911 GB, free: 84.87 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001685/2.725, allocations: 186.2 kB / 0.9111 GB, free: 84.85 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005687/2.725, allocations: 75.44 kB / 0.9112 GB, free: 84.84 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.01152/2.737, allocations: 2.727 MB / 0.9139 GB, free: 83.85 MB / 0.4952 GB Notification: Performance of sort global known variables: time 1.423e-06/2.737, allocations: 0 / 0.9139 GB, free: 83.85 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.01682/2.754, allocations: 1.546 MB / 0.9154 GB, free: 83.85 MB / 0.4952 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 54 ($STATESET6506422667.x[3],$STATESET6506422667.x[2],$STATESET6506422667.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],$STATESET6506422666.x[3],$STATESET6506422666.x[2],$STATESET6506422666.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],$STATESET6506422665.x[3],$STATESET6506422665.x[2],$STATESET6506422665.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],$STATESET6506422664.x[3],$STATESET6506422664.x[2],$STATESET6506422664.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.04824/2.802, allocations: 11.79 MB / 0.9269 GB, free: 78.64 MB / 0.4952 GB Notification: Performance of simCode: created initialization part: time 0.02392/2.826, allocations: 8.811 MB / 0.9355 GB, free: 71.55 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 1.38e-05/2.826, allocations: 4 kB / 0.9355 GB, free: 71.55 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.01399/2.84, allocations: 4.555 MB / 0.9399 GB, free: 67.51 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006111/2.846, allocations: 0.5522 MB / 0.9405 GB, free: 67.05 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04076/2.887, allocations: 14.33 MB / 0.9545 GB, free: 53.68 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008313/2.896, allocations: 3.793 MB / 0.9582 GB, free: 49.88 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005671/2.901, allocations: 2.338 MB / 0.9605 GB, free: 47.54 MB / 0.4952 GB Notification: Performance of SimCode: time 1.773e-06/2.901, allocations: 0 / 0.9605 GB, free: 47.54 MB / 0.4952 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.965/9.866, allocations: 366.6 MB / 1.318 GB, free: 112.7 MB / 0.5421 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