Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotionScalarInit.angle_1|freeMotionScalarInit.angle_2|freeMotionScalarInit.angle_3|freeMotionScalarInit.r_rel_a_1|freeMotionScalarInit.r_rel_a_2|freeMotionScalarInit.r_rel_a_3|freeMotionScalarInit.v_rel_a_1|freeMotionScalarInit.v_rel_a_2|freeMotionScalarInit.v_rel_a_3|freeMotionScalarInit.w_rel_b_1|freeMotionScalarInit.w_rel_b_2|freeMotionScalarInit.w_rel_b_3",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2") translateModel(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotionScalarInit.angle_1|freeMotionScalarInit.angle_2|freeMotionScalarInit.angle_3|freeMotionScalarInit.r_rel_a_1|freeMotionScalarInit.r_rel_a_2|freeMotionScalarInit.r_rel_a_3|freeMotionScalarInit.v_rel_a_1|freeMotionScalarInit.v_rel_a_2|freeMotionScalarInit.v_rel_a_3|freeMotionScalarInit.w_rel_b_1|freeMotionScalarInit.w_rel_b_2|freeMotionScalarInit.w_rel_b_3",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001111/0.001111, allocations: 177 kB / 17.06 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.291/1.291, allocations: 223.2 MB / 241 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008303/0.0008302, allocations: 92.92 kB / 292.2 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3396/0.3396, allocations: 44.22 MB / 387.5 MB, free: 38.83 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004032/0.0004032, allocations: 8 kB / 459.9 MB, free: 1.543 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3282/0.3286, allocations: 61.9 MB / 0.5096 GB, free: 37.91 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1341/0.4628, allocations: 105.4 MB / 0.6125 GB, free: 5.695 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002237/0.4631, allocations: 87.94 kB / 0.6126 GB, free: 5.609 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4486/0.9117, allocations: 90.65 MB / 0.7011 GB, free: 96.48 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.9118, allocations: 5.719 kB / 0.7011 GB, free: 96.48 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001819/0.9119, allocations: 76.41 kB / 0.7012 GB, free: 96.48 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1672 * Number of variables: 1672 Notification: Performance of Generate backend data structure: time 0.01578/0.9277, allocations: 4.355 MB / 0.7055 GB, free: 94.64 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/0.9278, allocations: 9.578 kB / 0.7055 GB, free: 94.64 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01592/0.9437, allocations: 3.552 MB / 0.7089 GB, free: 94.36 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.015/0.9588, allocations: 4.539 MB / 0.7134 GB, free: 93.78 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005654/0.9594, allocations: 327.4 kB / 0.7137 GB, free: 93.77 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002928/0.9623, allocations: 434.5 kB / 0.7141 GB, free: 93.76 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03058/0.9929, allocations: 11.21 MB / 0.725 GB, free: 91.17 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003619/0.9933, allocations: 30 kB / 0.7251 GB, free: 91.16 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002531/0.9959, allocations: 199.3 kB / 0.7253 GB, free: 91.04 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001723/0.9976, allocations: 1.211 MB / 0.7264 GB, free: 90.82 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02063/1.018, allocations: 10.81 MB / 0.737 GB, free: 87.52 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05815/1.076, allocations: 37.18 MB / 0.7733 GB, free: 65.27 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008299/1.085, allocations: 4.553 MB / 0.7778 GB, free: 61.89 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001035/1.086, allocations: 1.325 MB / 0.779 GB, free: 60.45 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.016e-05/1.086, allocations: 52.56 kB / 0.7791 GB, free: 60.39 MB / 490.7 MB Notification: Performance of pre-optimization done (n=235): time 6.192e-06/1.086, allocations: 0 / 0.7791 GB, free: 60.39 MB / 490.7 MB Notification: Performance of matching and sorting (n=247): time 0.03707/1.123, allocations: 14.08 MB / 0.7928 GB, free: 48.59 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.71e-05/1.123, allocations: 77.34 kB / 0.7929 GB, free: 48.5 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004766/1.128, allocations: 2.46 MB / 0.7953 GB, free: 46.41 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004283/1.128, allocations: 57.7 kB / 0.7954 GB, free: 46.35 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001533/1.13, allocations: 2.886 MB / 0.7982 GB, free: 43.67 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001011/1.131, allocations: 0.9081 MB / 0.7991 GB, free: 42.77 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005694/1.132, allocations: 112 kB / 0.7992 GB, free: 42.66 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000429/1.132, allocations: 0.5457 MB / 0.7997 GB, free: 42.11 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003345/1.135, allocations: 2.225 MB / 0.8019 GB, free: 39.88 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005243/1.141, allocations: 5.286 MB / 0.8071 GB, free: 33.07 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004693/1.145, allocations: 3.431 MB / 0.8104 GB, free: 29.64 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001016/1.145, allocations: 35.95 kB / 0.8104 GB, free: 29.61 MB / 490.7 MB Notification: Performance of matching and sorting (n=744) (initialization): time 0.01374/1.159, allocations: 8.208 MB / 0.8185 GB, free: 21.39 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.266e-05/1.159, allocations: 55.94 kB / 0.8185 GB, free: 21.34 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001454/1.159, allocations: 104 kB / 0.8186 GB, free: 21.23 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003208/1.163, allocations: 1.033 MB / 0.8196 GB, free: 20.19 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004138/1.167, allocations: 1.267 MB / 0.8209 GB, free: 18.92 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002363/1.169, allocations: 2.502 MB / 0.8233 GB, free: 16.29 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003933/1.173, allocations: 307.7 kB / 0.8236 GB, free: 15.99 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001049/1.174, allocations: 320 kB / 0.8239 GB, free: 15.68 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 490 * Number of states: 0 () * Number of discrete variables: 26 (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],freeMotionScalarInit.arrow.arrow.arrowLine.twoHeadedArrow,freeMotionScalarInit.arrow.headAtOrigin,freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.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 (691): * Single equations (assignments): 682 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * 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.004879/1.179, allocations: 2.22 MB / 0.8261 GB, free: 13.45 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006519/1.18, allocations: 276.4 kB / 0.8263 GB, free: 13.18 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008372/1.188, allocations: 4.775 MB / 0.831 GB, free: 8.367 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.899e-05/1.188, allocations: 54.73 kB / 0.831 GB, free: 8.316 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.746e-05/1.188, allocations: 0 / 0.831 GB, free: 8.316 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.829e-05/1.188, allocations: 11.97 kB / 0.8311 GB, free: 8.305 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02375/1.212, allocations: 11.25 MB / 0.842 GB, free: 12.91 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.887e-05/1.212, allocations: 11.81 kB / 0.8421 GB, free: 12.91 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001703/1.214, allocations: 400.2 kB / 0.8424 GB, free: 12.52 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002656/1.217, allocations: 0.6148 MB / 0.843 GB, free: 11.89 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003161/1.217, allocations: 51.98 kB / 0.8431 GB, free: 11.84 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00258/1.219, allocations: 2.092 MB / 0.8451 GB, free: 9.617 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-05/1.22, allocations: 19.09 kB / 0.8451 GB, free: 9.602 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01301/1.233, allocations: 7.564 MB / 0.8525 GB, free: 1.672 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008824/1.233, allocations: 321.6 kB / 0.8528 GB, free: 1.336 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006099/1.234, allocations: 47.94 kB / 0.8529 GB, free: 1.289 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001529/1.236, allocations: 127.8 kB / 0.853 GB, free: 1.164 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003397/1.236, allocations: 148.9 kB / 0.8532 GB, free: 1.02 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001832/1.236, allocations: 78.56 kB / 0.8532 GB, free: 0.9453 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003145/1.239, allocations: 1.673 MB / 0.8549 GB, free: 15.27 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.7e-07/1.239, allocations: 0 / 0.8549 GB, free: 15.27 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00509/1.244, allocations: 0.9726 MB / 0.8558 GB, free: 14.29 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 39 * Number of states: 12 (freeMotionScalarInit.r_rel_a_1,freeMotionScalarInit.r_rel_a_2,freeMotionScalarInit.r_rel_a_3,freeMotionScalarInit.v_rel_a_1,freeMotionScalarInit.v_rel_a_2,freeMotionScalarInit.v_rel_a_3,freeMotionScalarInit.angle_1,freeMotionScalarInit.angle_2,freeMotionScalarInit.angle_3,freeMotionScalarInit.w_rel_b_1,freeMotionScalarInit.w_rel_b_2,freeMotionScalarInit.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 (197): * Single equations (assignments): 188 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * 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.0006692/1.245, allocations: 202.5 kB / 0.856 GB, free: 14.09 MB / 0.5105 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Mechanics/MultiBody/Joints/FreeMotionScalarInit.mo:77:3-79:159:writable] Warning: Variable $DER.freeMotionScalarInit.angle_2 has attribute stateSelect=StateSelect.always, but can't be selected as a state. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Mechanics/MultiBody/Joints/FreeMotionScalarInit.mo:74:3-76:159:writable] Warning: Variable $DER.freeMotionScalarInit.angle_1 has attribute stateSelect=StateSelect.always, but can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.01134/1.256, allocations: 5.822 MB / 0.8617 GB, free: 8.234 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.391e-05/1.257, allocations: 4 kB / 0.8617 GB, free: 8.23 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004536/1.261, allocations: 2.32 MB / 0.864 GB, free: 5.855 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002582/1.264, allocations: 400.2 kB / 0.8643 GB, free: 5.48 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02227/1.286, allocations: 12.6 MB / 0.8766 GB, free: 8.777 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005542/1.292, allocations: 3.531 MB / 0.8801 GB, free: 5.207 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.005048/1.297, allocations: 2.028 MB / 0.8821 GB, free: 3.176 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008499/1.298, allocations: 223.4 kB / 0.8823 GB, free: 2.957 MB / 0.5261 GB Notification: Performance of SimCode: time 9.42e-07/1.298, allocations: 0 / 0.8823 GB, free: 2.957 MB / 0.5261 GB Notification: Performance of Templates: time 0.2803/1.578, allocations: 30.13 MB / 0.9117 GB, free: 125.9 MB / 0.5261 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotionScalarInit2/FreeMotionScalarInit2.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches