Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.UniversalSpherical.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.UniversalSpherical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_UniversalSpherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.UniversalSpherical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_UniversalSpherical",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.001016/0.001016, allocations: 171.4 kB / 8.514 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.205/1.205, 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.0009519/0.0009517, allocations: 84.78 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.1645/0.1645, allocations: 44.15 MB / 376.1 MB, free: 3.227 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1719/0.3365, allocations: 68.03 MB / 444.1 MB, free: 15.51 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08914/0.4256, allocations: 61.9 MB / 0.4942 GB, free: 1.539 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2728/0.6985, allocations: 122.2 MB / 0.6136 GB, free: 6.426 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00022/0.6988, allocations: 75.95 kB / 0.6136 GB, free: 6.352 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4458 * Number of variables: 4458 Notification: Performance of Generate backend data structure: time 0.6897/1.389, allocations: 226.8 MB / 0.8351 GB, free: 43.72 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.657e-05/1.389, allocations: 11.94 kB / 0.8352 GB, free: 43.71 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03984/1.428, allocations: 9.974 MB / 0.8449 GB, free: 33.7 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03093/1.459, allocations: 13.3 MB / 0.8579 GB, free: 20.42 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004085/1.46, allocations: 452 kB / 0.8583 GB, free: 19.98 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003149/1.463, allocations: 0.8122 MB / 0.8591 GB, free: 19.16 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02905/1.492, allocations: 18.78 MB / 0.8775 GB, free: 388 kB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3199/1.812, allocations: 27.04 MB / 0.9039 GB, free: 105.3 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000513/1.813, allocations: 140.1 kB / 0.904 GB, free: 105.3 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004104/1.817, allocations: 68.12 kB / 0.9041 GB, free: 105.3 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002785/1.819, allocations: 2.486 MB / 0.9065 GB, free: 105.3 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1473/1.967, allocations: 124.4 MB / 1.028 GB, free: 34.24 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00848/1.975, allocations: 8.196 MB / 1.036 GB, free: 30.34 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00697/1.982, allocations: 6.952 MB / 1.043 GB, free: 27.25 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03795/2.02, allocations: 31.13 MB / 1.073 GB, free: 10.18 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.419e-05/2.02, allocations: 80.69 kB / 1.073 GB, free: 10.11 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=379): time 6.452e-06/2.02, allocations: 0 / 1.073 GB, free: 10.11 MB / 0.5105 GB Notification: Performance of matching and sorting (n=514): time 0.3857/2.406, allocations: 91.8 MB / 1.163 GB, free: 114.1 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.567e-05/2.406, allocations: 345.5 kB / 1.163 GB, free: 113.7 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009544/2.416, allocations: 7.221 MB / 1.17 GB, free: 113 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001095/2.417, allocations: 25.7 kB / 1.17 GB, free: 113 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003327/2.42, allocations: 7.961 MB / 1.178 GB, free: 107.9 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002237/2.422, allocations: 1.936 MB / 1.18 GB, free: 106.7 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008761/2.423, allocations: 0 / 1.18 GB, free: 106.7 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0005891/2.424, allocations: 0.9672 MB / 1.181 GB, free: 106.4 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009674/2.434, allocations: 8.986 MB / 1.19 GB, free: 104.1 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01275/2.446, allocations: 17.93 MB / 1.207 GB, free: 88.6 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01583/2.462, allocations: 12.47 MB / 1.219 GB, free: 84.22 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002467/2.463, allocations: 99.72 kB / 1.22 GB, free: 84.21 MB / 0.5105 GB Notification: Performance of matching and sorting (n=2019) (initialization): time 0.06311/2.526, allocations: 32.16 MB / 1.251 GB, free: 59.33 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/2.526, allocations: 4 kB / 1.251 GB, free: 59.33 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04461/2.57, allocations: 21.28 MB / 1.272 GB, free: 42.36 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1922/2.763, allocations: 9.102 MB / 1.281 GB, free: 101.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01328/2.776, allocations: 3.626 MB / 1.284 GB, free: 101.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04227/2.818, allocations: 41.99 MB / 1.325 GB, free: 88.24 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01565/2.834, allocations: 0.9763 MB / 1.326 GB, free: 88.24 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002085/2.836, allocations: 0.9498 MB / 1.327 GB, free: 88.24 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1453 * Number of states: 0 () * Number of discrete variables: 82 (init2.arrow.arrow.arrowLine.twoHeadedArrow,init2.arrow.headAtOrigin,init2.arrowColor[3],init2.arrowColor[2],init2.arrowColor[1],init.arrow.arrow.arrowLine.twoHeadedArrow,init.arrow.headAtOrigin,init.arrowColor[3],init.arrowColor[2],init.arrowColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],universalSpherical1.cylinderColor[3],universalSpherical1.cylinderColor[2],universalSpherical1.cylinderColor[1],universalSpherical1.sphereColor[3],universalSpherical1.sphereColor[2],universalSpherical1.sphereColor[1],universalSpherical1.rodColor[3],universalSpherical1.rodColor[2],universalSpherical1.rodColor[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[1],rs3.arrow.arrowLine.twoHeadedArrow,rs3.arrow.headAtOrigin,rs3.arrowColor[3],rs3.arrowColor[2],rs3.arrowColor[1],rs2.arrow.arrowLine.twoHeadedArrow,rs2.arrow.headAtOrigin,rs2.arrowColor[3],rs2.arrowColor[2],rs2.arrowColor[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],spherical1.sphereColor[3],spherical1.sphereColor[2],spherical1.sphereColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],rs1.arrow.arrowLine.twoHeadedArrow,rs1.arrow.headAtOrigin,rs1.arrowColor[3],rs1.arrowColor[2],rs1.arrowColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 (1884): * Single equations (assignments): 1857 * Array equations: 13 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(4,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 5 {1,1,4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(4,93.8%) 8,(8,76.6%) 20,(1,100.0%) 3,(1,100.0%) 9,(4,87.5%) 6,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002458/2.838, allocations: 0.8867 MB / 1.328 GB, free: 87.98 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001406/2.84, allocations: 0.7874 MB / 1.329 GB, free: 87.98 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05951/2.899, allocations: 25.75 MB / 1.354 GB, free: 86.54 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0557/2.955, allocations: 24.16 MB / 1.377 GB, free: 79.89 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-05/2.955, allocations: 25.19 kB / 1.377 GB, free: 79.89 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.659e-05/2.955, allocations: 28.94 kB / 1.377 GB, free: 79.89 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09922/3.054, allocations: 53.59 MB / 1.43 GB, free: 45.23 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.762e-05/3.055, allocations: 4 kB / 1.43 GB, free: 45.23 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005303/3.06, allocations: 0.8615 MB / 1.431 GB, free: 44.41 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.048/3.108, allocations: 12.85 MB / 1.443 GB, free: 31.64 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001097/3.109, allocations: 93.75 kB / 1.443 GB, free: 31.55 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2236/3.333, allocations: 53.29 MB / 1.495 GB, free: 90.27 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02654/3.359, allocations: 20.05 MB / 1.515 GB, free: 83.8 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.06989/3.429, allocations: 37.67 MB / 1.552 GB, free: 72.39 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.1044/3.534, allocations: 72.41 MB / 1.622 GB, free: 24.83 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002312/3.536, allocations: 0.8329 MB / 1.623 GB, free: 24.23 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002734/3.539, allocations: 43.31 kB / 1.623 GB, free: 24.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00748/3.546, allocations: 479.3 kB / 1.624 GB, free: 23.92 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001112/3.547, allocations: 265.2 kB / 1.624 GB, free: 23.79 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006813/3.548, allocations: 163.6 kB / 1.624 GB, free: 23.67 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.006981/3.555, allocations: 4.829 MB / 1.629 GB, free: 19.48 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01605/3.571, allocations: 3.938 MB / 1.633 GB, free: 15.55 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 30 ($STATESET5.x[5],$STATESET5.x[4],$STATESET5.x[3],$STATESET5.x[2],$STATESET5.x[1],$STATESET4.x[2],$STATESET4.x[1],$STATESET3.x[6],$STATESET3.x[5],$STATESET3.x[4],$STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[5],$STATESET2.x[4],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[2],$STATESET1.x[1],bodyBox.body.w_a[1],bodyBox.body.w_a[2],bodyBox.body.w_a[3],bodyBox1.body.w_a[1],bodyBox1.body.w_a[2],bodyBox1.body.w_a[3],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (390): * Single equations (assignments): 375 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(3,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {3,8} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 6,(4,87.5%) 6,(1,100.0%) 4,(4,93.8%) 8,(8,76.6%) 20,(7,93.9%) 12} * Non-linear torn systems: 1 {7 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.00097/3.572, allocations: 198.4 kB / 1.633 GB, free: 15.41 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.1943/3.766, allocations: 22.46 MB / 1.655 GB, free: 100.7 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.515e-06/3.766, allocations: 0 / 1.655 GB, free: 100.7 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0153/3.782, allocations: 10.43 MB / 1.665 GB, free: 99.43 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005824/3.787, allocations: 1.077 MB / 1.666 GB, free: 99.39 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05762/3.845, allocations: 30.15 MB / 1.695 GB, free: 94.64 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01602/3.861, allocations: 9.912 MB / 1.705 GB, free: 93.61 MB / 0.5105 GB Notification: Performance of SimCode: time 1.002e-06/3.861, allocations: 0 / 1.705 GB, free: 93.61 MB / 0.5105 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.UniversalSpherical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.UniversalSpherical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.UniversalSpherical.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.UniversalSpherical_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_UniversalSpherical_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_UniversalSpherical.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.UniversalSpherical.pipe 2>&1)