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.001194/0.001194, allocations: 118.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001185/0.001185, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.421/1.421, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2193/0.2193, allocations: 46.1 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002578/0.002578, allocations: 75.88 kB / 480.8 MB, free: 4.566 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3467/0.3493, allocations: 62.43 MB / 0.5305 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion): time 0.01284/0.3621, allocations: 11.71 MB / 0.542 GB, free: 4.215 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008203/0.3704, allocations: 3.94 MB / 0.5458 GB, free: 1.184 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001851/0.3723, allocations: 59.84 kB / 0.5459 GB, free: 1.176 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002854/0.3751, allocations: 1.179 MB / 0.547 GB, free: 376 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004554/0.3798, allocations: 1.721 MB / 0.5487 GB, free: 15.12 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001516/0.3813, allocations: 0.4912 MB / 0.5492 GB, free: 14.62 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005557/0.3869, allocations: 4.061 MB / 0.5531 GB, free: 10.56 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002926/0.3898, allocations: 1.786 MB / 0.5549 GB, free: 8.75 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002202/0.3921, allocations: 1.164 MB / 0.556 GB, free: 7.582 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00254/0.3946, allocations: 1.658 MB / 0.5576 GB, free: 5.918 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008476/0.3955, allocations: 216 kB / 0.5578 GB, free: 5.707 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002675/0.3982, allocations: 1.073 MB / 0.5589 GB, free: 4.633 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00199/0.4002, allocations: 1.578 MB / 0.5604 GB, free: 3.051 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003041/0.4033, allocations: 1.844 MB / 0.5622 GB, free: 1.195 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007525/0.4108, allocations: 6.103 MB / 0.5682 GB, free: 11.07 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.133e-06/0.4109, allocations: 0 / 0.5682 GB, free: 11.07 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.4109, allocations: 7.938 kB / 0.5682 GB, free: 11.06 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002411/0.4111, allocations: 4 kB / 0.5682 GB, free: 11.06 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1483 * Number of variables: 1483 Notification: Performance of Generate backend data structure: time 0.008499/0.4196, allocations: 4.115 MB / 0.5722 GB, free: 6.875 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.57e-05/0.4197, allocations: 8.031 kB / 0.5722 GB, free: 6.867 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00129/0.421, allocations: 0.6915 MB / 0.5729 GB, free: 6.164 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01079/0.4318, allocations: 3.205 MB / 0.576 GB, free: 2.949 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004776/0.4366, allocations: 2.482 MB / 0.5785 GB, free: 432 kB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001571/0.4368, allocations: 184.6 kB / 0.5786 GB, free: 244 kB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001118/0.4379, allocations: 315.6 kB / 0.5789 GB, free: 15.93 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01605/0.454, allocations: 10.3 MB / 0.589 GB, free: 5.176 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001094/0.4541, allocations: 31.66 kB / 0.589 GB, free: 5.145 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007194/0.4548, allocations: 115.8 kB / 0.5891 GB, free: 5.031 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003535/0.4584, allocations: 2.436 MB / 0.5915 GB, free: 2.59 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01889/0.4773, allocations: 9.839 MB / 0.6011 GB, free: 8.738 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0506/0.528, allocations: 34.39 MB / 0.6347 GB, free: 5.492 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007624/0.5356, allocations: 4.311 MB / 0.6389 GB, free: 0.957 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002993/0.5387, allocations: 2.154 MB / 0.641 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001281/0.54, allocations: 1.319 MB / 0.6423 GB, free: 13.26 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.358e-05/0.54, allocations: 60.5 kB / 0.6424 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=236): time 5.29e-06/0.5401, allocations: 0 / 0.6424 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of matching and sorting (n=252): time 0.03716/0.5772, allocations: 16.72 MB / 0.6587 GB, free: 12.36 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001274/0.5785, allocations: 1.623 MB / 0.6603 GB, free: 10.57 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003438/0.582, allocations: 2.688 MB / 0.6629 GB, free: 7.863 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0003655/0.5824, allocations: 53.7 kB / 0.663 GB, free: 7.805 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.001611/0.584, allocations: 2.616 MB / 0.6655 GB, free: 5.148 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009359/0.5849, allocations: 0.9289 MB / 0.6664 GB, free: 4.207 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001418/0.5864, allocations: 1.088 MB / 0.6675 GB, free: 3.109 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.000101/0.5865, allocations: 301.1 kB / 0.6678 GB, free: 2.812 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003202/0.5897, allocations: 2.388 MB / 0.6701 GB, free: 428 kB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00504/0.5947, allocations: 5.315 MB / 0.6753 GB, free: 9.668 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00938/0.6041, allocations: 8.379 MB / 0.6835 GB, free: 15.86 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.124e-05/0.6043, allocations: 28 kB / 0.6835 GB, free: 15.84 MB / 0.545 GB Notification: Performance of matching and sorting (n=726) (initialization): time 0.02067/0.6249, allocations: 9.34 MB / 0.6926 GB, free: 6.473 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 7.606e-05/0.625, allocations: 55.12 kB / 0.6927 GB, free: 6.422 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01242/0.6375, allocations: 4.561 MB / 0.6971 GB, free: 1.848 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0106/0.6481, allocations: 2.098 MB / 0.6992 GB, free: 15.73 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004532/0.6527, allocations: 1.24 MB / 0.7004 GB, free: 14.49 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0074/0.6601, allocations: 5.305 MB / 0.7056 GB, free: 8.902 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004017/0.6642, allocations: 383.6 kB / 0.7059 GB, free: 8.527 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007085/0.6649, allocations: 320 kB / 0.7062 GB, free: 8.215 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 462 * Number of states: 0 () * Number of discrete variables: 26 (freeMotion.arrow.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 (664): * Single equations (assignments): 652 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003453/0.6684, allocations: 2.02 MB / 0.7082 GB, free: 6.18 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004761/0.6688, allocations: 276.4 kB / 0.7085 GB, free: 5.906 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009627/0.6785, allocations: 5.322 MB / 0.7137 GB, free: 0.543 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008689/0.6872, allocations: 4.601 MB / 0.7182 GB, free: 11.92 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.241e-05/0.6873, allocations: 0 / 0.7182 GB, free: 11.92 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.733e-05/0.6873, allocations: 7.969 kB / 0.7182 GB, free: 11.91 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3115/0.9988, allocations: 14.29 MB / 0.7321 GB, free: 162 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.142e-05/0.9989, allocations: 8.781 kB / 0.7321 GB, free: 162 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001958/1.001, allocations: 400.7 kB / 0.7325 GB, free: 162 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004566/1.005, allocations: 1.241 MB / 0.7337 GB, free: 162 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004962/1.006, allocations: 66.3 kB / 0.7338 GB, free: 162 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004592/1.011, allocations: 4.737 MB / 0.7384 GB, free: 159.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008782/1.012, allocations: 1.562 MB / 0.7399 GB, free: 157.8 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01218/1.024, allocations: 7.984 MB / 0.7477 GB, free: 157 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009669/1.025, allocations: 335.3 kB / 0.7481 GB, free: 156.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005162/1.025, allocations: 57.56 kB / 0.7481 GB, free: 156.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00138/1.027, allocations: 193.9 kB / 0.7483 GB, free: 156.8 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003647/1.027, allocations: 162.7 kB / 0.7485 GB, free: 156.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001681/1.027, allocations: 80.39 kB / 0.7485 GB, free: 156.8 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.002202/1.029, allocations: 1.653 MB / 0.7501 GB, free: 156.2 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/1.029, allocations: 0 / 0.7501 GB, free: 156.2 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.004021/1.033, allocations: 1.005 MB / 0.7511 GB, free: 156.1 MB / 0.5762 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 (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01086/1.044, allocations: 8.545 MB / 0.7595 GB, free: 151.3 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.008961/1.053, allocations: 6.404 MB / 0.7657 GB, free: 146 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.221e-05/1.053, allocations: 4 kB / 0.7657 GB, free: 146 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.003928/1.057, allocations: 2.854 MB / 0.7685 GB, free: 143.6 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002344/1.06, allocations: 397.2 kB / 0.7689 GB, free: 143.3 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06498/1.125, allocations: 44.31 MB / 0.8122 GB, free: 94.94 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003206/1.128, allocations: 3.185 MB / 0.8153 GB, free: 91.72 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003705/1.132, allocations: 2.052 MB / 0.8173 GB, free: 89.66 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002254/1.134, allocations: 1.698 MB / 0.8189 GB, free: 87.96 MB / 0.5762 GB Notification: Performance of SimCode: time 9.21e-07/1.134, allocations: 0 / 0.8189 GB, free: 87.96 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1382/1.272, allocations: 61.5 MB / 0.879 GB, free: 26.77 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.29/21.57, allocations: 17.19 kB / 0.879 GB, free: 26.75 MB / 0.5762 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/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) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotion/FreeMotion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches