Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.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: translateModel(ModelicaTest.MultiBody.Joints.FreeMotion2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.r_rel_a.1.|freeMotion.v_rel_a.1.|prismatic1.s|prismatic1.v|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b|universal1.phi_a|universal1.phi_b|universal1.w_a|universal1.w_b",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2") translateModel(ModelicaTest.MultiBody.Joints.FreeMotion2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.r_rel_a.1.|freeMotion.v_rel_a.1.|prismatic1.s|prismatic1.v|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b|universal1.phi_a|universal1.phi_b|universal1.w_a|universal1.w_b",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001131/0.001131, allocations: 106.3 kB / 17.98 MB, free: 5.402 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.001173/0.001173, allocations: 193.3 kB / 18.91 MB, free: 4.477 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.35/1.35, allocations: 222.9 MB / 242.6 MB, free: 13.74 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.2119/0.2119, allocations: 44.18 MB / 336.9 MB, free: 2.73 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001352, allocations: 60.16 kB / 408.6 MB, free: 27.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1311/0.1325, allocations: 60.83 MB / 469.4 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.3498/0.4823, allocations: 74.23 MB / 0.5309 GB, free: 9.684 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03845/0.5208, allocations: 14.82 MB / 0.5453 GB, free: 1.754 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02134/0.5422, allocations: 328.7 kB / 0.5457 GB, free: 1.703 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008432/0.5507, allocations: 4.013 MB / 0.5496 GB, free: 15.3 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009386/0.5602, allocations: 2.197 MB / 0.5517 GB, free: 13.75 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003368/0.5636, allocations: 1.019 MB / 0.5527 GB, free: 13.04 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01176/0.5753, allocations: 7.425 MB / 0.56 GB, free: 7.895 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009559/0.5849, allocations: 5.409 MB / 0.5653 GB, free: 2.441 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005029/0.59, allocations: 2.293 MB / 0.5675 GB, free: 144 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005812/0.5959, allocations: 3.412 MB / 0.5708 GB, free: 12.72 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00187/0.5978, allocations: 0.4922 MB / 0.5713 GB, free: 12.23 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003962/0.6018, allocations: 1.385 MB / 0.5727 GB, free: 10.84 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004186/0.606, allocations: 2.821 MB / 0.5754 GB, free: 8.012 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006768/0.6128, allocations: 3.209 MB / 0.5785 GB, free: 4.785 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01088/0.6237, allocations: 7.937 MB / 0.5863 GB, free: 12.83 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.765e-06/0.6237, allocations: 0 / 0.5863 GB, free: 12.83 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.013e-06/0.6237, allocations: 0 / 0.5863 GB, free: 12.83 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004315/0.6242, allocations: 4 kB / 0.5863 GB, free: 12.83 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: 1982 * Number of variables: 1982 Notification: Performance of Generate backend data structure: time 0.02107/0.6453, allocations: 6.906 MB / 0.593 GB, free: 5.84 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.769e-05/0.6453, allocations: 12.03 kB / 0.5931 GB, free: 5.828 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02728/0.6726, allocations: 3.335 MB / 0.5963 GB, free: 2.48 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01141/0.6841, allocations: 4.419 MB / 0.6006 GB, free: 13.97 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003664/0.6845, allocations: 329 kB / 0.6009 GB, free: 13.65 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002008/0.6865, allocations: 455.3 kB / 0.6014 GB, free: 13.21 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02836/0.7149, allocations: 13.27 MB / 0.6143 GB, free: 15.06 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003738/0.7153, allocations: 67.42 kB / 0.6144 GB, free: 15 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001776/0.7171, allocations: 211.8 kB / 0.6146 GB, free: 14.79 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005051/0.7222, allocations: 2.593 MB / 0.6171 GB, free: 12.2 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02504/0.7472, allocations: 11.55 MB / 0.6284 GB, free: 0.625 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07539/0.8226, allocations: 53.44 MB / 0.6806 GB, free: 9.652 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01397/0.8367, allocations: 5.66 MB / 0.6861 GB, free: 3.852 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004673/0.8414, allocations: 3.509 MB / 0.6896 GB, free: 340 kB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008399/0.8422, allocations: 0.6877 MB / 0.6902 GB, free: 15.53 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.003e-05/0.8423, allocations: 60.56 kB / 0.6903 GB, free: 15.46 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=245): time 5.32e-06/0.8423, allocations: 0 / 0.6903 GB, free: 15.46 MB / 0.5294 GB Notification: Performance of matching and sorting (n=315): time 0.3403/1.183, allocations: 36.54 MB / 0.726 GB, free: 182.1 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000144/1.183, allocations: 260.9 kB / 0.7262 GB, free: 181.9 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009413/1.192, allocations: 5.229 MB / 0.7313 GB, free: 180 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001053/1.193, allocations: 76.36 kB / 0.7314 GB, free: 179.9 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002769/1.196, allocations: 3.91 MB / 0.7352 GB, free: 176.9 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001999/1.198, allocations: 1.177 MB / 0.7364 GB, free: 176.1 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002666/1.201, allocations: 1.599 MB / 0.7379 GB, free: 175.3 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 6.233e-05/1.201, allocations: 305.1 kB / 0.7382 GB, free: 175 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004981/1.206, allocations: 3.63 MB / 0.7418 GB, free: 173.7 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007131/1.213, allocations: 7.834 MB / 0.7494 GB, free: 166.7 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01267/1.226, allocations: 12.27 MB / 0.7614 GB, free: 153.1 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001464/1.226, allocations: 40 kB / 0.7614 GB, free: 153 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1027) (initialization): time 0.02846/1.254, allocations: 13.76 MB / 0.7749 GB, free: 139.2 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002668/1.255, allocations: 64.22 kB / 0.7749 GB, free: 139.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003379/1.255, allocations: 148 kB / 0.7751 GB, free: 139 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006904/1.262, allocations: 2.769 MB / 0.7778 GB, free: 136.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006385/1.268, allocations: 1.786 MB / 0.7795 GB, free: 134.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02012/1.289, allocations: 17.83 MB / 0.7969 GB, free: 116.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008426/1.297, allocations: 471.2 kB / 0.7974 GB, free: 115.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002203/1.299, allocations: 455.9 kB / 0.7978 GB, free: 115.4 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 659 * Number of states: 0 () * Number of discrete variables: 44 (freeMotion.arrow.arrowLine.twoHeadedArrow,freeMotion.arrow.headAtOrigin,universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (951): * Single equations (assignments): 946 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,24,100.0%), (3,24,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006796/1.306, allocations: 2.775 MB / 0.8005 GB, free: 112.7 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00204/1.308, allocations: 481.8 kB / 0.801 GB, free: 112.2 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01456/1.323, allocations: 8.051 MB / 0.8088 GB, free: 104.1 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.124e-05/1.323, allocations: 37.44 kB / 0.8089 GB, free: 104 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-05/1.323, allocations: 8 kB / 0.8089 GB, free: 104 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.116e-05/1.323, allocations: 15.95 kB / 0.8089 GB, free: 104 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03397/1.357, allocations: 17.15 MB / 0.8257 GB, free: 86.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.647e-05/1.357, allocations: 11.98 kB / 0.8257 GB, free: 86.79 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002376/1.359, allocations: 0.4953 MB / 0.8261 GB, free: 86.29 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005534/1.365, allocations: 2.483 MB / 0.8286 GB, free: 83.8 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005639/1.366, allocations: 63.98 kB / 0.8286 GB, free: 83.73 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01649/1.382, allocations: 15.88 MB / 0.8441 GB, free: 67.59 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.183e-06/1.382, allocations: 8 kB / 0.8441 GB, free: 67.59 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01821/1.4, allocations: 12.59 MB / 0.8564 GB, free: 54.81 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002047/1.402, allocations: 0.5378 MB / 0.857 GB, free: 54.25 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001738/1.404, allocations: 63.92 kB / 0.857 GB, free: 54.19 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003419/1.408, allocations: 227.7 kB / 0.8572 GB, free: 53.96 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008517/1.408, allocations: 205.5 kB / 0.8574 GB, free: 53.76 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003998/1.409, allocations: 87.94 kB / 0.8575 GB, free: 53.68 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006361/1.415, allocations: 3.297 MB / 0.8607 GB, free: 50.39 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.6e-07/1.415, allocations: 0 / 0.8607 GB, free: 50.39 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009244/1.425, allocations: 1.55 MB / 0.8623 GB, free: 48.85 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 12 (freeMotion.r_rel_a[1],freeMotion.v_rel_a[1],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b,prismatic1.s,prismatic1.v,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.w_b) * 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 (253): * Single equations (assignments): 248 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,21,100.0%), (3,21,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001117/1.426, allocations: 209.8 kB / 0.8625 GB, free: 48.64 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01962/1.445, allocations: 12.39 MB / 0.8746 GB, free: 36.27 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.165e-05/1.445, allocations: 0 / 0.8746 GB, free: 36.27 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005472/1.451, allocations: 3.565 MB / 0.878 GB, free: 32.69 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006265/1.457, allocations: 0.6749 MB / 0.8787 GB, free: 32.04 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02871/1.486, allocations: 18.1 MB / 0.8964 GB, free: 13.84 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2406/1.726, allocations: 4.299 MB / 0.9006 GB, free: 172.4 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001959/1.728, allocations: 400.8 kB / 0.9009 GB, free: 172.4 MB / 0.5294 GB Notification: Performance of SimCode: time 7.31e-07/1.728, allocations: 0 / 0.9009 GB, free: 172.4 MB / 0.5294 GB Notification: Performance of Templates: time 0.1563/1.885, allocations: 136.1 MB / 1.034 GB, free: 61.59 MB / 0.5294 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotion2/FreeMotion2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches