Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotionScalarInit.angle_1|freeMotionScalarInit.angle_2|freeMotionScalarInit.angle_3|freeMotionScalarInit.derdd.1..u|freeMotionScalarInit.derdd.2..u|freeMotionScalarInit.derdd.3..u|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",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4") translateModel(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotionScalarInit.angle_1|freeMotionScalarInit.angle_2|freeMotionScalarInit.angle_3|freeMotionScalarInit.derdd.1..u|freeMotionScalarInit.derdd.2..u|freeMotionScalarInit.derdd.3..u|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",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001077/0.001077, allocations: 183.1 kB / 13.19 MB, free: 2.129 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.299/1.299, allocations: 205.2 MB / 218.9 MB, free: 9.141 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000753/0.0007531, allocations: 98.52 kB / 267.1 MB, free: 9.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3106/0.3106, allocations: 43.47 MB / 358.6 MB, free: 51.58 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.791e-05/2.793e-05, allocations: 4 kB / 425.3 MB, free: 8.203 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1162, allocations: 58.84 MB / 484.2 MB, free: 13.25 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3679/0.4842, allocations: 109 MB / 0.5793 GB, free: 12.89 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00022/0.4844, allocations: 75.31 kB / 0.5794 GB, free: 12.86 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2384/0.7229, allocations: 99.47 MB / 0.6765 GB, free: 1.98 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.7229, allocations: 0 / 0.6765 GB, free: 1.98 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001623/0.7231, allocations: 92 kB / 0.6766 GB, free: 1.891 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: 1897 * Number of variables: 1897 Notification: Performance of Generate backend data structure: time 0.01551/0.7386, allocations: 4.701 MB / 0.6812 GB, free: 13.12 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.876e-05/0.7387, allocations: 15.97 kB / 0.6812 GB, free: 13.11 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01514/0.7538, allocations: 3.628 MB / 0.6847 GB, free: 9.469 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01209/0.766, allocations: 4.94 MB / 0.6896 GB, free: 4.473 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003271/0.7663, allocations: 386 kB / 0.6899 GB, free: 4.094 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001725/0.7681, allocations: 0.4921 MB / 0.6904 GB, free: 3.602 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2571/1.025, allocations: 12.27 MB / 0.7024 GB, free: 93.49 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001545/1.025, allocations: 28.25 kB / 0.7024 GB, free: 93.49 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007138/1.026, allocations: 230.9 kB / 0.7026 GB, free: 93.49 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001516/1.028, allocations: 1.332 MB / 0.7039 GB, free: 93.48 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01929/1.047, allocations: 11.48 MB / 0.7152 GB, free: 93.43 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05731/1.104, allocations: 42.41 MB / 0.7566 GB, free: 73.72 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01087/1.115, allocations: 4.969 MB / 0.7614 GB, free: 71.44 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003583/1.119, allocations: 2.386 MB / 0.7638 GB, free: 70.51 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01195/1.131, allocations: 6.942 MB / 0.7705 GB, free: 66.66 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.046e-05/1.131, allocations: 59.66 kB / 0.7706 GB, free: 66.61 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=238): time 4.989e-06/1.131, allocations: 3 kB / 0.7706 GB, free: 66.61 MB / 0.4948 GB Notification: Performance of matching and sorting (n=259): time 0.037/1.168, allocations: 16.29 MB / 0.7865 GB, free: 61.95 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.274e-05/1.168, allocations: 75.22 kB / 0.7866 GB, free: 61.89 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004458/1.173, allocations: 2.841 MB / 0.7893 GB, free: 60.86 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0005644/1.173, allocations: 60.52 kB / 0.7894 GB, free: 60.8 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001674/1.175, allocations: 3.316 MB / 0.7926 GB, free: 58.27 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001081/1.176, allocations: 0.9677 MB / 0.7936 GB, free: 57.55 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002581/1.176, allocations: 118.6 kB / 0.7937 GB, free: 57.46 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000339/1.177, allocations: 0.5696 MB / 0.7943 GB, free: 57.04 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002977/1.179, allocations: 2.427 MB / 0.7966 GB, free: 56.25 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004119/1.184, allocations: 5.817 MB / 0.8023 GB, free: 50.89 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004323/1.188, allocations: 3.792 MB / 0.806 GB, free: 49.64 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.971e-05/1.188, allocations: 33.44 kB / 0.806 GB, free: 49.64 MB / 0.4948 GB Notification: Performance of matching and sorting (n=827) (initialization): time 0.01734/1.205, allocations: 9.992 MB / 0.8158 GB, free: 46.41 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 7.507e-05/1.206, allocations: 53.62 kB / 0.8158 GB, free: 46.41 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000108/1.206, allocations: 120.3 kB / 0.816 GB, free: 46.41 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007557/1.213, allocations: 2.331 MB / 0.8182 GB, free: 46.18 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004357/1.218, allocations: 1.376 MB / 0.8196 GB, free: 45.69 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01396/1.232, allocations: 10.63 MB / 0.83 GB, free: 36.58 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004284/1.236, allocations: 334.5 kB / 0.8303 GB, free: 36.3 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001011/1.237, allocations: 359.3 kB / 0.8306 GB, free: 35.96 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 541 * Number of states: 0 () * Number of discrete variables: 30 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],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.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (742): * Single equations (assignments): 734 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 5,3 27} Notification: Performance of prepare postOptimizeDAE: time 0.0009209/1.238, allocations: 0.5499 MB / 0.8312 GB, free: 35.41 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005057/1.238, allocations: 312 kB / 0.8315 GB, free: 35.1 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00662/1.245, allocations: 4.636 MB / 0.836 GB, free: 31.19 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.003e-05/1.245, allocations: 40 kB / 0.836 GB, free: 31.15 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.246e-06/1.245, allocations: 4 kB / 0.836 GB, free: 31.15 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.857e-05/1.245, allocations: 15.62 kB / 0.836 GB, free: 31.14 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01628/1.261, allocations: 10.98 MB / 0.8468 GB, free: 21.99 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.187e-05/1.261, allocations: 7.188 kB / 0.8468 GB, free: 21.98 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001625/1.263, allocations: 433.1 kB / 0.8472 GB, free: 21.64 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001749/1.265, allocations: 0.6943 MB / 0.8479 GB, free: 21.18 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001771/1.265, allocations: 53.27 kB / 0.8479 GB, free: 21.13 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001989/1.267, allocations: 2.412 MB / 0.8503 GB, free: 18.88 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/1.267, allocations: 4 kB / 0.8503 GB, free: 18.88 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007943/1.275, allocations: 7.539 MB / 0.8576 GB, free: 11.91 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009349/1.276, allocations: 355.7 kB / 0.858 GB, free: 11.55 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003621/1.276, allocations: 53.12 kB / 0.858 GB, free: 11.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001302/1.278, allocations: 143.1 kB / 0.8582 GB, free: 11.41 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002805/1.278, allocations: 151.9 kB / 0.8583 GB, free: 11.32 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001555/1.278, allocations: 71.98 kB / 0.8584 GB, free: 11.26 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002473/1.281, allocations: 1.919 MB / 0.8602 GB, free: 9.57 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.4e-07/1.281, allocations: 4 kB / 0.8603 GB, free: 9.566 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004153/1.285, allocations: 1.146 MB / 0.8614 GB, free: 8.426 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * 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.derdd[1].u,freeMotionScalarInit.derdd[2].u,freeMotionScalarInit.derdd[3].u) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (212): * Single equations (assignments): 203 * 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.0004224/1.285, allocations: 194.1 kB / 0.8616 GB, free: 8.246 MB / 0.4948 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Mechanics/MultiBody/Joints.mo:1913:5-1915:161:writable] Warning: Variable freeMotionScalarInit.angle_1 has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Mechanics/MultiBody/Joints.mo:1916:5-1918:161:writable] Warning: Variable freeMotionScalarInit.angle_2 has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Mechanics/MultiBody/Joints.mo:1919:5-1921:161:writable] Warning: Variable freeMotionScalarInit.angle_3 has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. Notification: Performance of simCode: created initialization part: time 0.007684/1.293, allocations: 6.115 MB / 0.8675 GB, free: 2.688 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.065e-06/1.293, allocations: 4 kB / 0.8675 GB, free: 2.684 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003494/1.296, allocations: 2.528 MB / 0.87 GB, free: 400 kB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002035/1.298, allocations: 421.2 kB / 0.8704 GB, free: 52 kB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0163/1.315, allocations: 9.541 MB / 0.8797 GB, free: 7.496 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00396/1.319, allocations: 3.9 MB / 0.8835 GB, free: 4.531 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.004562/1.323, allocations: 2.085 MB / 0.8856 GB, free: 3.195 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007356/1.324, allocations: 247 kB / 0.8858 GB, free: 2.965 MB / 0.5105 GB Notification: Performance of SimCode: time 1.232e-06/1.324, allocations: 0 / 0.8858 GB, free: 2.965 MB / 0.5105 GB Notification: Performance of Templates: time 0.2929/1.617, allocations: 39.58 MB / 0.9245 GB, free: 96.17 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/FreeMotionScalarInit4/FreeMotionScalarInit4.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches