Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_cpp_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_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009432/0.0009433, allocations: 192.6 kB / 16.78 MB, free: 4.793 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.266/1.266, allocations: 226.5 MB / 244.1 MB, free: 8.133 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007585/0.0007585, allocations: 88.08 kB / 296.1 MB, free: 6.883 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3062/0.3062, allocations: 44.82 MB / 393 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003771/0.0003772, allocations: 8 kB / 465.9 MB, free: 12.73 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2996/0.3, allocations: 62.96 MB / 0.5165 GB, free: 37.01 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1263/0.4264, allocations: 111.3 MB / 0.6251 GB, free: 10.09 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002236/0.4266, allocations: 83.95 kB / 0.6252 GB, free: 10 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4262/0.8529, allocations: 97.53 MB / 0.7205 GB, free: 99.4 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.615e-06/0.8529, allocations: 0 / 0.7205 GB, free: 99.4 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001472/0.8531, allocations: 93.8 kB / 0.7206 GB, free: 99.4 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: 1849 * Number of variables: 1849 Notification: Performance of Generate backend data structure: time 0.0164/0.8695, allocations: 4.752 MB / 0.7252 GB, free: 97 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.8696, allocations: 9.531 kB / 0.7252 GB, free: 97 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01374/0.8833, allocations: 3.573 MB / 0.7287 GB, free: 96.66 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007797/0.8911, allocations: 3.567 MB / 0.7322 GB, free: 95.09 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002896/0.8915, allocations: 368.8 kB / 0.7325 GB, free: 94.95 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002225/0.8937, allocations: 498.6 kB / 0.733 GB, free: 94.82 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02036/0.9141, allocations: 12.01 MB / 0.7447 GB, free: 89.8 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001275/0.9142, allocations: 38.42 kB / 0.7448 GB, free: 89.78 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006822/0.9149, allocations: 229.7 kB / 0.745 GB, free: 89.64 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001304/0.9162, allocations: 1.284 MB / 0.7462 GB, free: 89.41 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01787/0.9341, allocations: 11.25 MB / 0.7572 GB, free: 84.88 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05053/0.9847, allocations: 41.41 MB / 0.7977 GB, free: 43.07 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00872/0.9935, allocations: 4.858 MB / 0.8024 GB, free: 37.98 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002729/0.9962, allocations: 2.385 MB / 0.8047 GB, free: 35.59 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008706/1.005, allocations: 6.796 MB / 0.8114 GB, free: 28.46 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.959e-05/1.005, allocations: 56.56 kB / 0.8114 GB, free: 28.39 MB / 490.7 MB Notification: Performance of pre-optimization done (n=229): time 4.759e-06/1.005, allocations: 0 / 0.8114 GB, free: 28.39 MB / 490.7 MB Notification: Performance of matching and sorting (n=250): time 0.04084/1.046, allocations: 18.31 MB / 0.8293 GB, free: 9.996 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.371e-05/1.046, allocations: 77.34 kB / 0.8294 GB, free: 9.906 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003658/1.05, allocations: 3.137 MB / 0.8324 GB, free: 6.754 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003434/1.05, allocations: 57.7 kB / 0.8325 GB, free: 6.691 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00117/1.051, allocations: 3.223 MB / 0.8357 GB, free: 3.461 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007792/1.052, allocations: 0.9412 MB / 0.8366 GB, free: 2.527 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002685/1.052, allocations: 119.6 kB / 0.8367 GB, free: 2.414 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000248/1.052, allocations: 0.5625 MB / 0.8372 GB, free: 1.844 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003018/1.056, allocations: 2.421 MB / 0.8396 GB, free: 15.42 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005427/1.061, allocations: 5.742 MB / 0.8452 GB, free: 8.039 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01054/1.072, allocations: 8.896 MB / 0.8539 GB, free: 13.52 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.976e-05/1.072, allocations: 36 kB / 0.8539 GB, free: 13.48 MB / 0.5105 GB Notification: Performance of matching and sorting (n=805) (initialization): time 0.02038/1.092, allocations: 9.882 MB / 0.8636 GB, free: 3.594 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 7.446e-05/1.092, allocations: 52 kB / 0.8636 GB, free: 3.543 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001209/1.092, allocations: 116 kB / 0.8637 GB, free: 3.43 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008212/1.1, allocations: 2.32 MB / 0.866 GB, free: 1.109 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004347/1.105, allocations: 1.322 MB / 0.8673 GB, free: 15.79 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01667/1.122, allocations: 10.64 MB / 0.8777 GB, free: 4.992 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004011/1.126, allocations: 315.8 kB / 0.878 GB, free: 4.684 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009238/1.127, allocations: 352 kB / 0.8783 GB, free: 4.34 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 528 * Number of states: 0 () * Number of discrete variables: 32 (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.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 (720): * Single equations (assignments): 712 * 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.004204/1.131, allocations: 2.399 MB / 0.8807 GB, free: 1.934 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004785/1.131, allocations: 304.1 kB / 0.881 GB, free: 1.633 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2283/1.36, allocations: 4.555 MB / 0.8854 GB, free: 131.9 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.608e-05/1.36, allocations: 45.84 kB / 0.8854 GB, free: 131.9 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.252e-05/1.36, allocations: 2.531 kB / 0.8855 GB, free: 131.9 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.621e-05/1.36, allocations: 10.41 kB / 0.8855 GB, free: 131.9 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01802/1.378, allocations: 10.77 MB / 0.896 GB, free: 131.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.179e-05/1.378, allocations: 8.25 kB / 0.896 GB, free: 131.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001586/1.379, allocations: 407.9 kB / 0.8964 GB, free: 131.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001853/1.381, allocations: 0.6916 MB / 0.897 GB, free: 131.2 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002459/1.381, allocations: 53.69 kB / 0.8971 GB, free: 131.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002155/1.384, allocations: 2.419 MB / 0.8995 GB, free: 130 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.571e-06/1.384, allocations: 9.344 kB / 0.8995 GB, free: 130 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00987/1.394, allocations: 7.031 MB / 0.9063 GB, free: 128.7 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008757/1.394, allocations: 350.3 kB / 0.9067 GB, free: 128.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005148/1.395, allocations: 48.64 kB / 0.9067 GB, free: 128.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001319/1.396, allocations: 138 kB / 0.9068 GB, free: 128.6 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003493/1.397, allocations: 141.8 kB / 0.907 GB, free: 128.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001745/1.397, allocations: 68.39 kB / 0.907 GB, free: 128.5 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.003598/1.4, allocations: 1.896 MB / 0.9089 GB, free: 127.9 MB / 0.5261 GB Notification: Performance of sort global known variables: time 3.51e-07/1.4, allocations: 0.9375 kB / 0.9089 GB, free: 127.9 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005225/1.406, allocations: 1.125 MB / 0.91 GB, free: 127.8 MB / 0.5261 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (202): * Single equations (assignments): 193 * 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.0005477/1.406, allocations: 203.2 kB / 0.9102 GB, free: 127.7 MB / 0.5261 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Mechanics/MultiBody/Joints/FreeMotionScalarInit.mo:80:3-82:159:writable] Warning: Variable freeMotionScalarInit.angle_3 has attribute stateSelect=StateSelect.always, but can't be selected as a state. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Mechanics/MultiBody/Joints/FreeMotionScalarInit.mo:74:3-76:159:writable] Warning: Variable freeMotionScalarInit.angle_1 has attribute stateSelect=StateSelect.always, but can't be selected as a state. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Mechanics/MultiBody/Joints/FreeMotionScalarInit.mo:77:3-79:159:writable] Warning: Variable freeMotionScalarInit.angle_2 has attribute stateSelect=StateSelect.always, but can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.01011/1.416, allocations: 6.057 MB / 0.9161 GB, free: 125.9 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.115e-06/1.416, allocations: 2.875 kB / 0.9161 GB, free: 125.9 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003906/1.42, allocations: 2.499 MB / 0.9185 GB, free: 125 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004672/1.425, allocations: 453.8 kB / 0.919 GB, free: 124.8 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0191/1.444, allocations: 13.84 MB / 0.9325 GB, free: 117.8 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00374/1.448, allocations: 3.723 MB / 0.9361 GB, free: 116.4 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001067/1.449, allocations: 281.9 kB / 0.9364 GB, free: 116.4 MB / 0.5261 GB Notification: Performance of SimCode: time 8.12e-07/1.449, allocations: 0 / 0.9364 GB, free: 116.4 MB / 0.5261 GB Notification: Performance of Templates: time 0.1049/1.554, allocations: 116.9 MB / 1.051 GB, free: 23.7 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotionScalarInit4/FreeMotionScalarInit4.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches