Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.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.FreeMotionScalarInit5,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit5",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit5",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008289/0.0008285, allocations: 94.45 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008611/0.0008611, allocations: 190.5 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.434/1.434, allocations: 227.4 MB / 246 MB, free: 10.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2147/0.2147, allocations: 45.93 MB / 344.1 MB, free: 12 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002913/0.0002917, allocations: 8 kB / 418.2 MB, free: 20.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1674/0.1677, allocations: 63.47 MB / 481.6 MB, free: 5.242 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5): time 0.3805/0.5483, allocations: 41.11 MB / 0.5105 GB, free: 9.953 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0245/0.5729, allocations: 9.246 MB / 0.5195 GB, free: 9.523 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01042/0.5834, allocations: 192.1 kB / 0.5197 GB, free: 9.492 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007125/0.5905, allocations: 1.749 MB / 0.5214 GB, free: 9.113 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01746/0.608, allocations: 5.041 MB / 0.5263 GB, free: 8.086 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002926/0.611, allocations: 458.5 kB / 0.5268 GB, free: 8.066 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007811/0.6188, allocations: 4.45 MB / 0.5311 GB, free: 6.598 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008159/0.627, allocations: 4.128 MB / 0.5352 GB, free: 5.32 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003552/0.6306, allocations: 1.155 MB / 0.5363 GB, free: 4.895 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00394/0.6346, allocations: 1.834 MB / 0.5381 GB, free: 4.27 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001197/0.6358, allocations: 146.3 kB / 0.5382 GB, free: 4.27 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00393/0.6397, allocations: 0.8657 MB / 0.5391 GB, free: 4.039 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00418/0.6439, allocations: 1.689 MB / 0.5407 GB, free: 3.457 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003479/0.6475, allocations: 0.8741 MB / 0.5416 GB, free: 3.238 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009812/0.6573, allocations: 5.805 MB / 0.5472 GB, free: 108 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.758e-06/0.6574, allocations: 3.984 kB / 0.5472 GB, free: 104 kB / 382.1 MB Notification: Performance of FrontEnd: time 4.618e-06/0.6574, allocations: 0 / 0.5472 GB, free: 104 kB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004265/0.6578, allocations: 2.406 kB / 0.5472 GB, free: 104 kB / 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.01384/0.6717, allocations: 4.347 MB / 0.5515 GB, free: 12.38 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.119e-05/0.6717, allocations: 8.031 kB / 0.5515 GB, free: 12.37 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003668/0.6754, allocations: 0.8158 MB / 0.5523 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0115/0.6869, allocations: 3.257 MB / 0.5555 GB, free: 8.703 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005944/0.6929, allocations: 2.388 MB / 0.5578 GB, free: 6.793 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002992/0.6932, allocations: 240.2 kB / 0.558 GB, free: 6.664 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001661/0.6949, allocations: 325.4 kB / 0.5583 GB, free: 6.457 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02322/0.7182, allocations: 11.56 MB / 0.5696 GB, free: 10.76 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001977/0.7184, allocations: 23.81 kB / 0.5696 GB, free: 10.73 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001601/0.72, allocations: 147 kB / 0.5698 GB, free: 10.64 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004409/0.7244, allocations: 2.585 MB / 0.5723 GB, free: 8.062 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02212/0.7466, allocations: 10.64 MB / 0.5827 GB, free: 13.41 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06425/0.8109, allocations: 36.61 MB / 0.6185 GB, free: 8.219 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00887/0.8198, allocations: 4.293 MB / 0.6227 GB, free: 3.691 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0035/0.8233, allocations: 2.111 MB / 0.6247 GB, free: 1.582 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001449/0.8248, allocations: 1.322 MB / 0.626 GB, free: 52 kB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.248e-05/0.8249, allocations: 52.72 kB / 0.6261 GB, free: 15.99 MB / 478.1 MB Notification: Performance of pre-optimization done (n=235): time 1.086e-05/0.8249, allocations: 4 kB / 0.6261 GB, free: 15.98 MB / 478.1 MB Notification: Performance of matching and sorting (n=256): time 0.04215/0.8671, allocations: 13.73 MB / 0.6395 GB, free: 2.195 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.527e-05/0.8672, allocations: 73.41 kB / 0.6395 GB, free: 2.113 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006828/0.874, allocations: 2.904 MB / 0.6424 GB, free: 15.19 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006437/0.8747, allocations: 57.7 kB / 0.6424 GB, free: 15.13 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002982/0.8777, allocations: 3.038 MB / 0.6454 GB, free: 12.09 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001524/0.8793, allocations: 0.942 MB / 0.6463 GB, free: 11.15 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007531/0.8801, allocations: 118.8 kB / 0.6464 GB, free: 11.04 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0007015/0.8808, allocations: 0.5502 MB / 0.647 GB, free: 10.48 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004511/0.8853, allocations: 2.315 MB / 0.6492 GB, free: 8.16 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007446/0.8928, allocations: 5.528 MB / 0.6546 GB, free: 1.062 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005897/0.8987, allocations: 3.579 MB / 0.6581 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.799e-05/0.8988, allocations: 35.94 kB / 0.6582 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of matching and sorting (n=775) (initialization): time 0.01711/0.9159, allocations: 8.545 MB / 0.6665 GB, free: 4.887 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.512e-05/0.916, allocations: 52 kB / 0.6665 GB, free: 4.836 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001508/0.9162, allocations: 112 kB / 0.6667 GB, free: 4.727 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003335/0.9195, allocations: 1.059 MB / 0.6677 GB, free: 3.66 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004852/0.9244, allocations: 1.33 MB / 0.669 GB, free: 2.328 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003186/0.9276, allocations: 2.475 MB / 0.6714 GB, free: 15.72 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005511/0.9331, allocations: 323.7 kB / 0.6717 GB, free: 15.4 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001423/0.9346, allocations: 338.7 kB / 0.672 GB, free: 15.07 MB / 0.5138 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.007558/0.9422, allocations: 2.306 MB / 0.6743 GB, free: 12.76 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008931/0.9431, allocations: 304.2 kB / 0.6746 GB, free: 12.46 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01205/0.9551, allocations: 4.955 MB / 0.6794 GB, free: 7.441 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.453e-05/0.9552, allocations: 51.92 kB / 0.6795 GB, free: 7.391 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.153e-05/0.9553, allocations: 4 kB / 0.6795 GB, free: 7.387 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.097e-05/0.9553, allocations: 11.95 kB / 0.6795 GB, free: 7.375 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02994/0.9853, allocations: 11.52 MB / 0.6907 GB, free: 11.73 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.569e-05/0.9853, allocations: 8 kB / 0.6907 GB, free: 11.72 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001885/0.9872, allocations: 404.3 kB / 0.6911 GB, free: 11.33 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002968/0.9902, allocations: 0.9073 MB / 0.692 GB, free: 10.41 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002991/0.9905, allocations: 62.34 kB / 0.6921 GB, free: 10.35 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002704/0.9932, allocations: 2.272 MB / 0.6943 GB, free: 7.941 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-05/0.9932, allocations: 15.89 kB / 0.6943 GB, free: 7.926 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01227/1.006, allocations: 7.36 MB / 0.7015 GB, free: 404 kB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001162/1.007, allocations: 337.4 kB / 0.7018 GB, free: 44 kB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004636/1.007, allocations: 51 kB / 0.7019 GB, free: 15.99 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001141/1.008, allocations: 139.8 kB / 0.702 GB, free: 15.86 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002924/1.009, allocations: 157.6 kB / 0.7021 GB, free: 15.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001664/1.009, allocations: 74.8 kB / 0.7022 GB, free: 15.63 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.002832/1.012, allocations: 1.752 MB / 0.7039 GB, free: 13.88 MB / 0.545 GB Notification: Performance of sort global known variables: time 6.11e-07/1.012, allocations: 4 kB / 0.7039 GB, free: 13.88 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00477/1.016, allocations: 1.012 MB / 0.7049 GB, free: 12.86 MB / 0.545 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.01205/1.029, allocations: 8.042 MB / 0.7128 GB, free: 4.652 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.2315/1.26, allocations: 6.082 MB / 0.7187 GB, free: 197.6 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.145e-05/1.26, allocations: 0.6875 kB / 0.7187 GB, free: 197.6 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004868/1.265, allocations: 2.553 MB / 0.7212 GB, free: 197.2 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002803/1.268, allocations: 485.1 kB / 0.7217 GB, free: 197.2 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05381/1.322, allocations: 33.3 MB / 0.7542 GB, free: 178.1 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00445/1.326, allocations: 3.576 MB / 0.7577 GB, free: 176.6 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004667/1.331, allocations: 2.111 MB / 0.7597 GB, free: 174.8 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003197/1.334, allocations: 2.003 MB / 0.7617 GB, free: 172.8 MB / 0.545 GB Notification: Performance of SimCode: time 1.743e-06/1.334, allocations: 4 kB / 0.7617 GB, free: 172.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09583/1.43, allocations: 72.53 MB / 0.8325 GB, free: 100.6 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001461/1.43, allocations: 210.3 kB / 0.8327 GB, free: 100.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.802/5.232, allocations: 0 / 0.8327 GB, free: 100.4 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit5_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit5.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5_res.mat does not exist to compare? outputFormat=mat