Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.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: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Spherical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Spherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Spherical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Spherical",fmuType="me",version="2.0",platforms={"static"}) [: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 4.0.0+maint.om/package.mo): time 0.001034/0.001034, allocations: 173.7 kB / 8.515 MB, free: 1.852 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.169/1.169, allocations: 221.4 MB / 230.3 MB, free: 7.668 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008823/0.0008822, allocations: 87.92 kB / 281.2 MB, free: 5.461 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.1599/0.1599, allocations: 44.14 MB / 376.1 MB, free: 3.234 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1691/0.3291, allocations: 68.03 MB / 444.1 MB, free: 15.53 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08945/0.4185, allocations: 61.9 MB / 0.4942 GB, free: 1.547 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2477/0.6663, allocations: 102.5 MB / 0.5943 GB, free: 10.3 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001925/0.6666, allocations: 72.62 kB / 0.5943 GB, free: 10.23 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1482 * Number of variables: 1482 Notification: Performance of Generate backend data structure: time 0.2248/0.8914, allocations: 85.96 MB / 0.6783 GB, free: 3.52 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.8915, allocations: 15.92 kB / 0.6783 GB, free: 3.504 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02082/0.9123, allocations: 4.421 MB / 0.6826 GB, free: 15.07 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01386/0.9262, allocations: 5.166 MB / 0.6877 GB, free: 9.848 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002181/0.9265, allocations: 116 kB / 0.6878 GB, free: 9.734 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001885/0.9284, allocations: 216 kB / 0.688 GB, free: 9.523 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01146/0.9398, allocations: 7.063 MB / 0.6949 GB, free: 2.457 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1399/1.08, allocations: 9.364 MB / 0.704 GB, free: 179.4 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001269/1.08, allocations: 23.56 kB / 0.704 GB, free: 179.4 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009828/1.081, allocations: 19.75 kB / 0.7041 GB, free: 179.4 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00117/1.082, allocations: 1.231 MB / 0.7053 GB, free: 179.4 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04213/1.124, allocations: 35.49 MB / 0.7399 GB, free: 163.6 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004011/1.128, allocations: 4.184 MB / 0.744 GB, free: 161.3 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002465/1.131, allocations: 2.422 MB / 0.7464 GB, free: 160.4 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01376/1.145, allocations: 10.71 MB / 0.7568 GB, free: 154.2 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.29e-05/1.145, allocations: 50.62 kB / 0.7569 GB, free: 154.2 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=181): time 4.248e-06/1.145, allocations: 0 / 0.7569 GB, free: 154.2 MB / 0.4948 GB Notification: Performance of matching and sorting (n=188): time 0.02016/1.165, allocations: 10.48 MB / 0.7671 GB, free: 151 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.648e-05/1.165, allocations: 71.69 kB / 0.7672 GB, free: 151 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004414/1.169, allocations: 2.629 MB / 0.7697 GB, free: 150 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002391/1.17, allocations: 25.7 kB / 0.7698 GB, free: 150 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001356/1.171, allocations: 2.755 MB / 0.7725 GB, free: 147.9 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007288/1.172, allocations: 0.7012 MB / 0.7731 GB, free: 147.4 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004582/1.172, allocations: 0 / 0.7731 GB, free: 147.4 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0003611/1.172, allocations: 0.552 MB / 0.7737 GB, free: 147 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003584/1.176, allocations: 2.546 MB / 0.7762 GB, free: 146.1 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004315/1.18, allocations: 5.745 MB / 0.7818 GB, free: 139.8 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004331/1.185, allocations: 3.847 MB / 0.7855 GB, free: 136.7 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.492e-05/1.185, allocations: 35.91 kB / 0.7856 GB, free: 136.6 MB / 0.4948 GB Notification: Performance of matching and sorting (n=756) (initialization): time 0.05621/1.241, allocations: 14.66 MB / 0.7999 GB, free: 125.9 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.684e-05/1.241, allocations: 4.781 kB / 0.7999 GB, free: 125.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04124/1.282, allocations: 8.924 MB / 0.8086 GB, free: 118.6 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04364/1.326, allocations: 6.785 MB / 0.8152 GB, free: 111.8 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004165/1.33, allocations: 1.263 MB / 0.8165 GB, free: 110.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02196/1.352, allocations: 14.04 MB / 0.8302 GB, free: 96.25 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004719/1.357, allocations: 251.7 kB / 0.8304 GB, free: 96 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001088/1.358, allocations: 351.6 kB / 0.8308 GB, free: 95.66 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 519 * 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],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[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 (684): * Single equations (assignments): 673 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.00125/1.359, allocations: 376.7 kB / 0.8311 GB, free: 95.29 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005146/1.36, allocations: 268.4 kB / 0.8314 GB, free: 95.02 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008936/1.361, allocations: 424.8 kB / 0.8318 GB, free: 94.6 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006148/1.367, allocations: 3.941 MB / 0.8356 GB, free: 90.64 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.265e-05/1.367, allocations: 0 / 0.8356 GB, free: 90.64 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.837e-05/1.367, allocations: 11.97 kB / 0.8356 GB, free: 90.62 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01686/1.384, allocations: 10.19 MB / 0.8456 GB, free: 80.38 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.308e-06/1.384, allocations: 0 / 0.8456 GB, free: 80.38 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001495/1.385, allocations: 275.6 kB / 0.8458 GB, free: 80.11 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00284/1.388, allocations: 0.8607 MB / 0.8467 GB, free: 79.25 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002268/1.389, allocations: 15.83 kB / 0.8467 GB, free: 79.23 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005162/1.394, allocations: 5.172 MB / 0.8517 GB, free: 73.84 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006076/1.394, allocations: 1.357 MB / 0.8531 GB, free: 72.36 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008763/1.403, allocations: 6.812 MB / 0.8597 GB, free: 65.48 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01097/1.414, allocations: 9.692 MB / 0.8692 GB, free: 55.73 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007392/1.415, allocations: 333.5 kB / 0.8695 GB, free: 55.38 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007277/1.416, allocations: 4 kB / 0.8695 GB, free: 55.38 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001589/1.417, allocations: 95.84 kB / 0.8696 GB, free: 55.28 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002804/1.418, allocations: 77.19 kB / 0.8697 GB, free: 55.21 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001838/1.418, allocations: 43.98 kB / 0.8697 GB, free: 55.16 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.00235/1.42, allocations: 1.747 MB / 0.8714 GB, free: 53.41 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004968/1.425, allocations: 1 MB / 0.8724 GB, free: 52.42 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.w_a[1],body.w_a[2],body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (129): * Single equations (assignments): 120 * 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): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004354/1.426, allocations: 156.1 kB / 0.8726 GB, free: 52.27 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.008798/1.434, allocations: 6.092 MB / 0.8785 GB, free: 46.16 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/1.434, allocations: 0 / 0.8785 GB, free: 46.16 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002824/1.437, allocations: 2.195 MB / 0.8806 GB, free: 43.93 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001372/1.439, allocations: 234.9 kB / 0.8809 GB, free: 43.7 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01428/1.453, allocations: 8.03 MB / 0.8887 GB, free: 35.59 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004267/1.457, allocations: 3.482 MB / 0.8921 GB, free: 32.11 MB / 0.4948 GB Notification: Performance of SimCode: time 6.11e-07/1.457, allocations: 0 / 0.8921 GB, free: 32.11 MB / 0.4948 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Spherical_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Spherical.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1)