Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.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.FreeMotionScalarInit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotionScalarInit.angle_1|freeMotionScalarInit.angle_2|freeMotionScalarInit.angle_3|freeMotionScalarInit.angle_d_1|freeMotionScalarInit.angle_d_2|freeMotionScalarInit.angle_d_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",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit") translateModel(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotionScalarInit.angle_1|freeMotionScalarInit.angle_2|freeMotionScalarInit.angle_3|freeMotionScalarInit.angle_d_1|freeMotionScalarInit.angle_d_2|freeMotionScalarInit.angle_d_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",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit") [: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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001074/0.001074, allocations: 191.5 kB / 8.534 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.278/1.278, allocations: 225.5 MB / 234.4 MB, free: 3.41 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008835/0.0008836, allocations: 88.53 kB / 286.3 MB, free: 5.246 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2196/0.2196, allocations: 45.14 MB / 383.3 MB, free: 0.5742 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 9.147e-06/9.157e-06, allocations: 4 kB / 452.6 MB, free: 76.2 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1338/0.1338, allocations: 63.24 MB / 0.5038 GB, free: 13.04 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3833/0.5171, allocations: 105.5 MB / 0.6068 GB, free: 13.73 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002018/0.5174, allocations: 74.28 kB / 0.6069 GB, free: 13.69 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.225/0.7424, allocations: 88.5 MB / 0.6933 GB, free: 13.34 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002007/0.7427, allocations: 83.94 kB / 0.6934 GB, free: 13.26 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: 1651 * Number of variables: 1651 Notification: Performance of Generate backend data structure: time 0.01885/0.7615, allocations: 4.171 MB / 0.6975 GB, free: 9.023 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.456e-05/0.7616, allocations: 8.031 kB / 0.6975 GB, free: 9.016 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.015/0.7766, allocations: 2.829 MB / 0.7002 GB, free: 6.176 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01215/0.7888, allocations: 3.972 MB / 0.7041 GB, free: 2.152 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000244/0.7891, allocations: 136 kB / 0.7043 GB, free: 2.02 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002567/0.7917, allocations: 247.9 kB / 0.7045 GB, free: 1.777 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01515/0.8069, allocations: 7.745 MB / 0.712 GB, free: 10.02 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02575/0.8326, allocations: 10.1 MB / 0.7219 GB, free: 15.45 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002714/0.833, allocations: 35.69 kB / 0.7219 GB, free: 15.41 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002405/0.8354, allocations: 12 kB / 0.722 GB, free: 15.4 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001937/0.8373, allocations: 1.266 MB / 0.7232 GB, free: 14.13 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2522/1.09, allocations: 34.44 MB / 0.7568 GB, free: 187 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003524/1.093, allocations: 2.622 MB / 0.7594 GB, free: 187 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002448/1.096, allocations: 2.176 MB / 0.7615 GB, free: 187 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01294/1.109, allocations: 9.335 MB / 0.7706 GB, free: 184 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.931e-05/1.109, allocations: 47.36 kB / 0.7707 GB, free: 183.9 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=204): time 6.012e-06/1.109, allocations: 0 / 0.7707 GB, free: 183.9 MB / 0.5261 GB Notification: Performance of matching and sorting (n=231): time 0.0241/1.133, allocations: 10.14 MB / 0.7806 GB, free: 183.2 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.327e-05/1.133, allocations: 73.38 kB / 0.7806 GB, free: 183.2 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00338/1.136, allocations: 2.604 MB / 0.7832 GB, free: 182.9 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0003369/1.137, allocations: 25.7 kB / 0.7832 GB, free: 182.8 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001355/1.138, allocations: 2.924 MB / 0.7861 GB, free: 181.1 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008777/1.139, allocations: 0.8576 MB / 0.7869 GB, free: 180.6 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002349/1.139, allocations: 0 / 0.7869 GB, free: 180.6 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002655/1.139, allocations: 0.5664 MB / 0.7875 GB, free: 180.3 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002667/1.142, allocations: 2.348 MB / 0.7898 GB, free: 180.3 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004626/1.147, allocations: 5.641 MB / 0.7953 GB, free: 176 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005094/1.152, allocations: 3.715 MB / 0.7989 GB, free: 176 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.594e-05/1.152, allocations: 33.53 kB / 0.7989 GB, free: 176 MB / 0.5261 GB Notification: Performance of matching and sorting (n=803) (initialization): time 0.01593/1.168, allocations: 8.058 MB / 0.8068 GB, free: 173.9 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.145e-05/1.168, allocations: 7.188 kB / 0.8068 GB, free: 173.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001169/1.168, allocations: 116.8 kB / 0.8069 GB, free: 173.9 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003441/1.171, allocations: 0.9322 MB / 0.8078 GB, free: 173.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004865/1.176, allocations: 1.368 MB / 0.8092 GB, free: 173.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002127/1.178, allocations: 2.35 MB / 0.8115 GB, free: 172.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004218/1.183, allocations: 169.4 kB / 0.8116 GB, free: 172.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007102/1.183, allocations: 366.5 kB / 0.812 GB, free: 172.2 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 532 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (750): * Single equations (assignments): 741 * 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 prepare postOptimizeDAE: time 0.0007887/1.184, allocations: 401.8 kB / 0.8123 GB, free: 171.8 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003947/1.185, allocations: 279 kB / 0.8126 GB, free: 171.7 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008456/1.193, allocations: 4.584 MB / 0.8171 GB, free: 170.2 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.088e-05/1.193, allocations: 43.12 kB / 0.8171 GB, free: 170.2 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.38e-05/1.193, allocations: 2.469 kB / 0.8171 GB, free: 170.2 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.923e-05/1.193, allocations: 10.31 kB / 0.8171 GB, free: 170.2 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01643/1.21, allocations: 8.9 MB / 0.8258 GB, free: 164.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.091e-05/1.21, allocations: 4 kB / 0.8258 GB, free: 164.1 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001657/1.211, allocations: 344.4 kB / 0.8262 GB, free: 163.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003107/1.215, allocations: 0.7575 MB / 0.8269 GB, free: 163.4 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002943/1.215, allocations: 25.52 kB / 0.8269 GB, free: 163.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001879/1.217, allocations: 2.149 MB / 0.829 GB, free: 161.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.197e-06/1.217, allocations: 0 / 0.829 GB, free: 161.3 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009229/1.226, allocations: 6.921 MB / 0.8358 GB, free: 155.2 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007173/1.227, allocations: 324.1 kB / 0.8361 GB, free: 154.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004485/1.227, allocations: 15.23 kB / 0.8361 GB, free: 154.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001152/1.228, allocations: 66.97 kB / 0.8362 GB, free: 154.8 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002252/1.229, allocations: 105.8 kB / 0.8363 GB, free: 154.8 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001567/1.229, allocations: 66.83 kB / 0.8363 GB, free: 154.7 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.002239/1.231, allocations: 1.707 MB / 0.838 GB, free: 153.2 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004108/1.235, allocations: 0.8764 MB / 0.8389 GB, free: 152.4 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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.angle_d_1,freeMotionScalarInit.angle_d_2,freeMotionScalarInit.angle_d_3) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (183): * Single equations (assignments): 174 * 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.0004551/1.236, allocations: 160.2 kB / 0.839 GB, free: 152.2 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.00856/1.244, allocations: 5.948 MB / 0.8448 GB, free: 146.8 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/1.244, allocations: 0 / 0.8448 GB, free: 146.8 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003553/1.248, allocations: 2.402 MB / 0.8472 GB, free: 144.7 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001897/1.25, allocations: 279 kB / 0.8474 GB, free: 144.4 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01572/1.265, allocations: 8.767 MB / 0.856 GB, free: 136.7 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004236/1.27, allocations: 3.805 MB / 0.8597 GB, free: 133.8 MB / 0.5261 GB Notification: Performance of SimCode: time 1.323e-06/1.27, allocations: 0 / 0.8597 GB, free: 133.8 MB / 0.5261 GB Notification: Performance of Templates: time 0.05846/1.328, allocations: 36.76 MB / 0.8956 GB, free: 103.1 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotionScalarInit/FreeMotionScalarInit.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches