Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.SphericalSpherical2.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.Joints.SphericalSpherical2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_SphericalSpherical2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.SphericalSpherical2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_SphericalSpherical2",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.001291/0.001291, allocations: 187 kB / 7.805 MB, free: 2.488 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.357/1.357, allocations: 205.2 MB / 213.4 MB, free: 13.86 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.0009638/0.0009636, allocations: 88.2 kB / 261.4 MB, free: 13.54 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.1941/0.1941, allocations: 43.49 MB / 352.8 MB, free: 1.957 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2194/0.4135, allocations: 64.97 MB / 417.8 MB, free: 40.47 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3239/0.7374, allocations: 58.84 MB / 476.7 MB, free: 5.293 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.17/0.9075, allocations: 116.6 MB / 0.5794 GB, free: 14.34 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003609/0.9079, allocations: 79.45 kB / 0.5794 GB, free: 14.26 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: 4612 * Number of variables: 4612 Notification: Performance of Generate backend data structure: time 0.8415/1.749, allocations: 235.2 MB / 0.8091 GB, free: 13.08 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.612e-05/1.75, allocations: 12 kB / 0.8091 GB, free: 13.07 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04789/1.797, allocations: 10.39 MB / 0.8193 GB, free: 2.645 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4197/2.217, allocations: 15.59 MB / 0.8345 GB, free: 88.04 MB / 490.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007457/2.218, allocations: 478.4 kB / 0.835 GB, free: 88.04 MB / 490.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005658/2.224, allocations: 0.8572 MB / 0.8358 GB, free: 88.03 MB / 490.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03815/2.262, allocations: 18.68 MB / 0.854 GB, free: 87.96 MB / 490.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07394/2.336, allocations: 27.38 MB / 0.8808 GB, free: 81.55 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001231/2.337, allocations: 149.2 kB / 0.8809 GB, free: 81.54 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007979/2.345, allocations: 71.25 kB / 0.881 GB, free: 81.54 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004633/2.35, allocations: 2.482 MB / 0.8834 GB, free: 81.52 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1689/2.519, allocations: 127.5 MB / 1.008 GB, free: 8.637 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.011/2.53, allocations: 7.371 MB / 1.015 GB, free: 1.82 MB / 0.4949 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.2815/2.811, allocations: 7.679 MB / 1.023 GB, free: 102.1 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04708/2.858, allocations: 23.45 MB / 1.046 GB, free: 95.72 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.38e-05/2.859, allocations: 79.44 kB / 1.046 GB, free: 95.68 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=411): time 8.927e-06/2.859, allocations: 2.375 kB / 1.046 GB, free: 95.68 MB / 0.4949 GB Notification: Performance of matching and sorting (n=542): time 0.2762/3.135, allocations: 89.95 MB / 1.133 GB, free: 83.8 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002085/3.135, allocations: 344.2 kB / 1.134 GB, free: 83.45 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.023/3.158, allocations: 7.648 MB / 1.141 GB, free: 80.51 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.002033/3.16, allocations: 25.7 kB / 1.141 GB, free: 80.48 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.006979/3.167, allocations: 8.295 MB / 1.149 GB, free: 73.05 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.005615/3.173, allocations: 2.04 MB / 1.151 GB, free: 71.22 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004258/3.177, allocations: 0 / 1.151 GB, free: 71.22 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.002459/3.18, allocations: 0.9973 MB / 1.152 GB, free: 70.41 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01637/3.196, allocations: 9.149 MB / 1.161 GB, free: 62.16 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02406/3.22, allocations: 18.58 MB / 1.179 GB, free: 40.27 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3181/3.538, allocations: 13.14 MB / 1.192 GB, free: 84.68 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003094/3.539, allocations: 95.28 kB / 1.192 GB, free: 84.68 MB / 0.4949 GB Notification: Performance of matching and sorting (n=2130) (initialization): time 0.09022/3.629, allocations: 34.5 MB / 1.226 GB, free: 83.85 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 2.72e-05/3.629, allocations: 2.75 kB / 1.226 GB, free: 83.85 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.05568/3.685, allocations: 23.05 MB / 1.249 GB, free: 83.54 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03816/3.723, allocations: 10.34 MB / 1.259 GB, free: 83.44 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0154/3.738, allocations: 3.769 MB / 1.262 GB, free: 83.12 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06101/3.799, allocations: 45.82 MB / 1.307 GB, free: 62.03 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01906/3.819, allocations: 1.077 MB / 1.308 GB, free: 62.03 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005038/3.824, allocations: 1.005 MB / 1.309 GB, free: 61.9 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1532 * Number of states: 0 () * Number of discrete variables: 78 (freeMotionScalarInit1.arrowColor[3],freeMotionScalarInit1.arrowColor[2],freeMotionScalarInit1.arrowColor[1],freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],rs3.arrowColor[3],rs3.arrowColor[2],rs3.arrowColor[1],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],sphericalSpherical1.massColor[3],sphericalSpherical1.massColor[2],sphericalSpherical1.massColor[1],sphericalSpherical1.sphereColor[3],sphericalSpherical1.sphereColor[2],sphericalSpherical1.sphereColor[1],sphericalSpherical1.rodColor[3],sphericalSpherical1.rodColor[2],sphericalSpherical1.rodColor[1],body.sphereColor[3],body.sphereColor[2],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.arrowColor[3],rs1.arrowColor[2],rs1.arrowColor[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.rodColor[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 (1963): * Single equations (assignments): 1934 * Array equations: 15 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 10 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 4 {(4,100.0%),(4,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 6 {1,1,4,4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(8,82.8%) 29,(1,100.0%) 3,(4,93.8%) 17,(7,63.3%) 20} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005445/3.829, allocations: 0.9249 MB / 1.31 GB, free: 61.21 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002307/3.831, allocations: 0.8348 MB / 1.311 GB, free: 60.82 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06539/3.897, allocations: 27.61 MB / 1.338 GB, free: 40.71 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.06461/3.961, allocations: 25.98 MB / 1.363 GB, free: 20.25 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001231/3.962, allocations: 31.28 kB / 1.363 GB, free: 20.23 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002104/3.962, allocations: 27.89 kB / 1.363 GB, free: 20.2 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4211/4.383, allocations: 55.23 MB / 1.417 GB, free: 78.39 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.599e-05/4.383, allocations: 5.188 kB / 1.417 GB, free: 78.39 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005817/4.389, allocations: 0.8444 MB / 1.418 GB, free: 78.39 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0527/4.442, allocations: 14.45 MB / 1.432 GB, free: 78.29 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002039/4.444, allocations: 105.3 kB / 1.432 GB, free: 78.29 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.08269/4.526, allocations: 59.76 MB / 1.491 GB, free: 53.95 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02935/4.556, allocations: 21.68 MB / 1.512 GB, free: 37.16 MB / 0.4949 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.394/4.95, allocations: 39.48 MB / 1.55 GB, free: 73.28 MB / 0.4949 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.1289/5.079, allocations: 74.17 MB / 1.623 GB, free: 62.88 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003768/5.083, allocations: 0.8775 MB / 1.624 GB, free: 62.73 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005146/5.088, allocations: 48.89 kB / 1.624 GB, free: 62.72 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0101/5.098, allocations: 0.5061 MB / 1.624 GB, free: 62.72 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002533/5.101, allocations: 295.1 kB / 1.624 GB, free: 62.68 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00208/5.103, allocations: 185 kB / 1.625 GB, free: 62.65 MB / 0.4949 GB Notification: Performance of sort global known variables: time 0.01315/5.116, allocations: 5.126 MB / 1.63 GB, free: 60.83 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.02642/5.142, allocations: 4.197 MB / 1.634 GB, free: 60.82 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 32 ($STATESET6.x[5],$STATESET6.x[4],$STATESET6.x[3],$STATESET6.x[2],$STATESET6.x[1],$STATESET5.x[2],$STATESET5.x[1],$STATESET4.x[3],$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],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 (385): * Single equations (assignments): 370 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * 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: 3 {3,4,8} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(8,82.8%) 29,(7,93.9%) 12,(4,93.8%) 17,(3,100.0%) 3,(7,63.3%) 20} * Non-linear torn systems: 1 {7 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.002439/5.145, allocations: 207.7 kB / 1.634 GB, free: 60.73 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.04819/5.193, allocations: 23.16 MB / 1.657 GB, free: 52.32 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.111e-05/5.193, allocations: 3.906 kB / 1.657 GB, free: 52.32 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.0225/5.216, allocations: 10.9 MB / 1.667 GB, free: 44.34 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01148/5.227, allocations: 1.097 MB / 1.668 GB, free: 43.47 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0998/5.327, allocations: 31.83 MB / 1.699 GB, free: 15.84 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02587/5.353, allocations: 10.28 MB / 1.709 GB, free: 8.266 MB / 0.4949 GB Notification: Performance of SimCode: time 2.725e-06/5.353, allocations: 0 / 1.709 GB, free: 8.266 MB / 0.4949 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.SphericalSpherical2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.SphericalSpherical2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.SphericalSpherical2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.SphericalSpherical2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.SphericalSpherical2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_SphericalSpherical2_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_SphericalSpherical2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.SphericalSpherical2.pipe 2>&1)