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.001209/0.001209, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001286/0.001286, allocations: 202 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.391/1.391, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.221/0.221, allocations: 46.09 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001561/0.001561, allocations: 75.88 kB / 480.8 MB, free: 4.555 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3589/0.3605, allocations: 62.43 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion): time 0.01251/0.3731, allocations: 11.72 MB / 0.542 GB, free: 4.219 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009134/0.3823, allocations: 3.939 MB / 0.5458 GB, free: 1.191 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002348/0.3847, allocations: 60.94 kB / 0.5459 GB, free: 1.184 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002675/0.3874, allocations: 1.182 MB / 0.547 GB, free: 380 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004645/0.3921, allocations: 1.765 MB / 0.5487 GB, free: 15.06 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001317/0.3934, allocations: 495 kB / 0.5492 GB, free: 14.58 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005203/0.3986, allocations: 4.066 MB / 0.5532 GB, free: 10.5 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002435/0.4011, allocations: 1.779 MB / 0.5549 GB, free: 8.699 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001752/0.4028, allocations: 1.175 MB / 0.5561 GB, free: 7.52 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002048/0.4049, allocations: 1.651 MB / 0.5577 GB, free: 5.863 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004957/0.4054, allocations: 220 kB / 0.5579 GB, free: 5.648 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002069/0.4075, allocations: 1.073 MB / 0.5589 GB, free: 4.574 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001429/0.4089, allocations: 1.585 MB / 0.5605 GB, free: 2.984 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001769/0.4107, allocations: 1.836 MB / 0.5623 GB, free: 1.137 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007135/0.4178, allocations: 6.13 MB / 0.5683 GB, free: 10.98 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/0.4179, allocations: 0 / 0.5683 GB, free: 10.98 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.4179, allocations: 0 / 0.5683 GB, free: 10.98 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001687/0.4181, allocations: 0 / 0.5683 GB, free: 10.98 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.008326/0.4264, allocations: 4.241 MB / 0.5724 GB, free: 6.664 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.117e-05/0.4265, allocations: 12.03 kB / 0.5724 GB, free: 6.652 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008965/0.4274, allocations: 0.6876 MB / 0.5731 GB, free: 5.953 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01069/0.4381, allocations: 3.227 MB / 0.5762 GB, free: 2.719 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005087/0.4432, allocations: 2.479 MB / 0.5787 GB, free: 200 kB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001583/0.4434, allocations: 184.6 kB / 0.5788 GB, free: 12 kB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001123/0.4445, allocations: 335.5 kB / 0.5792 GB, free: 15.68 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01505/0.4596, allocations: 10.29 MB / 0.5892 GB, free: 4.941 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-05/0.4597, allocations: 27.77 kB / 0.5892 GB, free: 4.914 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003562/0.4601, allocations: 115.8 kB / 0.5893 GB, free: 4.801 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003429/0.4635, allocations: 2.436 MB / 0.5917 GB, free: 2.359 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01715/0.4807, allocations: 9.843 MB / 0.6013 GB, free: 8.5 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0517/0.5324, allocations: 34.45 MB / 0.635 GB, free: 5.203 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007585/0.54, allocations: 4.308 MB / 0.6392 GB, free: 0.668 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002992/0.543, allocations: 2.158 MB / 0.6413 GB, free: 14.51 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0012/0.5443, allocations: 1.315 MB / 0.6426 GB, free: 12.97 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.807e-05/0.5443, allocations: 52.56 kB / 0.6426 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=236): time 5.46e-06/0.5444, allocations: 7.938 kB / 0.6426 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of matching and sorting (n=252): time 0.0393/0.5837, allocations: 16.8 MB / 0.659 GB, free: 12 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001308/0.585, allocations: 1.619 MB / 0.6606 GB, free: 10.21 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004032/0.5891, allocations: 2.697 MB / 0.6633 GB, free: 7.5 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0004285/0.5895, allocations: 57.7 kB / 0.6633 GB, free: 7.438 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.001749/0.5913, allocations: 2.722 MB / 0.666 GB, free: 4.688 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001266/0.5926, allocations: 0.961 MB / 0.6669 GB, free: 3.719 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002247/0.5948, allocations: 1.1 MB / 0.668 GB, free: 2.609 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 8.322e-05/0.5949, allocations: 301.1 kB / 0.6683 GB, free: 2.312 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003524/0.5985, allocations: 2.392 MB / 0.6706 GB, free: 15.91 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005314/0.6038, allocations: 5.314 MB / 0.6758 GB, free: 9.168 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009973/0.6138, allocations: 8.375 MB / 0.684 GB, free: 15.37 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000115/0.6139, allocations: 32 kB / 0.684 GB, free: 15.34 MB / 0.545 GB Notification: Performance of matching and sorting (n=726) (initialization): time 0.02233/0.6363, allocations: 9.354 MB / 0.6931 GB, free: 5.957 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001257/0.6364, allocations: 48 kB / 0.6932 GB, free: 5.91 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01279/0.6492, allocations: 4.561 MB / 0.6976 GB, free: 1.336 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0102/0.6595, allocations: 2.102 MB / 0.6997 GB, free: 15.22 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004243/0.6638, allocations: 1.24 MB / 0.7009 GB, free: 13.98 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007397/0.6712, allocations: 5.306 MB / 0.7061 GB, free: 8.387 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004083/0.6753, allocations: 379.6 kB / 0.7065 GB, free: 8.016 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00117/0.6765, allocations: 320 kB / 0.7068 GB, free: 7.703 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.004793/0.6813, allocations: 2.032 MB / 0.7087 GB, free: 5.656 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007087/0.682, allocations: 286.1 kB / 0.709 GB, free: 5.375 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01041/0.6925, allocations: 5.318 MB / 0.7142 GB, free: 16 kB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009018/0.7015, allocations: 4.601 MB / 0.7187 GB, free: 11.39 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.749e-05/0.7016, allocations: 8 kB / 0.7187 GB, free: 11.39 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.585e-05/0.7016, allocations: 11.95 kB / 0.7187 GB, free: 11.38 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3267/1.028, allocations: 14.28 MB / 0.7327 GB, free: 176.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-05/1.028, allocations: 15.75 kB / 0.7327 GB, free: 176.3 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001603/1.03, allocations: 403.5 kB / 0.7331 GB, free: 176.3 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004099/1.034, allocations: 1.246 MB / 0.7343 GB, free: 176.2 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003465/1.034, allocations: 60.56 kB / 0.7343 GB, free: 176.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004284/1.039, allocations: 4.74 MB / 0.739 GB, free: 173.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008503/1.04, allocations: 1.558 MB / 0.7405 GB, free: 171.8 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01283/1.053, allocations: 8.013 MB / 0.7483 GB, free: 169 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006558/1.053, allocations: 341.3 kB / 0.7486 GB, free: 168.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003767/1.054, allocations: 60.45 kB / 0.7487 GB, free: 168.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00127/1.055, allocations: 194.6 kB / 0.7489 GB, free: 168.8 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003593/1.055, allocations: 165.2 kB / 0.749 GB, free: 168.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001811/1.055, allocations: 73.88 kB / 0.7491 GB, free: 168.8 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001884/1.057, allocations: 1.652 MB / 0.7507 GB, free: 168.2 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.6e-07/1.057, allocations: 0 / 0.7507 GB, free: 168.2 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003642/1.061, allocations: 1.01 MB / 0.7517 GB, free: 168.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.009987/1.071, allocations: 8.567 MB / 0.7601 GB, free: 163.8 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00825/1.079, allocations: 6.402 MB / 0.7663 GB, free: 157.4 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.116e-05/1.079, allocations: 4 kB / 0.7663 GB, free: 157.4 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.00364/1.083, allocations: 2.853 MB / 0.7691 GB, free: 154.5 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001998/1.085, allocations: 387 kB / 0.7695 GB, free: 154.2 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0582/1.143, allocations: 44.47 MB / 0.8129 GB, free: 105.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002716/1.146, allocations: 3.199 MB / 0.816 GB, free: 102.1 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003433/1.149, allocations: 2.044 MB / 0.818 GB, free: 100 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001828/1.151, allocations: 1.698 MB / 0.8197 GB, free: 98.33 MB / 0.5762 GB Notification: Performance of SimCode: time 8.12e-07/1.151, allocations: 4 kB / 0.8197 GB, free: 98.33 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09082/1.242, allocations: 60.48 MB / 0.8788 GB, free: 38.13 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.65/20.9, allocations: 7.797 kB / 0.8788 GB, free: 38.12 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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotion.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion_res.csv","/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