Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.SphericalDoublePendulum.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.SphericalDoublePendulum,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_SphericalDoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.SphericalDoublePendulum,fileNamePrefix="ModelicaTest_4_0_0_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 4.0.0+maint.om/package.mo): time 0.002017/0.002017, allocations: 174.8 kB / 8.517 MB, free: 1.844 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.35/1.35, allocations: 221.4 MB / 230.3 MB, free: 7.723 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.001284/0.001284, allocations: 96.72 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.1832/0.1832, allocations: 44.15 MB / 376.1 MB, free: 3.227 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2389/0.4221, allocations: 68.02 MB / 444.1 MB, free: 15.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1265/0.5486, allocations: 61.91 MB / 0.4942 GB, free: 1.531 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3677/0.9164, allocations: 102.6 MB / 0.5944 GB, free: 10.11 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002478/0.9167, allocations: 67.97 kB / 0.5944 GB, free: 10.04 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.751/1.668, allocations: 179.4 MB / 0.7696 GB, free: 98.33 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.917e-05/1.668, allocations: 13.94 kB / 0.7696 GB, free: 98.33 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08825/1.756, allocations: 19.96 MB / 0.7891 GB, free: 88.19 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04893/1.805, allocations: 18.94 MB / 0.8076 GB, free: 69.5 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004532/1.806, allocations: 243.8 kB / 0.8079 GB, free: 69.27 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004368/1.81, allocations: 479.6 kB / 0.8083 GB, free: 68.8 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02421/1.834, allocations: 10.88 MB / 0.8189 GB, free: 57.92 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0424/1.877, allocations: 16.72 MB / 0.8353 GB, free: 39.43 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008976/1.878, allocations: 134.7 kB / 0.8354 GB, free: 39.3 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005604/1.883, allocations: 55.75 kB / 0.8354 GB, free: 39.25 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003048/1.886, allocations: 1.791 MB / 0.8372 GB, free: 37.46 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5791/2.465, allocations: 90.62 MB / 0.9257 GB, free: 104.2 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008757/2.474, allocations: 6.533 MB / 0.9321 GB, free: 103.5 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007516/2.482, allocations: 5.508 MB / 0.9374 GB, free: 103.5 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0359/2.518, allocations: 19.5 MB / 0.9565 GB, free: 96.27 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.111e-05/2.518, allocations: 66.53 kB / 0.9566 GB, free: 96.21 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=316): time 7.694e-06/2.518, allocations: 3.625 kB / 0.9566 GB, free: 96.21 MB / 0.5105 GB Notification: Performance of matching and sorting (n=387): time 0.1345/2.652, allocations: 49.99 MB / 1.005 GB, free: 79.03 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001252/2.652, allocations: 483.4 kB / 1.006 GB, free: 78.45 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01458/2.667, allocations: 6.799 MB / 1.012 GB, free: 72.65 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001919/2.669, allocations: 29.7 kB / 1.013 GB, free: 72.61 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.00476/2.674, allocations: 5.109 MB / 1.017 GB, free: 68.13 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.00446/2.678, allocations: 1.473 MB / 1.019 GB, free: 66.81 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001741/2.68, allocations: 0 / 1.019 GB, free: 66.81 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0007992/2.681, allocations: 0.7868 MB / 1.02 GB, free: 66.15 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008395/2.689, allocations: 5.588 MB / 1.025 GB, free: 61.15 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01179/2.701, allocations: 11.97 MB / 1.037 GB, free: 47.06 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01149/2.713, allocations: 8.008 MB / 1.045 GB, free: 40.4 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001701/2.713, allocations: 64 kB / 1.045 GB, free: 40.34 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1469) (initialization): time 0.07678/2.79, allocations: 29.29 MB / 1.073 GB, free: 18.38 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.361e-05/2.79, allocations: 8.156 kB / 1.073 GB, free: 18.37 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.05342/2.843, allocations: 19.59 MB / 1.092 GB, free: 96 kB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2606/3.104, allocations: 13.28 MB / 1.105 GB, free: 136.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0103/3.114, allocations: 2.65 MB / 1.108 GB, free: 136.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04555/3.16, allocations: 33.75 MB / 1.141 GB, free: 128.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01279/3.173, allocations: 0.675 MB / 1.142 GB, free: 128.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002989/3.176, allocations: 0.6806 MB / 1.142 GB, free: 128.2 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.003009/3.179, allocations: 0.6761 MB / 1.143 GB, free: 128.1 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00182/3.18, allocations: 0.7464 MB / 1.144 GB, free: 128.1 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02964/3.21, allocations: 13.37 MB / 1.157 GB, free: 125.2 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02709/3.237, allocations: 11.96 MB / 1.168 GB, free: 121.8 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.858e-05/3.237, allocations: 15.44 kB / 1.168 GB, free: 121.8 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001258/3.237, allocations: 24.17 kB / 1.168 GB, free: 121.8 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06161/3.299, allocations: 27.47 MB / 1.195 GB, free: 110.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.584e-05/3.299, allocations: 6.375 kB / 1.195 GB, free: 110.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004848/3.304, allocations: 0.7512 MB / 1.196 GB, free: 109.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01903/3.323, allocations: 5.353 MB / 1.201 GB, free: 106.1 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001211/3.324, allocations: 63.23 kB / 1.201 GB, free: 106 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03359/3.358, allocations: 25.71 MB / 1.226 GB, free: 83.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002224/3.36, allocations: 4.381 MB / 1.231 GB, free: 78.96 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03417/3.394, allocations: 20.13 MB / 1.25 GB, free: 58.72 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.04046/3.435, allocations: 27.06 MB / 1.277 GB, free: 31.56 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002662/3.438, allocations: 0.7764 MB / 1.278 GB, free: 30.76 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002252/3.44, allocations: 31.98 kB / 1.278 GB, free: 30.73 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005354/3.445, allocations: 278.3 kB / 1.278 GB, free: 30.46 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007937/3.446, allocations: 200.2 kB / 1.278 GB, free: 30.27 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004393/3.447, allocations: 119 kB / 1.278 GB, free: 30.15 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.1977/3.644, allocations: 4.717 MB / 1.283 GB, free: 134.1 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01505/3.659, allocations: 2.59 MB / 1.285 GB, free: 134.1 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.001302/3.661, allocations: 181.4 kB / 1.285 GB, free: 134 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02783/3.688, allocations: 15.33 MB / 1.3 GB, free: 132.4 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.458e-06/3.689, allocations: 2.531 kB / 1.3 GB, free: 132.4 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0132/3.702, allocations: 6.946 MB / 1.307 GB, free: 131.1 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006914/3.709, allocations: 1.04 MB / 1.308 GB, free: 131 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04036/3.749, allocations: 20.53 MB / 1.328 GB, free: 127.5 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0117/3.761, allocations: 6.97 MB / 1.335 GB, free: 126.5 MB / 0.5105 GB Notification: Performance of SimCode: time 1.283e-06/3.761, allocations: 0 / 1.335 GB, free: 126.5 MB / 0.5105 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.SphericalDoublePendulum.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.SphericalDoublePendulum.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.SphericalDoublePendulum.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.SphericalDoublePendulum.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.SphericalDoublePendulum_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_SphericalDoublePendulum_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_SphericalDoublePendulum.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.SphericalDoublePendulum.pipe 2>&1)