Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.SphericalDoublePendulum.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: "" <> buildModelFMU(ModelicaTest.MultiBody.SphericalDoublePendulum,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_SphericalDoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.SphericalDoublePendulum,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_SphericalDoublePendulum",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 3.2.3+maint.om/package.mo): time 0.001273/0.001273, allocations: 187.6 kB / 7.8 MB, free: 2.438 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.385/1.385, allocations: 205.2 MB / 213.4 MB, free: 13.74 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.001127/0.001128, allocations: 87.91 kB / 261.4 MB, free: 13.52 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.2452/0.2452, allocations: 43.5 MB / 352.9 MB, free: 1.922 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2481/0.4934, allocations: 64.95 MB / 417.8 MB, free: 40.46 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3975/0.8909, allocations: 58.84 MB / 476.6 MB, free: 5.168 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1488/1.04, allocations: 100.9 MB / 0.564 GB, free: 13.96 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001789/1.04, allocations: 75.41 kB / 0.5641 GB, free: 13.89 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: 2557 * Number of variables: 2557 Notification: Performance of Generate backend data structure: time 0.7281/1.768, allocations: 177.5 MB / 0.7374 GB, free: 51.47 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/1.768, allocations: 8 kB / 0.7374 GB, free: 51.46 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07631/1.845, allocations: 19.96 MB / 0.7569 GB, free: 33.36 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04943/1.894, allocations: 19.93 MB / 0.7764 GB, free: 13.51 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005693/1.895, allocations: 240 kB / 0.7766 GB, free: 13.28 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004639/1.899, allocations: 479.6 kB / 0.7771 GB, free: 12.81 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02334/1.923, allocations: 10.88 MB / 0.7877 GB, free: 1.93 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04432/1.967, allocations: 16.72 MB / 0.804 GB, free: 15.44 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001056/1.968, allocations: 130.8 kB / 0.8041 GB, free: 15.31 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004833/1.973, allocations: 55.91 kB / 0.8042 GB, free: 15.26 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003564/1.977, allocations: 1.786 MB / 0.8059 GB, free: 13.48 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4638/2.44, allocations: 90.78 MB / 0.8946 GB, free: 106.9 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008507/2.449, allocations: 6.532 MB / 0.901 GB, free: 106.2 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006544/2.456, allocations: 5.507 MB / 0.9063 GB, free: 106.2 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03838/2.494, allocations: 19.58 MB / 0.9255 GB, free: 99.65 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.027e-05/2.494, allocations: 70.44 kB / 0.9255 GB, free: 99.59 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=316): time 7.104e-06/2.494, allocations: 3.656 kB / 0.9255 GB, free: 99.59 MB / 0.5105 GB Notification: Performance of matching and sorting (n=387): time 0.1363/2.63, allocations: 50.34 MB / 0.9747 GB, free: 83.15 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000124/2.631, allocations: 483.5 kB / 0.9751 GB, free: 82.61 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01494/2.646, allocations: 6.88 MB / 0.9819 GB, free: 77.94 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001597/2.647, allocations: 29.7 kB / 0.9819 GB, free: 77.91 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003869/2.651, allocations: 5.119 MB / 0.9869 GB, free: 73.34 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002727/2.654, allocations: 1.472 MB / 0.9883 GB, free: 72.01 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009808/2.655, allocations: 0 / 0.9883 GB, free: 72.01 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0004637/2.655, allocations: 0.7858 MB / 0.9891 GB, free: 71.36 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006523/2.662, allocations: 5.591 MB / 0.9946 GB, free: 66.35 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01255/2.674, allocations: 11.97 MB / 1.006 GB, free: 52.22 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01154/2.686, allocations: 8.001 MB / 1.014 GB, free: 45.53 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002032/2.686, allocations: 67.91 kB / 1.014 GB, free: 45.46 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1469) (initialization): time 0.08416/2.77, allocations: 29.3 MB / 1.043 GB, free: 23.08 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.151e-05/2.77, allocations: 8 kB / 1.043 GB, free: 23.07 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.05329/2.824, allocations: 19.58 MB / 1.062 GB, free: 3.441 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2605/3.084, allocations: 13.29 MB / 1.075 GB, free: 142 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01156/3.096, allocations: 2.651 MB / 1.077 GB, free: 142 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04698/3.143, allocations: 33.75 MB / 1.11 GB, free: 133.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0164/3.159, allocations: 0.6718 MB / 1.111 GB, free: 133.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004404/3.164, allocations: 0.6831 MB / 1.112 GB, free: 133.5 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1023 * Number of states: 0 () * Number of discrete variables: 66 (Spherical6.sphereColor[3],Spherical6.sphereColor[2],Spherical6.sphereColor[1],Spherical5.sphereColor[3],Spherical5.sphereColor[2],Spherical5.sphereColor[1],boxBody6.color[3],boxBody6.color[2],boxBody6.color[1],boxBody6.body.sphereColor[3],boxBody6.body.sphereColor[2],boxBody6.body.sphereColor[1],boxBody5.color[3],boxBody5.color[2],boxBody5.color[1],boxBody5.body.sphereColor[3],boxBody5.body.sphereColor[2],boxBody5.body.sphereColor[1],Spherical4.sphereColor[3],Spherical4.sphereColor[2],Spherical4.sphereColor[1],Spherical3.sphereColor[3],Spherical3.sphereColor[2],Spherical3.sphereColor[1],boxBody4.color[3],boxBody4.color[2],boxBody4.color[1],boxBody4.body.sphereColor[3],boxBody4.body.sphereColor[2],boxBody4.body.sphereColor[1],boxBody3.color[3],boxBody3.color[2],boxBody3.color[1],boxBody3.body.sphereColor[3],boxBody3.body.sphereColor[2],boxBody3.body.sphereColor[1],Spherical2.sphereColor[3],Spherical2.sphereColor[2],Spherical2.sphereColor[1],Spherical1.sphereColor[3],Spherical1.sphereColor[2],Spherical1.sphereColor[1],boxBody2.color[3],boxBody2.color[2],boxBody2.color[1],boxBody2.body.sphereColor[3],boxBody2.body.sphereColor[2],boxBody2.body.sphereColor[1],boxBody1.color[3],boxBody1.color[2],boxBody1.color[1],boxBody1.body.sphereColor[3],boxBody1.body.sphereColor[2],boxBody1.body.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1321): * Single equations (assignments): 1297 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 10 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(2,100.0%),(2,100.0%),(2,100.0%),(2,100.0%),(4,100.0%),(4,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(8,59.4%) 13,(8,59.4%) 13,(8,59.4%) 13} * Non-linear torn systems: 2 {4 9,4 9} Notification: Performance of prepare postOptimizeDAE: time 0.004841/3.169, allocations: 0.6728 MB / 1.112 GB, free: 133.4 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002407/3.171, allocations: 0.7561 MB / 1.113 GB, free: 133.4 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03059/3.202, allocations: 13.38 MB / 1.126 GB, free: 133.1 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02797/3.23, allocations: 11.96 MB / 1.138 GB, free: 130.2 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.281e-05/3.23, allocations: 15.16 kB / 1.138 GB, free: 130.2 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001312/3.23, allocations: 17.62 kB / 1.138 GB, free: 130.2 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06996/3.3, allocations: 27.5 MB / 1.165 GB, free: 121.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.836e-05/3.3, allocations: 1.688 kB / 1.165 GB, free: 121.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005308/3.305, allocations: 0.7554 MB / 1.165 GB, free: 121 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02016/3.326, allocations: 5.356 MB / 1.171 GB, free: 119.5 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001671/3.327, allocations: 60.7 kB / 1.171 GB, free: 119.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0334/3.361, allocations: 25.71 MB / 1.196 GB, free: 97.41 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002488/3.363, allocations: 4.372 MB / 1.2 GB, free: 92.88 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03659/3.4, allocations: 20.13 MB / 1.22 GB, free: 74.16 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.04292/3.443, allocations: 27.08 MB / 1.246 GB, free: 46.98 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003473/3.446, allocations: 0.7837 MB / 1.247 GB, free: 46.17 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003913/3.45, allocations: 35.28 kB / 1.247 GB, free: 46.14 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007078/3.457, allocations: 275.6 kB / 1.247 GB, free: 45.87 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001516/3.459, allocations: 202.1 kB / 1.248 GB, free: 45.68 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006706/3.46, allocations: 118.8 kB / 1.248 GB, free: 45.56 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.008959/3.469, allocations: 4.778 MB / 1.252 GB, free: 40.81 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0135/3.482, allocations: 2.594 MB / 1.255 GB, free: 38.23 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 36 ($STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[6],$STATESET1.x[5],$STATESET1.x[4],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],Spherical1.phi[1],Spherical1.phi[2],Spherical1.phi[3],Spherical1.phi_d[1],Spherical1.phi_d[2],Spherical1.phi_d[3],Spherical2.phi[1],Spherical2.phi[2],Spherical2.phi[3],Spherical2.phi_d[1],Spherical2.phi_d[2],Spherical2.phi_d[3],Spherical3.w_rel[1],Spherical3.w_rel[2],Spherical3.w_rel[3],Spherical4.w_rel[1],Spherical4.w_rel[2],Spherical4.w_rel[3],boxBody5.body.w_a[1],boxBody5.body.w_a[2],boxBody5.body.w_a[3],boxBody6.body.w_a[1],boxBody6.body.w_a[2],boxBody6.body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (286): * Single equations (assignments): 271 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 9 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 6 {(2,100.0%),(2,100.0%),(4,100.0%),(4,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 3 {4,4,8} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(8,59.4%) 13,(8,59.4%) 13,(8,59.4%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00128/3.484, allocations: 182 kB / 1.255 GB, free: 38.08 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.2497/3.733, allocations: 15.32 MB / 1.27 GB, free: 148.6 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.338e-05/3.733, allocations: 9.75 kB / 1.27 GB, free: 148.6 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01416/3.747, allocations: 6.941 MB / 1.277 GB, free: 147.3 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007401/3.755, allocations: 1.043 MB / 1.278 GB, free: 147.3 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05116/3.806, allocations: 20.6 MB / 1.298 GB, free: 143.7 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01812/3.824, allocations: 6.987 MB / 1.305 GB, free: 142.8 MB / 0.5105 GB Notification: Performance of SimCode: time 2.074e-06/3.824, allocations: 3.188 kB / 1.305 GB, free: 142.8 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.SphericalDoublePendulum.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.SphericalDoublePendulum.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.SphericalDoublePendulum.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.SphericalDoublePendulum.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.SphericalDoublePendulum_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_SphericalDoublePendulum_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_SphericalDoublePendulum.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.SphericalDoublePendulum.pipe 2>&1)