Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.conf.json 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/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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit5",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit5",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001442/0.001443, allocations: 96.47 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001867/0.001866, allocations: 184.3 kB / 17.87 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.426/1.426, allocations: 223.2 MB / 241.8 MB, free: 14.65 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2313/0.2313, allocations: 44.23 MB / 337.1 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003518/0.0003518, allocations: 8 kB / 409.6 MB, free: 27.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1264/0.1268, allocations: 61.92 MB / 471.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5): time 0.03971/0.1666, allocations: 38.94 MB / 0.4985 GB, free: 6.586 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2819/0.4485, allocations: 9.587 MB / 0.5079 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009352/0.4579, allocations: 193.6 kB / 0.5081 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0086/0.4665, allocations: 1.998 MB / 0.51 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02361/0.4902, allocations: 5.805 MB / 0.5157 GB, free: 9.957 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003505/0.4937, allocations: 491.1 kB / 0.5162 GB, free: 9.953 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005315/0.499, allocations: 2.192 MB / 0.5183 GB, free: 9.938 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006364/0.5054, allocations: 4.112 MB / 0.5223 GB, free: 8.859 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001803/0.5072, allocations: 0.9455 MB / 0.5232 GB, free: 8.688 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002098/0.5093, allocations: 1.288 MB / 0.5245 GB, free: 8.402 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005673/0.5099, allocations: 147.1 kB / 0.5246 GB, free: 8.402 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001839/0.5118, allocations: 0.8535 MB / 0.5255 GB, free: 8.215 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001509/0.5133, allocations: 1.571 MB / 0.527 GB, free: 7.926 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001055/0.5144, allocations: 0.8686 MB / 0.5279 GB, free: 7.895 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005356/0.5197, allocations: 5.816 MB / 0.5335 GB, free: 4.77 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.5198, allocations: 1.75 kB / 0.5335 GB, free: 4.77 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.5198, allocations: 0 / 0.5335 GB, free: 4.77 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002139/0.52, allocations: 0 / 0.5335 GB, free: 4.77 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1739 * Number of variables: 1739 Notification: Performance of Generate backend data structure: time 0.009809/0.5298, allocations: 4.293 MB / 0.5377 GB, free: 2.188 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/0.5299, allocations: 9.125 kB / 0.5377 GB, free: 2.188 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002628/0.5325, allocations: 0.8167 MB / 0.5385 GB, free: 1.949 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01332/0.5458, allocations: 3.814 MB / 0.5423 GB, free: 264 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007408/0.5533, allocations: 2.3 MB / 0.5445 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002888/0.5536, allocations: 243.6 kB / 0.5447 GB, free: 15.15 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001768/0.5554, allocations: 319.8 kB / 0.545 GB, free: 14.95 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02138/0.5768, allocations: 11.6 MB / 0.5564 GB, free: 6.367 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001209/0.5769, allocations: 31.7 kB / 0.5564 GB, free: 6.336 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004723/0.5774, allocations: 151.7 kB / 0.5565 GB, free: 6.297 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004046/0.5815, allocations: 2.573 MB / 0.5591 GB, free: 4.148 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02209/0.6036, allocations: 10.72 MB / 0.5695 GB, free: 12 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09768/0.7013, allocations: 36.71 MB / 0.6054 GB, free: 6.738 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01051/0.7119, allocations: 4.281 MB / 0.6096 GB, free: 2.23 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001631/0.7135, allocations: 1.317 MB / 0.6108 GB, free: 0.7031 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001034/0.7137, allocations: 56.56 kB / 0.6109 GB, free: 0.6406 MB / 446.1 MB Notification: Performance of pre-optimization done (n=235): time 8.516e-06/0.7137, allocations: 0 / 0.6109 GB, free: 0.6406 MB / 446.1 MB Notification: Performance of matching and sorting (n=256): time 0.04494/0.7586, allocations: 14.29 MB / 0.6249 GB, free: 2.188 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.04e-05/0.7587, allocations: 73.41 kB / 0.6249 GB, free: 2.105 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006632/0.7654, allocations: 3.02 MB / 0.6279 GB, free: 15.07 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006723/0.7661, allocations: 57.7 kB / 0.6279 GB, free: 15.01 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002838/0.7689, allocations: 3.038 MB / 0.6309 GB, free: 11.98 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001924/0.7709, allocations: 0.9453 MB / 0.6318 GB, free: 11.05 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008948/0.7718, allocations: 108 kB / 0.6319 GB, free: 10.94 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0008319/0.7726, allocations: 0.558 MB / 0.6325 GB, free: 10.38 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0049/0.7776, allocations: 2.315 MB / 0.6347 GB, free: 8.055 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01029/0.7879, allocations: 5.509 MB / 0.6401 GB, free: 0.9844 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007614/0.7956, allocations: 3.57 MB / 0.6436 GB, free: 13.41 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001381/0.7957, allocations: 32 kB / 0.6436 GB, free: 13.38 MB / 494.1 MB Notification: Performance of matching and sorting (n=775) (initialization): time 0.02254/0.8183, allocations: 8.548 MB / 0.652 GB, free: 4.812 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002521/0.8186, allocations: 53.75 kB / 0.652 GB, free: 4.762 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000336/0.819, allocations: 112 kB / 0.6521 GB, free: 4.652 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00404/0.823, allocations: 1.056 MB / 0.6532 GB, free: 3.586 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005229/0.8283, allocations: 1.33 MB / 0.6545 GB, free: 2.254 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003604/0.8319, allocations: 2.51 MB / 0.6569 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005043/0.837, allocations: 318 kB / 0.6572 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001534/0.8386, allocations: 332 kB / 0.6575 GB, free: 14.97 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 510 * Number of states: 0 () * Number of discrete variables: 29 (freeMotionScalarInit1.arrow.arrow.arrowLine.twoHeadedArrow,freeMotionScalarInit1.arrow.headAtOrigin,freeMotionScalarInit2.arrowColor[3],freeMotionScalarInit2.arrowColor[2],freeMotionScalarInit2.arrowColor[1],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],freeMotionScalarInit1.arrowColor[3],freeMotionScalarInit1.arrowColor[2],freeMotionScalarInit1.arrowColor[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 (722): * Single equations (assignments): 713 * 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): 2 {(2,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006449/0.845, allocations: 2.317 MB / 0.6598 GB, free: 12.64 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001017/0.8461, allocations: 288.2 kB / 0.6601 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01123/0.8573, allocations: 4.959 MB / 0.6649 GB, free: 7.332 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.474e-05/0.8574, allocations: 47.94 kB / 0.665 GB, free: 7.285 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.825e-05/0.8574, allocations: 4 kB / 0.665 GB, free: 7.281 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.711e-05/0.8575, allocations: 11.95 kB / 0.665 GB, free: 7.27 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02675/0.8842, allocations: 11.53 MB / 0.6762 GB, free: 11.63 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.892e-05/0.8843, allocations: 8 kB / 0.6762 GB, free: 11.62 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001946/0.8863, allocations: 407.3 kB / 0.6766 GB, free: 11.23 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003429/0.8897, allocations: 0.9116 MB / 0.6775 GB, free: 10.3 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003899/0.8901, allocations: 53.62 kB / 0.6776 GB, free: 10.25 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002674/0.8928, allocations: 2.304 MB / 0.6798 GB, free: 7.816 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.217e-06/0.8928, allocations: 11.94 kB / 0.6798 GB, free: 7.805 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01298/0.9058, allocations: 8.037 MB / 0.6877 GB, free: 15.33 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001257/0.9071, allocations: 349.2 kB / 0.688 GB, free: 14.96 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009031/0.908, allocations: 47.95 kB / 0.6881 GB, free: 14.92 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001837/0.9099, allocations: 135.8 kB / 0.6882 GB, free: 14.79 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003833/0.9103, allocations: 152.8 kB / 0.6883 GB, free: 14.64 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002372/0.9105, allocations: 79.97 kB / 0.6884 GB, free: 14.56 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003961/0.9145, allocations: 1.839 MB / 0.6902 GB, free: 12.72 MB / 0.5294 GB Notification: Performance of sort global known variables: time 4.11e-07/0.9145, allocations: 0 / 0.6902 GB, free: 12.72 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006076/0.9206, allocations: 1.031 MB / 0.6912 GB, free: 11.69 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 12 (freeMotionScalarInit1.r_rel_a_1,freeMotionScalarInit1.r_rel_a_2,freeMotionScalarInit1.r_rel_a_3,freeMotionScalarInit1.v_rel_a_1,freeMotionScalarInit1.v_rel_a_2,freeMotionScalarInit1.v_rel_a_3,freeMotionScalarInit2.angle_1,freeMotionScalarInit2.angle_2,freeMotionScalarInit2.angle_3,freeMotionScalarInit2.angle_d_1,freeMotionScalarInit2.angle_d_2,freeMotionScalarInit2.angle_d_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 (206): * Single equations (assignments): 197 * 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): 2 {(2,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01426/0.9349, allocations: 10.63 MB / 0.7016 GB, free: 0.7578 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.2862/1.221, allocations: 6.084 MB / 0.7075 GB, free: 192.3 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.182e-05/1.221, allocations: 4.969 kB / 0.7075 GB, free: 192.3 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00547/1.227, allocations: 2.547 MB / 0.71 GB, free: 191.7 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003183/1.23, allocations: 463 kB / 0.7105 GB, free: 191.6 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07965/1.31, allocations: 110.3 MB / 0.8181 GB, free: 92.61 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00351/1.313, allocations: 3.674 MB / 0.8217 GB, free: 88.9 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004435/1.318, allocations: 2.101 MB / 0.8238 GB, free: 86.8 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002357/1.32, allocations: 2.011 MB / 0.8257 GB, free: 84.79 MB / 0.5294 GB Notification: Performance of SimCode: time 1.272e-06/1.32, allocations: 0 / 0.8257 GB, free: 84.79 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1144/1.434, allocations: 73.25 MB / 0.8973 GB, free: 11.99 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001668/1.435, allocations: 201.2 kB / 0.8975 GB, free: 11.75 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.665/5.1, allocations: 0 / 0.8975 GB, free: 11.75 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit5_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit5.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5_res.mat does not exist to compare? outputFormat=mat