Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.FreeMotion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.Q.1.|freeMotion.Q.2.|freeMotion.Q.3.|freeMotion.Q.4.|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.",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion") translateModel(ModelicaTest.MultiBody.Joints.FreeMotion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.Q.1.|freeMotion.Q.2.|freeMotion.Q.3.|freeMotion.Q.4.|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.",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008936/0.0008938, allocations: 95.89 kB / 15.68 MB, free: 488 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009605/0.0009608, allocations: 177.5 kB / 16.57 MB, free: 6.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.36/1.36, allocations: 205.4 MB / 222.7 MB, free: 5.664 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3072/0.3072, allocations: 43.55 MB / 314.5 MB, free: 8.797 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004976/0.0004978, allocations: 12 kB / 383.9 MB, free: 8.043 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.12/0.1205, allocations: 58.85 MB / 442.7 MB, free: 13.09 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion): time 0.1983/0.3189, allocations: 25.31 MB / 468.1 MB, free: 35.59 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01149/0.3304, allocations: 6.714 MB / 474.8 MB, free: 32.32 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003432/0.3339, allocations: 123.8 kB / 474.9 MB, free: 32.3 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002495/0.3364, allocations: 1.294 MB / 476.2 MB, free: 31.92 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008613/0.345, allocations: 3.943 MB / 480.1 MB, free: 30.28 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001466/0.3465, allocations: 398.7 kB / 480.5 MB, free: 30.14 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003487/0.35, allocations: 2.212 MB / 482.7 MB, free: 29.25 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002839/0.3529, allocations: 2.199 MB / 484.9 MB, free: 28.34 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001379/0.3543, allocations: 0.8973 MB / 485.8 MB, free: 28.05 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001682/0.356, allocations: 1.241 MB / 487.1 MB, free: 27.66 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005651/0.3566, allocations: 132.2 kB / 487.2 MB, free: 27.66 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001665/0.3582, allocations: 0.8869 MB / 488.1 MB, free: 27.48 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001454/0.3597, allocations: 1.455 MB / 489.5 MB, free: 27.03 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009061/0.3606, allocations: 0.7772 MB / 490.3 MB, free: 26.46 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006691/0.3673, allocations: 4.911 MB / 495.2 MB, free: 25.47 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.3674, allocations: 0 / 495.2 MB, free: 25.47 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.3674, allocations: 1.094 kB / 495.2 MB, free: 25.47 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003121/0.3677, allocations: 0 / 495.2 MB, free: 25.47 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: 1560 * Number of variables: 1560 Notification: Performance of Generate backend data structure: time 0.009948/0.3777, allocations: 3.693 MB / 498.9 MB, free: 23.37 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.898e-05/0.3777, allocations: 9.719 kB / 498.9 MB, free: 23.37 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01381/0.3915, allocations: 3.866 MB / 0.491 GB, free: 22.16 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006764/0.3983, allocations: 2.418 MB / 0.4934 GB, free: 20.75 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002555/0.3986, allocations: 190.1 kB / 0.4936 GB, free: 20.66 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002051/0.4007, allocations: 346 kB / 0.4939 GB, free: 20.52 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01899/0.4197, allocations: 10.83 MB / 0.5045 GB, free: 14.49 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.193e-05/0.4198, allocations: 31.09 kB / 0.5045 GB, free: 14.47 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004511/0.4203, allocations: 122.3 kB / 0.5046 GB, free: 14.38 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003579/0.4239, allocations: 2.557 MB / 0.5071 GB, free: 13.37 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01746/0.4414, allocations: 10.33 MB / 0.5172 GB, free: 3.215 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05887/0.5003, allocations: 35.99 MB / 0.5523 GB, free: 14.38 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00862/0.5089, allocations: 4.433 MB / 0.5567 GB, free: 9.73 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001235/0.5102, allocations: 1.319 MB / 0.558 GB, free: 8.191 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.401e-05/0.5103, allocations: 56.56 kB / 0.558 GB, free: 8.129 MB / 430.1 MB Notification: Performance of pre-optimization done (n=245): time 5.64e-06/0.5103, allocations: 0 / 0.558 GB, free: 8.129 MB / 430.1 MB Notification: Performance of matching and sorting (n=261): time 0.04005/0.5503, allocations: 17.63 MB / 0.5752 GB, free: 6.23 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001299/0.5517, allocations: 1.547 MB / 0.5767 GB, free: 4.523 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004432/0.5561, allocations: 3.002 MB / 0.5797 GB, free: 1.508 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006756/0.5568, allocations: 65.69 kB / 0.5797 GB, free: 1.438 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002186/0.559, allocations: 2.74 MB / 0.5824 GB, free: 14.66 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001331/0.5604, allocations: 0.9558 MB / 0.5833 GB, free: 13.69 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003531/0.5608, allocations: 112 kB / 0.5834 GB, free: 13.58 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0004031/0.5612, allocations: 0.5539 MB / 0.584 GB, free: 13.02 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003656/0.5648, allocations: 2.459 MB / 0.5864 GB, free: 10.55 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006341/0.5712, allocations: 5.485 MB / 0.5917 GB, free: 3.578 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005562/0.5768, allocations: 3.673 MB / 0.5953 GB, free: 15.9 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.292e-05/0.5769, allocations: 28 kB / 0.5954 GB, free: 15.88 MB / 478.1 MB Notification: Performance of matching and sorting (n=754) (initialization): time 0.02433/0.6012, allocations: 9.821 MB / 0.6049 GB, free: 6.027 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.743e-05/0.6014, allocations: 59.89 kB / 0.605 GB, free: 5.969 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01465/0.616, allocations: 4.906 MB / 0.6098 GB, free: 1.047 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01138/0.6274, allocations: 2.39 MB / 0.6121 GB, free: 14.64 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004745/0.6322, allocations: 1.298 MB / 0.6134 GB, free: 13.34 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008501/0.6408, allocations: 6.153 MB / 0.6194 GB, free: 6.926 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004798/0.6456, allocations: 399.6 kB / 0.6198 GB, free: 6.535 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008708/0.6465, allocations: 328.5 kB / 0.6201 GB, free: 6.215 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 481 * Number of states: 0 () * Number of discrete variables: 24 (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 (692): * Single equations (assignments): 680 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00474/0.6512, allocations: 2.11 MB / 0.6222 GB, free: 4.09 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000558/0.6518, allocations: 292.2 kB / 0.6224 GB, free: 3.801 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2417/0.8935, allocations: 5.427 MB / 0.6277 GB, free: 139.8 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009238/0.9028, allocations: 4.684 MB / 0.6323 GB, free: 139.6 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.998e-05/0.9029, allocations: 2.906 kB / 0.6323 GB, free: 139.6 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.562e-05/0.903, allocations: 10.17 kB / 0.6323 GB, free: 139.6 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02765/0.9306, allocations: 14.74 MB / 0.6467 GB, free: 136.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.336e-05/0.9307, allocations: 12.34 kB / 0.6467 GB, free: 136.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001957/0.9327, allocations: 426.8 kB / 0.6471 GB, free: 136.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004749/0.9375, allocations: 1.237 MB / 0.6484 GB, free: 135.9 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005241/0.938, allocations: 69.36 kB / 0.6484 GB, free: 135.9 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005082/0.9431, allocations: 4.52 MB / 0.6528 GB, free: 132.9 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008832/0.944, allocations: 1.482 MB / 0.6543 GB, free: 131.5 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01401/0.958, allocations: 8.97 MB / 0.663 GB, free: 127.5 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009591/0.959, allocations: 354.5 kB / 0.6634 GB, free: 127.4 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005468/0.9596, allocations: 54.69 kB / 0.6634 GB, free: 127.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001592/0.9612, allocations: 200.6 kB / 0.6636 GB, free: 127.4 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003501/0.9616, allocations: 172.6 kB / 0.6638 GB, free: 127.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001801/0.9617, allocations: 82.56 kB / 0.6639 GB, free: 127.3 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002773/0.9645, allocations: 1.872 MB / 0.6657 GB, free: 126.7 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.9645, allocations: 3.625 kB / 0.6657 GB, free: 126.7 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006088/0.9706, allocations: 1.104 MB / 0.6668 GB, free: 126.6 MB / 494.1 MB 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 (202): * Single equations (assignments): 192 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008209/0.9715, allocations: 209.9 kB / 0.667 GB, free: 126.4 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01048/0.982, allocations: 6.506 MB / 0.6733 GB, free: 124.1 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.387e-05/0.982, allocations: 3.906 kB / 0.6733 GB, free: 124.1 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005041/0.9871, allocations: 2.893 MB / 0.6762 GB, free: 123 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002607/0.9897, allocations: 355.8 kB / 0.6765 GB, free: 122.9 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02094/1.011, allocations: 12.55 MB / 0.6887 GB, free: 113.7 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004523/1.015, allocations: 3.398 MB / 0.6921 GB, free: 110.3 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004758/1.02, allocations: 2.113 MB / 0.6941 GB, free: 108.2 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007554/1.021, allocations: 235 kB / 0.6944 GB, free: 108 MB / 494.1 MB Notification: Performance of SimCode: time 1.022e-06/1.021, allocations: 0 / 0.6944 GB, free: 108 MB / 494.1 MB Notification: Performance of Templates: time 0.05333/1.074, allocations: 35.77 MB / 0.7293 GB, free: 72.29 MB / 494.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion.makefile Environment - environmentSimulation: (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/FreeMotion/FreeMotion.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches