Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002265/0.002264, allocations: 175.7 kB / 8.149 MB, free: 2.207 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.736/1.736, allocations: 205.2 MB / 213.8 MB, free: 13.93 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001296/0.001295, allocations: 94.39 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2663/0.2663, allocations: 43.5 MB / 353.2 MB, free: 2.039 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.031e-05/1.05e-05, allocations: 4 kB / 417.7 MB, free: 40.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2695/0.2695, allocations: 58.84 MB / 476.5 MB, free: 5.098 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1853/0.4549, allocations: 103.6 MB / 0.5665 GB, free: 11.45 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003059/0.4553, allocations: 75.47 kB / 0.5666 GB, free: 11.38 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.5594/1.015, allocations: 89.19 MB / 0.6537 GB, free: 61.77 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001762/1.015, allocations: 75.78 kB / 0.6538 GB, free: 61.77 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1720 * Number of variables: 1720 Notification: Performance of Generate backend data structure: time 0.02097/1.036, allocations: 4.198 MB / 0.6579 GB, free: 59.98 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.422e-05/1.036, allocations: 7.469 kB / 0.6579 GB, free: 59.98 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03218/1.068, allocations: 2.875 MB / 0.6607 GB, free: 59.68 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02641/1.095, allocations: 4.744 MB / 0.6653 GB, free: 59.14 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004307/1.095, allocations: 145.8 kB / 0.6655 GB, free: 59.14 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003355/1.098, allocations: 252.3 kB / 0.6657 GB, free: 59.14 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02813/1.127, allocations: 8.123 MB / 0.6736 GB, free: 59.12 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03838/1.165, allocations: 10.56 MB / 0.6839 GB, free: 57.77 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003124/1.165, allocations: 30.97 kB / 0.684 GB, free: 57.77 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003079/1.169, allocations: 12.78 kB / 0.684 GB, free: 57.77 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003411/1.172, allocations: 1.333 MB / 0.6853 GB, free: 57.75 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08218/1.254, allocations: 35.96 MB / 0.7204 GB, free: 43.96 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006062/1.26, allocations: 2.742 MB / 0.7231 GB, free: 43.92 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00471/1.265, allocations: 2.307 MB / 0.7253 GB, free: 43.9 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02379/1.289, allocations: 9.72 MB / 0.7348 GB, free: 39.41 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.226e-05/1.289, allocations: 55.53 kB / 0.7349 GB, free: 39.36 MB / 474.7 MB Notification: Performance of pre-optimization done (n=213): time 6.251e-06/1.289, allocations: 0 / 0.7349 GB, free: 39.36 MB / 474.7 MB Notification: Performance of matching and sorting (n=234): time 0.0485/1.338, allocations: 11.16 MB / 0.7458 GB, free: 35.88 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.013e-05/1.338, allocations: 71.72 kB / 0.7459 GB, free: 35.81 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007017/1.345, allocations: 2.662 MB / 0.7485 GB, free: 34.77 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000549/1.345, allocations: 29.7 kB / 0.7485 GB, free: 34.73 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002446/1.348, allocations: 3.046 MB / 0.7515 GB, free: 32.34 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001452/1.349, allocations: 0.8651 MB / 0.7523 GB, free: 31.7 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006895/1.35, allocations: 1.375 kB / 0.7523 GB, free: 31.7 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0004857/1.351, allocations: 0.5706 MB / 0.7529 GB, free: 31.27 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006448/1.357, allocations: 2.365 MB / 0.7552 GB, free: 30.49 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008244/1.365, allocations: 5.756 MB / 0.7608 GB, free: 23.67 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0087/1.374, allocations: 3.767 MB / 0.7645 GB, free: 20.45 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.594e-05/1.374, allocations: 32 kB / 0.7645 GB, free: 20.42 MB / 474.7 MB Notification: Performance of matching and sorting (n=822) (initialization): time 0.02568/1.4, allocations: 8.072 MB / 0.7724 GB, free: 13.44 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.674e-05/1.4, allocations: 8.531 kB / 0.7724 GB, free: 13.44 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002131/1.4, allocations: 120 kB / 0.7725 GB, free: 13.32 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006758/1.407, allocations: 0.8781 MB / 0.7734 GB, free: 12.69 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009971/1.417, allocations: 1.405 MB / 0.7747 GB, free: 11.46 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002459/1.417, allocations: 236.8 kB / 0.775 GB, free: 11.25 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006135/1.423, allocations: 173.1 kB / 0.7751 GB, free: 11.11 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001819/1.425, allocations: 370.3 kB / 0.7755 GB, free: 10.76 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 548 * 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],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 (769): * Single equations (assignments): 760 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(3,100.0%),(3,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002521/1.428, allocations: 334.2 kB / 0.7758 GB, free: 10.43 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0012/1.429, allocations: 298.1 kB / 0.7761 GB, free: 10.14 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01678/1.446, allocations: 4.553 MB / 0.7805 GB, free: 6.367 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001491/1.446, allocations: 37.83 kB / 0.7806 GB, free: 6.332 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.314e-05/1.446, allocations: 0 / 0.7806 GB, free: 6.332 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.747e-05/1.446, allocations: 9.609 kB / 0.7806 GB, free: 6.332 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03264/1.479, allocations: 8.83 MB / 0.7892 GB, free: 14.04 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.895e-05/1.479, allocations: 4 kB / 0.7892 GB, free: 14.03 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004051/1.483, allocations: 351.4 kB / 0.7895 GB, free: 13.69 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005909/1.489, allocations: 0.5371 MB / 0.7901 GB, free: 13.14 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005838/1.49, allocations: 23.97 kB / 0.7901 GB, free: 13.12 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003804/1.493, allocations: 1.946 MB / 0.792 GB, free: 11.06 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.735e-06/1.494, allocations: 4 kB / 0.792 GB, free: 11.05 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02021/1.514, allocations: 6.774 MB / 0.7986 GB, free: 4.152 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001152/1.515, allocations: 337.2 kB / 0.7989 GB, free: 3.801 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008363/1.516, allocations: 15.94 kB / 0.7989 GB, free: 3.785 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002484/1.518, allocations: 59.91 kB / 0.799 GB, free: 3.727 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004506/1.519, allocations: 109.7 kB / 0.7991 GB, free: 3.621 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003029/1.519, allocations: 63.97 kB / 0.7992 GB, free: 3.559 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.005026/1.524, allocations: 1.752 MB / 0.8009 GB, free: 1.805 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.007344/1.532, allocations: 0.8906 MB / 0.8017 GB, free: 0.9141 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (187): * Single equations (assignments): 178 * 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.0009327/1.533, allocations: 147.7 kB / 0.8019 GB, free: 0.7617 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01746/1.55, allocations: 5.995 MB / 0.8077 GB, free: 10.73 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.017e-06/1.55, allocations: 0 / 0.8077 GB, free: 10.73 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01001/1.56, allocations: 2.278 MB / 0.81 GB, free: 8.402 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004183/1.564, allocations: 268.1 kB / 0.8102 GB, free: 8.148 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07814/1.643, allocations: 9.511 MB / 0.8195 GB, free: 14.6 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01129/1.654, allocations: 3.928 MB / 0.8233 GB, free: 10.66 MB / 0.5105 GB Notification: Performance of SimCode: time 1.293e-06/1.654, allocations: 0 / 0.8233 GB, free: 10.66 MB / 0.5105 GB Notification: Performance of Templates: time 0.3628/2.017, allocations: 114.8 MB / 0.9355 GB, free: 139.5 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/FreeMotionScalarInit2/FreeMotionScalarInit2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches