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.001027/0.001027, allocations: 104.7 kB / 17.63 MB, free: 5.344 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.001307/0.001307, allocations: 192 kB / 18.56 MB, free: 4.434 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.359/1.359, allocations: 222.9 MB / 242.2 MB, free: 15.18 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.2445/0.2445, allocations: 44.18 MB / 336.6 MB, free: 2.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001402/0.001402, allocations: 64.84 kB / 408.4 MB, free: 27.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1489/0.1503, allocations: 60.82 MB / 469.3 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.02007/0.1705, allocations: 14.78 MB / 484 MB, free: 15.53 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01144/0.1819, allocations: 5.003 MB / 489 MB, free: 10.51 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003165/0.1852, allocations: 103.6 kB / 489.1 MB, free: 10.41 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007665/0.1928, allocations: 4.162 MB / 493.3 MB, free: 6.234 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006853/0.1998, allocations: 2.357 MB / 495.7 MB, free: 3.867 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002372/0.2022, allocations: 1.088 MB / 496.7 MB, free: 2.777 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01013/0.2123, allocations: 7.06 MB / 0.492 GB, free: 11.7 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006523/0.2189, allocations: 5.155 MB / 0.497 GB, free: 6.484 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004525/0.2234, allocations: 2.239 MB / 0.4992 GB, free: 4.238 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004819/0.2283, allocations: 3.08 MB / 0.5022 GB, free: 1.148 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001712/0.23, allocations: 0.4922 MB / 0.5027 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2848/0.5149, allocations: 1.373 MB / 0.504 GB, free: 20.91 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004606/0.5195, allocations: 2.785 MB / 0.5068 GB, free: 20.91 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009562/0.5291, allocations: 3.177 MB / 0.5099 GB, free: 19.92 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01837/0.5475, allocations: 9.658 MB / 0.5193 GB, free: 18.63 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.915e-06/0.5476, allocations: 1.188 kB / 0.5193 GB, free: 18.63 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.5476, allocations: 2.031 kB / 0.5193 GB, free: 18.63 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004736/0.5481, allocations: 0 / 0.5193 GB, free: 18.63 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: 1982 * Number of variables: 1982 Notification: Performance of Generate backend data structure: time 0.02581/0.5739, allocations: 6.911 MB / 0.5261 GB, free: 15.6 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.788e-05/0.5739, allocations: 10.28 kB / 0.5261 GB, free: 15.6 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02878/0.6027, allocations: 3.338 MB / 0.5293 GB, free: 14.53 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01293/0.6157, allocations: 4.425 MB / 0.5336 GB, free: 11.98 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003314/0.6161, allocations: 332.1 kB / 0.534 GB, free: 11.87 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003085/0.6192, allocations: 445.5 kB / 0.5344 GB, free: 11.75 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02558/0.6448, allocations: 13.28 MB / 0.5474 GB, free: 2.867 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002236/0.645, allocations: 64.66 kB / 0.5474 GB, free: 2.828 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007204/0.6457, allocations: 210.8 kB / 0.5476 GB, free: 2.664 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003887/0.6496, allocations: 2.589 MB / 0.5501 GB, free: 116 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02555/0.6752, allocations: 11.55 MB / 0.5614 GB, free: 4.789 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08337/0.7586, allocations: 53.43 MB / 0.6136 GB, free: 14.57 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01501/0.7737, allocations: 5.649 MB / 0.6191 GB, free: 8.789 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005113/0.7788, allocations: 3.516 MB / 0.6226 GB, free: 5.27 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008184/0.7797, allocations: 0.69 MB / 0.6232 GB, free: 4.484 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.834e-05/0.7797, allocations: 60.31 kB / 0.6233 GB, free: 4.422 MB / 462.1 MB Notification: Performance of pre-optimization done (n=245): time 5.36e-06/0.7798, allocations: 0 / 0.6233 GB, free: 4.422 MB / 462.1 MB Notification: Performance of matching and sorting (n=315): time 0.1028/0.8826, allocations: 36.54 MB / 0.659 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001568/0.8827, allocations: 265.3 kB / 0.6592 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009145/0.8919, allocations: 5.225 MB / 0.6643 GB, free: 10.28 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.001274/0.8932, allocations: 77.7 kB / 0.6644 GB, free: 10.2 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.003147/0.8964, allocations: 3.915 MB / 0.6682 GB, free: 6.285 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.002064/0.8984, allocations: 1.173 MB / 0.6694 GB, free: 5.121 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002529/0.901, allocations: 1.602 MB / 0.6709 GB, free: 3.508 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001051/0.9011, allocations: 301.1 kB / 0.6712 GB, free: 3.211 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005257/0.9064, allocations: 3.631 MB / 0.6748 GB, free: 15.57 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008165/0.9145, allocations: 7.827 MB / 0.6824 GB, free: 5.766 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01755/0.9321, allocations: 12.28 MB / 0.6944 GB, free: 8.031 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000154/0.9323, allocations: 40 kB / 0.6944 GB, free: 7.992 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1027) (initialization): time 0.3206/1.253, allocations: 13.76 MB / 0.7079 GB, free: 177.8 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001125/1.253, allocations: 70.86 kB / 0.708 GB, free: 177.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002804/1.253, allocations: 144 kB / 0.7081 GB, free: 177.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008346/1.262, allocations: 2.76 MB / 0.7108 GB, free: 177.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006596/1.268, allocations: 1.784 MB / 0.7125 GB, free: 177.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01913/1.288, allocations: 17.82 MB / 0.7299 GB, free: 170.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007225/1.295, allocations: 470.1 kB / 0.7304 GB, free: 170 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001378/1.296, allocations: 450.6 kB / 0.7308 GB, free: 169.9 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.005412/1.302, allocations: 2.778 MB / 0.7335 GB, free: 168.9 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001168/1.303, allocations: 489.5 kB / 0.734 GB, free: 168.9 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01357/1.316, allocations: 8.045 MB / 0.7418 GB, free: 165.3 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.224e-05/1.317, allocations: 36 kB / 0.7419 GB, free: 165.2 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.159e-05/1.317, allocations: 12 kB / 0.7419 GB, free: 165.2 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.343e-05/1.317, allocations: 20.53 kB / 0.7419 GB, free: 165.2 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02937/1.346, allocations: 17.16 MB / 0.7587 GB, free: 148.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-05/1.346, allocations: 4 kB / 0.7587 GB, free: 148.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002463/1.349, allocations: 0.4993 MB / 0.7592 GB, free: 148.4 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005782/1.354, allocations: 2.49 MB / 0.7616 GB, free: 145.9 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006655/1.355, allocations: 67.98 kB / 0.7617 GB, free: 145.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01547/1.371, allocations: 15.86 MB / 0.7771 GB, free: 129.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.53e-06/1.371, allocations: 7.938 kB / 0.7771 GB, free: 129.8 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01675/1.387, allocations: 12.59 MB / 0.7894 GB, free: 117.3 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001994/1.389, allocations: 0.5348 MB / 0.79 GB, free: 116.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001444/1.391, allocations: 63.98 kB / 0.79 GB, free: 116.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002892/1.394, allocations: 228.4 kB / 0.7902 GB, free: 116.5 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000632/1.394, allocations: 197.5 kB / 0.7904 GB, free: 116.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002275/1.395, allocations: 89.09 kB / 0.7905 GB, free: 116.2 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005537/1.4, allocations: 3.301 MB / 0.7937 GB, free: 113 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.51e-07/1.4, allocations: 0 / 0.7937 GB, free: 113 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01045/1.411, allocations: 1.559 MB / 0.7953 GB, free: 111.4 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.001182/1.412, allocations: 205.2 kB / 0.7955 GB, free: 111.2 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01878/1.431, allocations: 12.39 MB / 0.8076 GB, free: 98.82 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.068e-05/1.431, allocations: 4 kB / 0.8076 GB, free: 98.82 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004568/1.435, allocations: 3.563 MB / 0.811 GB, free: 95.23 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00452/1.44, allocations: 0.685 MB / 0.8117 GB, free: 94.58 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02514/1.465, allocations: 14.79 MB / 0.8262 GB, free: 79.68 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00636/1.471, allocations: 4.324 MB / 0.8304 GB, free: 75.31 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00606/1.477, allocations: 2.468 MB / 0.8328 GB, free: 72.84 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001367/1.479, allocations: 344.7 kB / 0.8331 GB, free: 72.5 MB / 0.5294 GB Notification: Performance of SimCode: time 1.132e-06/1.479, allocations: 0 / 0.8331 GB, free: 72.5 MB / 0.5294 GB Notification: Performance of Templates: time 0.3559/1.835, allocations: 69.32 MB / 0.9008 GB, free: 174.1 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotion2/FreeMotion2.csv","/var/lib/jenkins/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