Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.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.FreeMotion,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion",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.001136/0.001136, allocations: 110.4 kB / 17.78 MB, free: 5.266 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.001141/0.001142, allocations: 183.1 kB / 18.71 MB, free: 4.344 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.378/1.378, allocations: 222.9 MB / 242.4 MB, free: 15.17 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.2118/0.2118, allocations: 44.19 MB / 336.8 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001736/0.001737, allocations: 67.89 kB / 470 MB, free: 13.67 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3939/0.3956, allocations: 60.82 MB / 0.5184 GB, free: 3.16 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion): time 0.01263/0.4083, allocations: 11.86 MB / 0.53 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01088/0.4192, allocations: 3.949 MB / 0.5339 GB, free: 7.879 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00352/0.4228, allocations: 61.31 kB / 0.5339 GB, free: 7.871 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003188/0.4261, allocations: 1.181 MB / 0.5351 GB, free: 7.059 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005164/0.4312, allocations: 1.777 MB / 0.5368 GB, free: 5.852 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001388/0.4327, allocations: 0.4946 MB / 0.5373 GB, free: 5.531 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006267/0.4389, allocations: 4.01 MB / 0.5412 GB, free: 3.453 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002313/0.4413, allocations: 1.811 MB / 0.543 GB, free: 2.312 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002108/0.4434, allocations: 1.189 MB / 0.5441 GB, free: 1.598 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002169/0.4456, allocations: 1.686 MB / 0.5458 GB, free: 15.91 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004193/0.446, allocations: 224 kB / 0.546 GB, free: 15.69 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001997/0.448, allocations: 1.096 MB / 0.5471 GB, free: 14.59 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001321/0.4494, allocations: 1.64 MB / 0.5487 GB, free: 12.95 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001768/0.4511, allocations: 1.89 MB / 0.5505 GB, free: 11.04 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006099/0.4572, allocations: 6.278 MB / 0.5566 GB, free: 4.742 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.4573, allocations: 0 / 0.5566 GB, free: 4.742 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.4573, allocations: 0 / 0.5566 GB, free: 4.742 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001462/0.4574, allocations: 3.984 kB / 0.5566 GB, free: 4.738 MB / 414.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.007426/0.4649, allocations: 4.221 MB / 0.5608 GB, free: 460 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.773e-05/0.4649, allocations: 8.031 kB / 0.5608 GB, free: 452 kB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008547/0.4658, allocations: 0.704 MB / 0.5615 GB, free: 15.73 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0107/0.4765, allocations: 3.166 MB / 0.5646 GB, free: 12.55 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005743/0.4823, allocations: 2.72 MB / 0.5672 GB, free: 9.785 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001429/0.4824, allocations: 184.6 kB / 0.5674 GB, free: 9.602 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001011/0.4835, allocations: 327.5 kB / 0.5677 GB, free: 9.281 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01702/0.5005, allocations: 10.48 MB / 0.5779 GB, free: 14.35 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000179/0.5007, allocations: 35.73 kB / 0.578 GB, free: 14.32 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001164/0.5019, allocations: 115.8 kB / 0.5781 GB, free: 14.2 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004091/0.506, allocations: 2.491 MB / 0.5805 GB, free: 11.71 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01825/0.5243, allocations: 10.01 MB / 0.5903 GB, free: 1.691 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05211/0.5764, allocations: 34.8 MB / 0.6243 GB, free: 14.01 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007689/0.5842, allocations: 4.312 MB / 0.6285 GB, free: 9.473 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00297/0.5872, allocations: 2.151 MB / 0.6306 GB, free: 7.32 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001237/0.5884, allocations: 1.323 MB / 0.6319 GB, free: 5.777 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.144e-05/0.5885, allocations: 60.5 kB / 0.6319 GB, free: 5.711 MB / 494.1 MB Notification: Performance of pre-optimization done (n=236): time 5.41e-06/0.5885, allocations: 0 / 0.6319 GB, free: 5.711 MB / 494.1 MB Notification: Performance of matching and sorting (n=252): time 0.03941/0.6279, allocations: 16.75 MB / 0.6483 GB, free: 4.836 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001347/0.6293, allocations: 1.61 MB / 0.6499 GB, free: 3.066 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00434/0.6337, allocations: 2.721 MB / 0.6525 GB, free: 336 kB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0004419/0.6341, allocations: 57.69 kB / 0.6526 GB, free: 272 kB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001981/0.6361, allocations: 2.667 MB / 0.6552 GB, free: 13.56 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.00134/0.6375, allocations: 0.925 MB / 0.6561 GB, free: 12.62 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002631/0.6401, allocations: 1.107 MB / 0.6572 GB, free: 11.5 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 8.747e-05/0.6402, allocations: 305.1 kB / 0.6575 GB, free: 11.2 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003686/0.6439, allocations: 2.4 MB / 0.6598 GB, free: 8.793 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00556/0.6495, allocations: 5.359 MB / 0.665 GB, free: 1.984 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01091/0.6605, allocations: 8.439 MB / 0.6733 GB, free: 8.098 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001067/0.6606, allocations: 39.88 kB / 0.6733 GB, free: 8.059 MB / 0.5294 GB Notification: Performance of matching and sorting (n=732) (initialization): time 0.02317/0.6838, allocations: 9.322 MB / 0.6824 GB, free: 14.71 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001239/0.6839, allocations: 48 kB / 0.6825 GB, free: 14.67 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01344/0.6974, allocations: 4.498 MB / 0.6869 GB, free: 10.15 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01067/0.7081, allocations: 2.004 MB / 0.6888 GB, free: 8.133 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004375/0.7125, allocations: 1.259 MB / 0.69 GB, free: 6.871 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007601/0.7202, allocations: 5.265 MB / 0.6952 GB, free: 1.324 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00485/0.7251, allocations: 395.6 kB / 0.6956 GB, free: 0.9414 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001318/0.7264, allocations: 316 kB / 0.6959 GB, free: 0.6328 MB / 0.545 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 (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.006305/0.7327, allocations: 2.059 MB / 0.6979 GB, free: 14.56 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0011/0.7338, allocations: 276.4 kB / 0.6981 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01208/0.7459, allocations: 5.322 MB / 0.7033 GB, free: 8.922 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009381/0.7554, allocations: 4.609 MB / 0.7078 GB, free: 4.297 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.184e-05/0.7554, allocations: 4 kB / 0.7078 GB, free: 4.293 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.31e-05/0.7555, allocations: 7.969 kB / 0.7078 GB, free: 4.285 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02953/0.785, allocations: 14.4 MB / 0.7219 GB, free: 5.613 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.957e-05/0.7851, allocations: 8.938 kB / 0.7219 GB, free: 5.605 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001893/0.787, allocations: 407.3 kB / 0.7223 GB, free: 5.207 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004533/0.7915, allocations: 1.24 MB / 0.7235 GB, free: 3.953 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003903/0.792, allocations: 67.86 kB / 0.7236 GB, free: 3.891 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3563/1.148, allocations: 4.738 MB / 0.7282 GB, free: 181.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000934/1.149, allocations: 1.556 MB / 0.7297 GB, free: 179.7 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01354/1.163, allocations: 8.006 MB / 0.7375 GB, free: 177.6 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008328/1.164, allocations: 327.5 kB / 0.7379 GB, free: 177.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000397/1.164, allocations: 57.11 kB / 0.7379 GB, free: 177.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00144/1.165, allocations: 193.2 kB / 0.7381 GB, free: 177.5 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003675/1.166, allocations: 164.5 kB / 0.7383 GB, free: 177.4 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001732/1.166, allocations: 75.39 kB / 0.7383 GB, free: 177.4 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.002398/1.168, allocations: 1.676 MB / 0.74 GB, free: 176.9 MB / 0.5762 GB Notification: Performance of sort global known variables: time 3.1e-07/1.168, allocations: 3.781 kB / 0.74 GB, free: 176.9 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.004919/1.173, allocations: 1.033 MB / 0.741 GB, free: 176.7 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.01211/1.185, allocations: 8.551 MB / 0.7493 GB, free: 173.4 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.009789/1.195, allocations: 6.426 MB / 0.7556 GB, free: 171.2 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.427e-05/1.195, allocations: 2 kB / 0.7556 GB, free: 171.2 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.004039/1.199, allocations: 2.849 MB / 0.7584 GB, free: 170.1 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002576/1.202, allocations: 402.6 kB / 0.7588 GB, free: 169.9 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06471/1.267, allocations: 44.54 MB / 0.8023 GB, free: 122.9 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006377/1.273, allocations: 3.224 MB / 0.8054 GB, free: 119.7 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.004898/1.278, allocations: 2.075 MB / 0.8074 GB, free: 117.6 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003135/1.281, allocations: 1.729 MB / 0.8091 GB, free: 115.9 MB / 0.5762 GB Notification: Performance of SimCode: time 1.693e-06/1.281, allocations: 4 kB / 0.8091 GB, free: 115.9 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1133/1.395, allocations: 62.1 MB / 0.8698 GB, free: 54.08 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.17/21.57, allocations: 12.47 kB / 0.8698 GB, free: 54.07 MB / 0.5762 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches