Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.SphericalDoublePendulum.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: "" <> buildModelFMU(ModelicaTest.MultiBody.SphericalDoublePendulum,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_SphericalDoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.SphericalDoublePendulum,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.001576/0.001576, allocations: 202.3 kB / 8.54 MB, free: 1.801 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.42/1.42, allocations: 225.5 MB / 234.4 MB, free: 3.488 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001047/0.001047, allocations: 94.56 kB / 286.3 MB, free: 5.234 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1919/0.1919, allocations: 45.14 MB / 383.3 MB, free: 0.6367 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2689/0.4609, allocations: 69.36 MB / 452.7 MB, free: 76.14 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.5769, allocations: 63.23 MB / 0.5038 GB, free: 12.98 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4158/0.9927, allocations: 103.5 MB / 0.6049 GB, free: 15.59 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002183/0.993, allocations: 69.41 kB / 0.605 GB, free: 15.56 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.8922/1.885, allocations: 197.1 MB / 0.7975 GB, free: 104.9 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 6.752e-05/1.885, allocations: 12.44 kB / 0.7975 GB, free: 104.9 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08181/1.967, allocations: 20.91 MB / 0.8179 GB, free: 104.2 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04624/2.013, allocations: 17.02 MB / 0.8345 GB, free: 102.8 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001108/2.015, allocations: 242.1 kB / 0.8348 GB, free: 102.8 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006468/2.021, allocations: 478.8 kB / 0.8352 GB, free: 102.8 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02815/2.049, allocations: 10.89 MB / 0.8458 GB, free: 101.1 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0451/2.094, allocations: 16.71 MB / 0.8622 GB, free: 86.77 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.00103/2.095, allocations: 136.2 kB / 0.8623 GB, free: 86.69 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003777/2.099, allocations: 56.64 kB / 0.8624 GB, free: 86.64 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003483/2.103, allocations: 1.789 MB / 0.8641 GB, free: 85.19 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1149/2.218, allocations: 90.65 MB / 0.9526 GB, free: 10.02 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01159/2.229, allocations: 6.528 MB / 0.959 GB, free: 3.359 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.4151/2.645, allocations: 5.504 MB / 0.9644 GB, free: 172.8 MB / 0.5418 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03697/2.682, allocations: 19.49 MB / 0.9834 GB, free: 168.2 MB / 0.5418 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.283e-05/2.682, allocations: 74.22 kB / 0.9835 GB, free: 168.2 MB / 0.5418 GB Notification: Performance of pre-optimization done (n=316): time 6.372e-06/2.682, allocations: 0 / 0.9835 GB, free: 168.2 MB / 0.5418 GB Notification: Performance of matching and sorting (n=387): time 0.1338/2.815, allocations: 50 MB / 1.032 GB, free: 160.1 MB / 0.5418 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001338/2.816, allocations: 480.1 kB / 1.033 GB, free: 159.6 MB / 0.5418 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01469/2.83, allocations: 6.798 MB / 1.039 GB, free: 157.3 MB / 0.5418 GB Notification: Performance of collectPreVariables (initialization): time 0.001338/2.832, allocations: 29.27 kB / 1.039 GB, free: 157.2 MB / 0.5418 GB Notification: Performance of collectInitialEqns (initialization): time 0.004237/2.836, allocations: 5.106 MB / 1.044 GB, free: 153.5 MB / 0.5418 GB Notification: Performance of collectInitialBindings (initialization): time 0.003496/2.84, allocations: 1.475 MB / 1.046 GB, free: 152.5 MB / 0.5418 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001892/2.841, allocations: 0 / 1.046 GB, free: 152.5 MB / 0.5418 GB Notification: Performance of setup shared object (initialization): time 0.0008122/2.842, allocations: 0.7895 MB / 1.047 GB, free: 151.9 MB / 0.5418 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009748/2.852, allocations: 5.59 MB / 1.052 GB, free: 150 MB / 0.5418 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01458/2.867, allocations: 11.97 MB / 1.064 GB, free: 137.8 MB / 0.5418 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01155/2.878, allocations: 8.003 MB / 1.072 GB, free: 131.4 MB / 0.5418 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001925/2.879, allocations: 67.78 kB / 1.072 GB, free: 131.3 MB / 0.5418 GB Notification: Performance of matching and sorting (n=1469) (initialization): time 0.08309/2.962, allocations: 29.49 MB / 1.1 GB, free: 109.8 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 2.441e-05/2.962, allocations: 9 kB / 1.1 GB, free: 109.8 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.05645/3.018, allocations: 19.78 MB / 1.12 GB, free: 95.4 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05143/3.07, allocations: 13.5 MB / 1.133 GB, free: 81.91 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01018/3.08, allocations: 2.647 MB / 1.136 GB, free: 79.26 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04353/3.123, allocations: 33.75 MB / 1.168 GB, free: 44.79 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01372/3.137, allocations: 0.6783 MB / 1.169 GB, free: 44.11 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002947/3.14, allocations: 0.6833 MB / 1.17 GB, free: 43.42 MB / 0.5418 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.003434/3.144, allocations: 0.6707 MB / 1.17 GB, free: 42.74 MB / 0.5418 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002109/3.146, allocations: 0.7443 MB / 1.171 GB, free: 41.99 MB / 0.5418 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2191/3.365, allocations: 13.38 MB / 1.184 GB, free: 153.7 MB / 0.5418 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02734/3.392, allocations: 11.96 MB / 1.196 GB, free: 153.5 MB / 0.5418 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.053e-05/3.392, allocations: 16.38 kB / 1.196 GB, free: 153.5 MB / 0.5418 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000145/3.392, allocations: 24.25 kB / 1.196 GB, free: 153.5 MB / 0.5418 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06236/3.455, allocations: 27.46 MB / 1.223 GB, free: 152.4 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.109e-05/3.455, allocations: 5.156 kB / 1.223 GB, free: 152.4 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005132/3.46, allocations: 0.7612 MB / 1.224 GB, free: 152.4 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01907/3.479, allocations: 5.35 MB / 1.229 GB, free: 152.3 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001362/3.481, allocations: 57.41 kB / 1.229 GB, free: 152.3 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03412/3.515, allocations: 25.71 MB / 1.254 GB, free: 141.5 MB / 0.5418 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00245/3.517, allocations: 4.363 MB / 1.258 GB, free: 137.5 MB / 0.5418 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03669/3.554, allocations: 20.14 MB / 1.278 GB, free: 130.4 MB / 0.5418 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.04464/3.599, allocations: 27.06 MB / 1.304 GB, free: 111.7 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002919/3.602, allocations: 0.7737 MB / 1.305 GB, free: 111 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003389/3.605, allocations: 27.59 kB / 1.305 GB, free: 110.9 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006608/3.612, allocations: 281.5 kB / 1.305 GB, free: 110.8 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001465/3.613, allocations: 203.1 kB / 1.306 GB, free: 110.7 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006663/3.614, allocations: 114.3 kB / 1.306 GB, free: 110.6 MB / 0.5418 GB Notification: Performance of sort global known variables: time 0.009435/3.623, allocations: 4.725 MB / 1.31 GB, free: 106.5 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.01543/3.639, allocations: 2.587 MB / 1.313 GB, free: 103.9 MB / 0.5418 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.00146/3.64, allocations: 198.3 kB / 1.313 GB, free: 103.8 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.02617/3.666, allocations: 15.33 MB / 1.328 GB, free: 90.38 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 8.075e-06/3.666, allocations: 5.969 kB / 1.328 GB, free: 90.38 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 0.01307/3.68, allocations: 6.943 MB / 1.335 GB, free: 84.11 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007289/3.687, allocations: 1.045 MB / 1.336 GB, free: 83.26 MB / 0.5418 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04701/3.734, allocations: 20.53 MB / 1.356 GB, free: 65.44 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01424/3.748, allocations: 6.96 MB / 1.363 GB, free: 60.23 MB / 0.5418 GB Notification: Performance of SimCode: time 1.313e-06/3.748, allocations: 0 / 1.363 GB, free: 60.23 MB / 0.5418 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.SphericalDoublePendulum.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.SphericalDoublePendulum.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.SphericalDoublePendulum.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.SphericalDoublePendulum.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.SphericalDoublePendulum_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_SphericalDoublePendulum_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_SphericalDoublePendulum.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.SphericalDoublePendulum.pipe 2>&1)