Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.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.Joints.Spherical,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_Spherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Spherical,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_Spherical",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.002199/0.002202, allocations: 182.8 kB / 16.4 MB, free: 5.75 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.08/2.08, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.001117/0.001116, allocations: 100.3 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.6529/0.6529, allocations: 43.55 MB / 362.7 MB, free: 51.8 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004576/0.0004577, allocations: 12 kB / 431.5 MB, free: 5.848 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1371/0.1376, allocations: 58.85 MB / 490.3 MB, free: 10.91 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.3556/0.4933, allocations: 21.95 MB / 0.5003 GB, free: 33.99 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01823/0.5116, allocations: 6.148 MB / 0.5063 GB, free: 30.53 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006323/0.518, allocations: 104.2 kB / 0.5064 GB, free: 30.52 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004498/0.5225, allocations: 1.119 MB / 0.5074 GB, free: 30.19 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01457/0.5371, allocations: 3.462 MB / 0.5108 GB, free: 28.77 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002945/0.5401, allocations: 448 kB / 0.5113 GB, free: 28.61 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.005317/0.5455, allocations: 2.121 MB / 0.5133 GB, free: 27.76 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003869/0.5494, allocations: 2.138 MB / 0.5154 GB, free: 26.89 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001756/0.5512, allocations: 0.8513 MB / 0.5162 GB, free: 26.61 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002279/0.5536, allocations: 1.192 MB / 0.5174 GB, free: 26.24 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006674/0.5543, allocations: 123.5 kB / 0.5175 GB, free: 26.24 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002866/0.5571, allocations: 1.027 MB / 0.5185 GB, free: 26.02 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002005/0.5592, allocations: 1.375 MB / 0.5199 GB, free: 25.59 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001026/0.5602, allocations: 0.734 MB / 0.5206 GB, free: 25.05 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006876/0.5671, allocations: 4.715 MB / 0.5252 GB, free: 24.11 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.5672, allocations: 0 / 0.5252 GB, free: 24.11 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.118e-06/0.5672, allocations: 4.141 kB / 0.5252 GB, free: 24.11 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002236/0.5674, allocations: 0 / 0.5252 GB, free: 24.11 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1482 * Number of variables: 1482 Notification: Performance of Generate backend data structure: time 0.0103/0.5778, allocations: 3.481 MB / 0.5286 GB, free: 22.09 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.219e-05/0.5778, allocations: 9.531 kB / 0.5286 GB, free: 22.09 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002357/0.5802, allocations: 0.6832 MB / 0.5293 GB, free: 21.75 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03941/0.6196, allocations: 6.415 MB / 0.5355 GB, free: 20.07 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008834/0.6285, allocations: 2.517 MB / 0.538 GB, free: 18.62 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000312/0.6289, allocations: 180.2 kB / 0.5382 GB, free: 18.54 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002782/0.6317, allocations: 317.1 kB / 0.5385 GB, free: 18.41 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03154/0.6633, allocations: 10.79 MB / 0.549 GB, free: 12.45 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001628/0.6636, allocations: 25.78 kB / 0.549 GB, free: 12.43 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001642/0.6652, allocations: 118.2 kB / 0.5491 GB, free: 12.35 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00706/0.6723, allocations: 2.455 MB / 0.5515 GB, free: 11.08 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0309/0.7033, allocations: 10.23 MB / 0.5615 GB, free: 0.8359 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08883/0.7922, allocations: 35.82 MB / 0.5965 GB, free: 12.18 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02152/0.8137, allocations: 5.599 MB / 0.602 GB, free: 6.352 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00295/0.8168, allocations: 1.872 MB / 0.6038 GB, free: 4.148 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.614e-05/0.8169, allocations: 48.56 kB / 0.6039 GB, free: 4.094 MB / 426.7 MB Notification: Performance of pre-optimization done (n=224): time 7.323e-06/0.8169, allocations: 4.562 kB / 0.6039 GB, free: 4.09 MB / 426.7 MB Notification: Performance of matching and sorting (n=231): time 0.06913/0.886, allocations: 15.54 MB / 0.619 GB, free: 4.32 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002058/0.8882, allocations: 1.535 MB / 0.6205 GB, free: 2.629 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007627/0.8958, allocations: 3.026 MB / 0.6235 GB, free: 15.59 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008887/0.8968, allocations: 53.7 kB / 0.6236 GB, free: 15.53 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003368/0.9002, allocations: 2.684 MB / 0.6262 GB, free: 12.81 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001987/0.9023, allocations: 0.8479 MB / 0.627 GB, free: 11.95 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009169/0.9032, allocations: 108 kB / 0.6271 GB, free: 11.84 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000686/0.9039, allocations: 0.5539 MB / 0.6276 GB, free: 11.28 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007862/0.9118, allocations: 2.607 MB / 0.6302 GB, free: 8.668 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.011/0.9229, allocations: 5.592 MB / 0.6357 GB, free: 1.602 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0103/0.9332, allocations: 3.802 MB / 0.6394 GB, free: 13.8 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001164/0.9334, allocations: 32 kB / 0.6394 GB, free: 13.77 MB / 474.7 MB Notification: Performance of matching and sorting (n=725) (initialization): time 0.1246/1.058, allocations: 18.9 MB / 0.6579 GB, free: 10.82 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001165/1.058, allocations: 48 kB / 0.6579 GB, free: 10.77 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.08929/1.147, allocations: 12.01 MB / 0.6696 GB, free: 14.74 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.09675/1.244, allocations: 10.3 MB / 0.6797 GB, free: 4.414 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009009/1.253, allocations: 1.302 MB / 0.681 GB, free: 3.109 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3984/1.652, allocations: 17.27 MB / 0.6978 GB, free: 147.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006932/1.659, allocations: 439.2 kB / 0.6982 GB, free: 147.8 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00155/1.66, allocations: 316.6 kB / 0.6985 GB, free: 147.7 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 476 * Number of states: 0 () * Number of discrete variables: 24 (frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (653): * Single equations (assignments): 642 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.006238/1.667, allocations: 2.026 MB / 0.7005 GB, free: 147 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000816/1.668, allocations: 272.3 kB / 0.7008 GB, free: 147 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01493/1.682, allocations: 5.103 MB / 0.7058 GB, free: 145.4 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01409/1.697, allocations: 4.398 MB / 0.7101 GB, free: 144.1 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.841e-05/1.697, allocations: 3.156 kB / 0.7101 GB, free: 144.1 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.296e-05/1.697, allocations: 8.625 kB / 0.7101 GB, free: 144.1 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03997/1.737, allocations: 12.93 MB / 0.7227 GB, free: 139.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.112e-05/1.737, allocations: 6.875 kB / 0.7227 GB, free: 139.6 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004407/1.741, allocations: 460.4 kB / 0.7231 GB, free: 139.6 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005556/1.747, allocations: 0.9391 MB / 0.7241 GB, free: 139.5 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007844/1.748, allocations: 51.84 kB / 0.7241 GB, free: 139.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01094/1.759, allocations: 5.573 MB / 0.7295 GB, free: 136.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001495/1.76, allocations: 1.473 MB / 0.731 GB, free: 134.7 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.021/1.781, allocations: 8.363 MB / 0.7391 GB, free: 131.2 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001072/1.782, allocations: 342.8 kB / 0.7395 GB, free: 131 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001299/1.784, allocations: 50.42 kB / 0.7395 GB, free: 131 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003433/1.787, allocations: 199.5 kB / 0.7397 GB, free: 131 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001058/1.788, allocations: 144.8 kB / 0.7399 GB, free: 130.9 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002847/1.789, allocations: 63.28 kB / 0.7399 GB, free: 130.9 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.004373/1.793, allocations: 1.889 MB / 0.7418 GB, free: 130 MB / 0.4948 GB Notification: Performance of sort global known variables: time 6.81e-07/1.793, allocations: 0 / 0.7418 GB, free: 130 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.007495/1.801, allocations: 1.124 MB / 0.7429 GB, free: 129.9 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 6 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.w_a[1],body.w_a[2],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 (170): * Single equations (assignments): 161 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02131/1.822, allocations: 10.96 MB / 0.7536 GB, free: 119.4 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0175/1.839, allocations: 6.563 MB / 0.76 GB, free: 112.9 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.375e-05/1.84, allocations: 4.375 kB / 0.76 GB, free: 112.9 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006636/1.846, allocations: 2.526 MB / 0.7624 GB, free: 110.3 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00326/1.85, allocations: 336.1 kB / 0.7628 GB, free: 110 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1635/2.013, allocations: 112.2 MB / 0.8723 GB, free: 10.43 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008797/2.022, allocations: 3.252 MB / 0.8755 GB, free: 7.148 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005245/2.027, allocations: 1.725 MB / 0.8772 GB, free: 5.422 MB / 0.5105 GB Notification: Performance of SimCode: time 1.293e-06/2.027, allocations: 0 / 0.8772 GB, free: 5.422 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.066/7.093, allocations: 130.2 MB / 1.004 GB, free: 77.88 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_Spherical_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_Spherical.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical_res.mat does not exist to compare? outputFormat=mat