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.002426/0.002426, allocations: 108.1 kB / 17.33 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00225/0.00225, allocations: 209.8 kB / 18.27 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.452/1.452, allocations: 227.4 MB / 246.4 MB, free: 9.086 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2316/0.2316, allocations: 46.1 MB / 343.8 MB, free: 11.55 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001396/0.001395, allocations: 76.88 kB / 417.2 MB, free: 19.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1377/0.1391, allocations: 62.44 MB / 479.6 MB, free: 5.496 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion): time 0.02485/0.164, allocations: 25.51 MB / 0.4933 GB, free: 11.88 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0156/0.1796, allocations: 6.122 MB / 0.4992 GB, free: 5.734 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005545/0.1852, allocations: 103.8 kB / 0.4993 GB, free: 5.633 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003166/0.1884, allocations: 1.118 MB / 0.5004 GB, free: 4.512 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005293/0.1938, allocations: 1.623 MB / 0.502 GB, free: 2.887 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001814/0.1956, allocations: 467.2 kB / 0.5025 GB, free: 2.43 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2684/0.464, allocations: 4.037 MB / 0.5064 GB, free: 11.86 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003394/0.4675, allocations: 1.87 MB / 0.5082 GB, free: 11.74 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003298/0.4708, allocations: 1.165 MB / 0.5094 GB, free: 11.74 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003817/0.4747, allocations: 1.84 MB / 0.5112 GB, free: 11.56 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006562/0.4753, allocations: 216.7 kB / 0.5114 GB, free: 11.56 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002712/0.4781, allocations: 1.089 MB / 0.5124 GB, free: 11.55 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002117/0.4802, allocations: 1.602 MB / 0.514 GB, free: 11.38 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002013/0.4822, allocations: 1.859 MB / 0.5158 GB, free: 10.65 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007511/0.4897, allocations: 5.868 MB / 0.5215 GB, free: 9.805 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.328e-06/0.4898, allocations: 4.75 kB / 0.5216 GB, free: 9.805 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.4898, allocations: 3.938 kB / 0.5216 GB, free: 9.801 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001819/0.49, allocations: 4 kB / 0.5216 GB, free: 9.797 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: 1483 * Number of variables: 1483 Notification: Performance of Generate backend data structure: time 0.01102/0.501, allocations: 4.119 MB / 0.5256 GB, free: 7.715 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.162e-05/0.5011, allocations: 9.688 kB / 0.5256 GB, free: 7.715 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001479/0.5025, allocations: 0.6908 MB / 0.5263 GB, free: 7.375 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01115/0.5137, allocations: 3.2 MB / 0.5294 GB, free: 5.73 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005883/0.5196, allocations: 2.45 MB / 0.5318 GB, free: 4.41 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001748/0.5198, allocations: 182.5 kB / 0.532 GB, free: 4.363 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001634/0.5215, allocations: 331.6 kB / 0.5323 GB, free: 4.277 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0196/0.5411, allocations: 10.3 MB / 0.5423 GB, free: 13.93 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001707/0.5413, allocations: 26.97 kB / 0.5424 GB, free: 13.92 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001342/0.5426, allocations: 112.1 kB / 0.5425 GB, free: 13.85 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005096/0.5477, allocations: 2.437 MB / 0.5448 GB, free: 11.44 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02225/0.57, allocations: 9.842 MB / 0.5545 GB, free: 1.703 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06578/0.6358, allocations: 34.58 MB / 0.5882 GB, free: 14.77 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009398/0.6453, allocations: 4.297 MB / 0.5924 GB, free: 10.25 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005172/0.6505, allocations: 2.158 MB / 0.5945 GB, free: 8.094 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001789/0.6523, allocations: 1.327 MB / 0.5958 GB, free: 6.559 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.074e-05/0.6524, allocations: 48.56 kB / 0.5959 GB, free: 6.5 MB / 446.1 MB Notification: Performance of pre-optimization done (n=236): time 9.037e-06/0.6525, allocations: 4 kB / 0.5959 GB, free: 6.496 MB / 446.1 MB Notification: Performance of matching and sorting (n=252): time 0.05246/0.7049, allocations: 16.73 MB / 0.6122 GB, free: 5.695 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001424/0.7064, allocations: 1.62 MB / 0.6138 GB, free: 3.926 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005841/0.7123, allocations: 2.684 MB / 0.6164 GB, free: 1.223 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006255/0.7129, allocations: 61.7 kB / 0.6165 GB, free: 1.156 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002041/0.715, allocations: 2.609 MB / 0.619 GB, free: 14.54 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001416/0.7164, allocations: 0.9202 MB / 0.6199 GB, free: 13.63 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0029/0.7193, allocations: 1.098 MB / 0.621 GB, free: 12.53 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 8.899e-05/0.7194, allocations: 301.1 kB / 0.6213 GB, free: 12.23 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004009/0.7234, allocations: 2.392 MB / 0.6236 GB, free: 9.836 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007108/0.7306, allocations: 5.312 MB / 0.6288 GB, free: 3.141 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01108/0.7417, allocations: 8.381 MB / 0.637 GB, free: 9.746 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001112/0.7418, allocations: 36 kB / 0.637 GB, free: 9.711 MB / 494.1 MB Notification: Performance of matching and sorting (n=726) (initialization): time 0.0235/0.7653, allocations: 9.343 MB / 0.6462 GB, free: 0.5742 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001194/0.7655, allocations: 48 kB / 0.6462 GB, free: 0.5273 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01386/0.7794, allocations: 4.56 MB / 0.6506 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01075/0.7902, allocations: 2.098 MB / 0.6527 GB, free: 9.844 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004804/0.795, allocations: 1.24 MB / 0.6539 GB, free: 8.602 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007527/0.8026, allocations: 5.31 MB / 0.6591 GB, free: 3.012 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004668/0.8073, allocations: 399.4 kB / 0.6595 GB, free: 2.621 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001308/0.8086, allocations: 314.4 kB / 0.6598 GB, free: 2.316 MB / 0.4981 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.005381/0.814, allocations: 2.019 MB / 0.6617 GB, free: 292 kB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007979/0.8148, allocations: 272.6 kB / 0.662 GB, free: 16 kB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01126/0.8261, allocations: 5.325 MB / 0.6672 GB, free: 10.66 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0102/0.8363, allocations: 4.599 MB / 0.6717 GB, free: 6.039 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.225e-05/0.8364, allocations: 0 / 0.6717 GB, free: 6.039 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.05e-05/0.8364, allocations: 11.95 kB / 0.6717 GB, free: 6.027 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03207/0.8685, allocations: 14.31 MB / 0.6857 GB, free: 7.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.753e-05/0.8685, allocations: 12.16 kB / 0.6857 GB, free: 7.488 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001803/0.8703, allocations: 411.3 kB / 0.6861 GB, free: 7.086 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004413/0.8748, allocations: 1.236 MB / 0.6873 GB, free: 5.836 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004255/0.8752, allocations: 74.55 kB / 0.6874 GB, free: 5.766 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005166/0.8804, allocations: 4.755 MB / 0.692 GB, free: 0.7305 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00116/0.8816, allocations: 1.554 MB / 0.6935 GB, free: 15.03 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01498/0.8966, allocations: 7.995 MB / 0.7013 GB, free: 6.875 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001021/0.8976, allocations: 325.6 kB / 0.7016 GB, free: 6.535 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009698/0.8986, allocations: 51.92 kB / 0.7017 GB, free: 6.484 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002132/0.9008, allocations: 202.3 kB / 0.7019 GB, free: 6.289 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005187/0.9013, allocations: 164.9 kB / 0.702 GB, free: 6.125 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002749/0.9016, allocations: 75.97 kB / 0.7021 GB, free: 6.051 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003555/0.9052, allocations: 1.652 MB / 0.7037 GB, free: 4.391 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.1e-07/0.9052, allocations: 0 / 0.7037 GB, free: 4.391 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006557/0.9117, allocations: 1.007 MB / 0.7047 GB, free: 3.387 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 (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.2233/1.135, allocations: 8.547 MB / 0.7131 GB, free: 193.9 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0183/1.153, allocations: 9.811 MB / 0.7226 GB, free: 192.1 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.635e-05/1.153, allocations: 3.844 kB / 0.7226 GB, free: 192.1 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004717/1.158, allocations: 2.85 MB / 0.7254 GB, free: 190.9 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002933/1.161, allocations: 382.6 kB / 0.7258 GB, free: 190.8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06773/1.229, allocations: 49.2 MB / 0.7738 GB, free: 147.2 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003233/1.232, allocations: 3.188 MB / 0.777 GB, free: 144.1 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004299/1.237, allocations: 2.056 MB / 0.779 GB, free: 142 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002019/1.239, allocations: 1.694 MB / 0.7806 GB, free: 140.3 MB / 0.545 GB Notification: Performance of SimCode: time 1.072e-06/1.239, allocations: 0 / 0.7806 GB, free: 140.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08654/1.325, allocations: 63.4 MB / 0.8425 GB, free: 77.19 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001546/1.325, allocations: 236.1 kB / 0.8428 GB, free: 76.93 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.527/4.852, allocations: 0 / 0.8428 GB, free: 76.93 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/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