Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007935/0.0007936, allocations: 101.1 kB / 17.01 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008737/0.0008739, allocations: 196.5 kB / 17.91 MB, free: 5.902 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.359/1.359, allocations: 227.4 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.209/0.209, allocations: 45.92 MB / 344.1 MB, free: 12.23 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002989/0.0002989, allocations: 15.94 kB / 418.2 MB, free: 20.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.135/0.1354, allocations: 63.47 MB / 481.6 MB, free: 5.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion): time 0.02566/0.1611, allocations: 26.41 MB / 0.4961 GB, free: 10.77 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01449/0.1756, allocations: 6.479 MB / 0.5025 GB, free: 4.277 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004878/0.1805, allocations: 119.7 kB / 0.5026 GB, free: 4.16 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004031/0.1846, allocations: 1.272 MB / 0.5038 GB, free: 2.883 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2894/0.474, allocations: 3.995 MB / 0.5077 GB, free: 11.27 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001899/0.4759, allocations: 419.7 kB / 0.5081 GB, free: 11.26 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006798/0.4827, allocations: 4.347 MB / 0.5124 GB, free: 11.24 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003989/0.4868, allocations: 2.172 MB / 0.5145 GB, free: 10.94 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002347/0.4891, allocations: 1.03 MB / 0.5155 GB, free: 10.94 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003033/0.4922, allocations: 1.672 MB / 0.5171 GB, free: 10.94 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006322/0.4928, allocations: 127.1 kB / 0.5173 GB, free: 10.94 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002323/0.4952, allocations: 0.8855 MB / 0.5181 GB, free: 10.93 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002072/0.4973, allocations: 1.522 MB / 0.5196 GB, free: 10.93 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001214/0.4985, allocations: 0.7453 MB / 0.5203 GB, free: 10.89 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00578/0.5043, allocations: 4.727 MB / 0.525 GB, free: 9.758 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.73e-06/0.5043, allocations: 0.9688 kB / 0.525 GB, free: 9.758 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.5043, allocations: 3.188 kB / 0.525 GB, free: 9.758 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001893/0.5045, allocations: 0 / 0.525 GB, free: 9.758 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: 1512 * Number of variables: 1512 Notification: Performance of Generate backend data structure: time 0.007629/0.5122, allocations: 3.532 MB / 0.5284 GB, free: 7.539 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/0.5122, allocations: 9.781 kB / 0.5284 GB, free: 7.539 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00119/0.5134, allocations: 0.7028 MB / 0.5291 GB, free: 7.324 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01011/0.5235, allocations: 3.322 MB / 0.5323 GB, free: 5.762 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005088/0.5286, allocations: 2.44 MB / 0.5347 GB, free: 4.859 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000138/0.5288, allocations: 182.3 kB / 0.5349 GB, free: 4.852 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007815/0.5296, allocations: 341.9 kB / 0.5352 GB, free: 4.812 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01546/0.5451, allocations: 10.47 MB / 0.5455 GB, free: 15.88 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.76e-05/0.5452, allocations: 34.66 kB / 0.5455 GB, free: 15.86 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003875/0.5456, allocations: 115 kB / 0.5456 GB, free: 15.82 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003858/0.5495, allocations: 2.495 MB / 0.548 GB, free: 13.74 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0203/0.5698, allocations: 9.972 MB / 0.5578 GB, free: 6.191 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05805/0.6279, allocations: 34.98 MB / 0.5919 GB, free: 2.617 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008443/0.6364, allocations: 4.303 MB / 0.5961 GB, free: 14.09 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003572/0.64, allocations: 2.15 MB / 0.5982 GB, free: 11.95 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001383/0.6414, allocations: 1.316 MB / 0.5995 GB, free: 10.41 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.834e-05/0.6415, allocations: 52.56 kB / 0.5996 GB, free: 10.36 MB / 446.1 MB Notification: Performance of pre-optimization done (n=236): time 5.971e-06/0.6415, allocations: 0 / 0.5996 GB, free: 10.36 MB / 446.1 MB Notification: Performance of matching and sorting (n=252): time 0.04299/0.6845, allocations: 16.73 MB / 0.6159 GB, free: 9.539 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001532/0.6861, allocations: 1.531 MB / 0.6174 GB, free: 7.852 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005677/0.6918, allocations: 2.701 MB / 0.62 GB, free: 5.137 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006073/0.6924, allocations: 58.64 kB / 0.6201 GB, free: 5.074 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002313/0.6947, allocations: 2.668 MB / 0.6227 GB, free: 2.418 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001435/0.6962, allocations: 0.9294 MB / 0.6236 GB, free: 1.5 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006123/0.6968, allocations: 104 kB / 0.6237 GB, free: 1.398 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0005191/0.6973, allocations: 0.5472 MB / 0.6242 GB, free: 0.8438 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004203/0.7016, allocations: 2.377 MB / 0.6266 GB, free: 14.46 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007194/0.7088, allocations: 5.339 MB / 0.6318 GB, free: 7.684 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005743/0.7145, allocations: 3.561 MB / 0.6353 GB, free: 4.121 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.062e-05/0.7146, allocations: 28 kB / 0.6353 GB, free: 4.094 MB / 478.1 MB Notification: Performance of matching and sorting (n=732) (initialization): time 0.02123/0.7359, allocations: 9.353 MB / 0.6444 GB, free: 10.72 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.94e-05/0.736, allocations: 48 kB / 0.6445 GB, free: 10.68 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01227/0.7483, allocations: 4.551 MB / 0.6489 GB, free: 6.113 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009445/0.7577, allocations: 2.109 MB / 0.651 GB, free: 3.988 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004764/0.7626, allocations: 1.248 MB / 0.6522 GB, free: 2.738 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00703/0.7696, allocations: 4.973 MB / 0.657 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004594/0.7742, allocations: 395.5 kB / 0.6574 GB, free: 13.11 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001128/0.7754, allocations: 319.3 kB / 0.6577 GB, free: 12.8 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 468 * Number of states: 0 () * Number of discrete variables: 26 (freeMotion.arrow.arrowLine.twoHeadedArrow,freeMotion.arrow.headAtOrigin,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],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.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 (670): * Single equations (assignments): 658 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * 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.00501/0.7804, allocations: 2.06 MB / 0.6597 GB, free: 10.72 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005967/0.781, allocations: 276.4 kB / 0.66 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01054/0.7916, allocations: 5.316 MB / 0.6652 GB, free: 5.102 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009194/0.8008, allocations: 4.594 MB / 0.6697 GB, free: 500 kB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.452e-05/0.8009, allocations: 0 / 0.6697 GB, free: 500 kB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.387e-05/0.8009, allocations: 11.95 kB / 0.6697 GB, free: 488 kB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02736/0.8283, allocations: 14.4 MB / 0.6838 GB, free: 1.871 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.211e-05/0.8284, allocations: 8 kB / 0.6838 GB, free: 1.863 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001792/0.8302, allocations: 407.3 kB / 0.6841 GB, free: 1.465 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004182/0.8344, allocations: 1.244 MB / 0.6854 GB, free: 212 kB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006709/0.8351, allocations: 65.59 kB / 0.6854 GB, free: 148 kB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005234/0.8403, allocations: 4.448 MB / 0.6898 GB, free: 11.43 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001071/0.8414, allocations: 1.459 MB / 0.6912 GB, free: 9.828 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0141/0.8555, allocations: 7.976 MB / 0.699 GB, free: 1.691 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001047/0.8566, allocations: 333.5 kB / 0.6993 GB, free: 1.344 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006667/0.8573, allocations: 54.06 kB / 0.6994 GB, free: 1.293 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001609/0.8589, allocations: 195.7 kB / 0.6995 GB, free: 1.102 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004046/0.8593, allocations: 167.9 kB / 0.6997 GB, free: 0.9375 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000193/0.8595, allocations: 75.97 kB / 0.6998 GB, free: 0.8633 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003409/0.863, allocations: 1.645 MB / 0.7014 GB, free: 15.21 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.1e-07/0.863, allocations: 0 / 0.7014 GB, free: 15.21 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006493/0.8695, allocations: 1.042 MB / 0.7024 GB, free: 14.17 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],freeMotion.r_rel_a[1],freeMotion.r_rel_a[2],freeMotion.r_rel_a[3],freeMotion.v_rel_a[1],freeMotion.v_rel_a[2],freeMotion.v_rel_a[3],freeMotion.w_rel_b[1],freeMotion.w_rel_b[2],freeMotion.w_rel_b[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 (192): * Single equations (assignments): 182 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * 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.01447/0.884, allocations: 8.518 MB / 0.7107 GB, free: 5.477 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.2816/1.166, allocations: 6.341 MB / 0.7169 GB, free: 170 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.646e-05/1.166, allocations: 2.5 kB / 0.7169 GB, free: 170 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.006343/1.172, allocations: 2.833 MB / 0.7197 GB, free: 169.6 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002874/1.175, allocations: 383.5 kB / 0.72 GB, free: 169.6 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06366/1.239, allocations: 32.57 MB / 0.7518 GB, free: 156.4 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004774/1.243, allocations: 3.238 MB / 0.755 GB, free: 155.6 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005016/1.249, allocations: 2.066 MB / 0.757 GB, free: 155.1 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003682/1.252, allocations: 1.731 MB / 0.7587 GB, free: 155 MB / 0.545 GB Notification: Performance of SimCode: time 1.132e-06/1.252, allocations: 3.938 kB / 0.7587 GB, free: 155 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0991/1.351, allocations: 69.99 MB / 0.8271 GB, free: 86.42 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001596/1.352, allocations: 216.9 kB / 0.8273 GB, free: 86.18 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.669/5.02, allocations: 0 / 0.8273 GB, free: 86.18 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotion_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotion.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat does not exist to compare? outputFormat=mat