Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2.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.Forces.Spring2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Spring2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Spring2",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.001052/0.001052, allocations: 180.4 kB / 8.519 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.175/1.175, allocations: 221.4 MB / 230.3 MB, free: 7.703 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.0009055/0.0009055, allocations: 81.84 kB / 281.2 MB, free: 5.523 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.1586/0.1586, allocations: 44.15 MB / 376.1 MB, free: 3.254 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1733/0.332, allocations: 68.03 MB / 444.1 MB, free: 15.53 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09236/0.4244, allocations: 61.91 MB / 0.4942 GB, free: 1.543 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2591/0.6835, allocations: 103.9 MB / 0.5957 GB, free: 8.793 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002038/0.6837, allocations: 75.95 kB / 0.5957 GB, free: 8.719 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: 1730 * Number of variables: 1730 Notification: Performance of Generate backend data structure: time 0.2783/0.962, allocations: 101.9 MB / 0.6953 GB, free: 2.039 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/0.9621, allocations: 11.94 kB / 0.6953 GB, free: 2.027 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.146/1.108, allocations: 2.35 MB / 0.6976 GB, free: 168.2 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01527/1.123, allocations: 6.833 MB / 0.7042 GB, free: 167.9 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002133/1.124, allocations: 156.8 kB / 0.7044 GB, free: 167.9 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001587/1.125, allocations: 294.6 kB / 0.7047 GB, free: 167.9 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01072/1.136, allocations: 7.64 MB / 0.7121 GB, free: 167.9 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01615/1.152, allocations: 11.23 MB / 0.7231 GB, free: 164.7 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002107/1.152, allocations: 74.06 kB / 0.7232 GB, free: 164.7 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009029/1.153, allocations: 35.69 kB / 0.7232 GB, free: 164.7 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001696/1.155, allocations: 1.325 MB / 0.7245 GB, free: 164.7 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0555/1.211, allocations: 58.66 MB / 0.7818 GB, free: 124.8 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004407/1.215, allocations: 3.716 MB / 0.7854 GB, free: 122.9 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003476/1.219, allocations: 2.794 MB / 0.7881 GB, free: 121.8 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01589/1.234, allocations: 9.931 MB / 0.7978 GB, free: 116.2 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.478e-05/1.235, allocations: 56.38 kB / 0.7979 GB, free: 116.2 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=214): time 5.63e-06/1.235, allocations: 0 / 0.7979 GB, free: 116.2 MB / 0.4948 GB Notification: Performance of matching and sorting (n=243): time 0.04302/1.278, allocations: 19.53 MB / 0.817 GB, free: 100.1 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.086e-05/1.278, allocations: 205.9 kB / 0.8172 GB, free: 99.86 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005499/1.283, allocations: 3.516 MB / 0.8206 GB, free: 96.75 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0005299/1.284, allocations: 25.7 kB / 0.8206 GB, free: 96.72 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001549/1.285, allocations: 3.319 MB / 0.8239 GB, free: 93.73 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001161/1.286, allocations: 0.9526 MB / 0.8248 GB, free: 92.87 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007994/1.287, allocations: 0 / 0.8248 GB, free: 92.87 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0005095/1.288, allocations: 0.6259 MB / 0.8254 GB, free: 92.33 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004234/1.292, allocations: 3.052 MB / 0.8284 GB, free: 89.63 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006001/1.298, allocations: 7.409 MB / 0.8356 GB, free: 80.51 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006545/1.305, allocations: 4.872 MB / 0.8404 GB, free: 76.39 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001031/1.305, allocations: 52 kB / 0.8404 GB, free: 76.34 MB / 0.4948 GB Notification: Performance of matching and sorting (n=997) (initialization): time 0.02436/1.329, allocations: 12.13 MB / 0.8523 GB, free: 66.3 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/1.329, allocations: 4.609 kB / 0.8523 GB, free: 66.29 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01498/1.344, allocations: 6.388 MB / 0.8585 GB, free: 60.87 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01094/1.355, allocations: 3.099 MB / 0.8615 GB, free: 57.74 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005786/1.361, allocations: 1.72 MB / 0.8632 GB, free: 56.02 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01653/1.378, allocations: 15.31 MB / 0.8782 GB, free: 40.04 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007231/1.385, allocations: 495.3 kB / 0.8786 GB, free: 39.56 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001461/1.386, allocations: 475.9 kB / 0.8791 GB, free: 39.09 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 708 * Number of states: 0 () * Number of discrete variables: 45 (fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[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 (920): * Single equations (assignments): 900 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 5 {(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 3 {4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,100.0%) 11,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001909/1.388, allocations: 0.4923 MB / 0.8796 GB, free: 38.59 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009571/1.389, allocations: 383 kB / 0.8799 GB, free: 38.21 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01479/1.404, allocations: 6.805 MB / 0.8866 GB, free: 31.38 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01348/1.418, allocations: 6.208 MB / 0.8926 GB, free: 25.14 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.327e-05/1.418, allocations: 8 kB / 0.8926 GB, free: 25.14 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.096e-05/1.418, allocations: 7.969 kB / 0.8927 GB, free: 25.13 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02881/1.446, allocations: 14.24 MB / 0.9066 GB, free: 10.81 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.225e-05/1.447, allocations: 8.188 kB / 0.9066 GB, free: 10.8 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002127/1.449, allocations: 383.5 kB / 0.9069 GB, free: 10.43 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01014/1.459, allocations: 3.121 MB / 0.91 GB, free: 7.273 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005618/1.459, allocations: 43.94 kB / 0.91 GB, free: 7.23 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1541/1.614, allocations: 16.41 MB / 0.9261 GB, free: 145.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001819/1.615, allocations: 4.151 MB / 0.9301 GB, free: 141.2 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01732/1.633, allocations: 10.7 MB / 0.9406 GB, free: 140.3 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02074/1.654, allocations: 14.21 MB / 0.9544 GB, free: 139 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001016/1.655, allocations: 450.4 kB / 0.9549 GB, free: 138.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001129/1.656, allocations: 23.84 kB / 0.9549 GB, free: 138.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003202/1.659, allocations: 200.5 kB / 0.9551 GB, free: 138.9 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005483/1.66, allocations: 128.4 kB / 0.9552 GB, free: 138.9 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003826/1.66, allocations: 75.61 kB / 0.9553 GB, free: 138.9 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.003898/1.664, allocations: 2.334 MB / 0.9575 GB, free: 138.7 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.007796/1.672, allocations: 1.389 MB / 0.9589 GB, free: 138.7 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 36 ($STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],body2.frame_a.r_0[1],body2.frame_a.r_0[2],body2.frame_a.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.w_a[1],body2.w_a[2],body2.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (179): * Single equations (assignments): 165 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 5 {(4,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 3 {4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,100.0%) 10,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008323/1.673, allocations: 201.8 kB / 0.9591 GB, free: 138.6 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01483/1.687, allocations: 8.863 MB / 0.9678 GB, free: 137.1 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 6.823e-06/1.687, allocations: 0 / 0.9678 GB, free: 137.1 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.008082/1.695, allocations: 4.282 MB / 0.9719 GB, free: 135.1 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002627/1.698, allocations: 402.7 kB / 0.9723 GB, free: 135 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02197/1.72, allocations: 11.42 MB / 0.9835 GB, free: 131.1 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006029/1.726, allocations: 4.197 MB / 0.9876 GB, free: 129.7 MB / 0.4948 GB Notification: Performance of SimCode: time 3.256e-06/1.726, allocations: 3.344 kB / 0.9876 GB, free: 129.7 MB / 0.4948 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Spring2_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Spring2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2.pipe 2>&1)