Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",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.0009371/0.0009371, allocations: 180.5 kB / 8.133 MB, free: 2.215 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.09/1.09, allocations: 221.4 MB / 229.9 MB, free: 3.004 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.0009504/0.0009506, allocations: 99.59 kB / 280.8 MB, free: 1.219 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08774/0.08872, allocations: 55.82 MB / 336.6 MB, free: 9.379 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1725/0.2612, allocations: 50.39 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09387/0.3551, allocations: 98.03 MB / 485 MB, free: 4.691 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002082/0.3554, allocations: 91.88 kB / 485.1 MB, free: 4.602 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.3442/0.6996, allocations: 96.44 MB / 0.5679 GB, free: 40.68 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.992e-05/0.6997, allocations: 8 kB / 0.5679 GB, free: 40.68 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00965/0.7093, allocations: 2.209 MB / 0.5701 GB, free: 38.46 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01045/0.7198, allocations: 5.356 MB / 0.5753 GB, free: 33.04 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001294/0.7199, allocations: 163.9 kB / 0.5755 GB, free: 32.88 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008281/0.7207, allocations: 279.9 kB / 0.5758 GB, free: 32.6 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008005/0.7288, allocations: 7.164 MB / 0.5827 GB, free: 25.43 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01007/0.7388, allocations: 10.62 MB / 0.5931 GB, free: 13.66 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001163/0.739, allocations: 67.39 kB / 0.5932 GB, free: 13.59 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004979/0.7395, allocations: 39.98 kB / 0.5932 GB, free: 13.55 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001392/0.7409, allocations: 1.28 MB / 0.5945 GB, free: 12.27 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04469/0.7856, allocations: 53.45 MB / 0.6467 GB, free: 5.016 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003053/0.7887, allocations: 2.64 MB / 0.6492 GB, free: 2.227 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001982/0.7907, allocations: 1.758 MB / 0.651 GB, free: 472 kB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1148/0.9055, allocations: 6.662 MB / 0.6575 GB, free: 127.8 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.82e-05/0.9056, allocations: 52.34 kB / 0.6575 GB, free: 127.8 MB / 426.7 MB Notification: Performance of pre-optimization done (n=179): time 3.947e-06/0.9056, allocations: 0 / 0.6575 GB, free: 127.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=195): time 0.02048/0.9261, allocations: 11.97 MB / 0.6692 GB, free: 125.1 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.123e-05/0.9262, allocations: 147.1 kB / 0.6694 GB, free: 124.9 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003513/0.9297, allocations: 3.247 MB / 0.6725 GB, free: 124.6 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001141/0.9298, allocations: 25.7 kB / 0.6725 GB, free: 124.6 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001262/0.9311, allocations: 3.256 MB / 0.6757 GB, free: 122.5 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004518/0.9315, allocations: 0.7485 MB / 0.6765 GB, free: 122.1 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002267/0.9318, allocations: 0 / 0.6765 GB, free: 122.1 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002554/0.932, allocations: 0.5984 MB / 0.677 GB, free: 121.8 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002279/0.9343, allocations: 2.086 MB / 0.6791 GB, free: 121.8 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003672/0.938, allocations: 6.287 MB / 0.6852 GB, free: 116.3 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003545/0.9416, allocations: 3.585 MB / 0.6887 GB, free: 116.3 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.724e-05/0.9416, allocations: 42.41 kB / 0.6888 GB, free: 116.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=900) (initialization): time 0.0114/0.953, allocations: 8.073 MB / 0.6966 GB, free: 115.7 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/0.9531, allocations: 3.812 kB / 0.6966 GB, free: 115.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004396/0.9575, allocations: 2.675 MB / 0.6993 GB, free: 115.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002963/0.9605, allocations: 1.024 MB / 0.7003 GB, free: 115.6 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004288/0.9648, allocations: 1.606 MB / 0.7018 GB, free: 115.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003336/0.9681, allocations: 4.172 MB / 0.7059 GB, free: 113 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004395/0.9725, allocations: 317.7 kB / 0.7062 GB, free: 112.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000541/0.9731, allocations: 422.9 kB / 0.7066 GB, free: 112.9 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 688 * Number of states: 0 () * Number of discrete variables: 45 (damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.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 (862): * Single equations (assignments): 853 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006517/0.9737, allocations: 494 kB / 0.7071 GB, free: 112.6 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004354/0.9742, allocations: 340.3 kB / 0.7074 GB, free: 112.4 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005508/0.9797, allocations: 3.015 MB / 0.7103 GB, free: 112.3 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004577/0.9843, allocations: 2.52 MB / 0.7128 GB, free: 111.8 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.135e-05/0.9843, allocations: 3.5 kB / 0.7128 GB, free: 111.8 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.702e-05/0.9843, allocations: 8.531 kB / 0.7128 GB, free: 111.8 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01332/0.9976, allocations: 9.017 MB / 0.7216 GB, free: 108.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.33e-05/0.9977, allocations: 10.78 kB / 0.7216 GB, free: 108.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001401/0.9991, allocations: 331.7 kB / 0.7219 GB, free: 108.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002738/1.002, allocations: 0.9193 MB / 0.7228 GB, free: 108.2 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001352/1.002, allocations: 36.48 kB / 0.7229 GB, free: 108.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003885/1.006, allocations: 4.403 MB / 0.7272 GB, free: 104.6 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0005829/1.006, allocations: 1.368 MB / 0.7285 GB, free: 103.2 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006704/1.013, allocations: 6.825 MB / 0.7352 GB, free: 96.74 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008141/1.021, allocations: 8.896 MB / 0.7439 GB, free: 88.36 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005713/1.022, allocations: 407.3 kB / 0.7443 GB, free: 87.95 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004564/1.022, allocations: 27.84 kB / 0.7443 GB, free: 87.93 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001618/1.024, allocations: 103.8 kB / 0.7444 GB, free: 87.86 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001996/1.024, allocations: 127.6 kB / 0.7445 GB, free: 87.78 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001307/1.024, allocations: 71.73 kB / 0.7446 GB, free: 87.71 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.002407/1.027, allocations: 2.14 MB / 0.7467 GB, free: 85.86 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005173/1.032, allocations: 1.008 MB / 0.7476 GB, free: 84.86 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 50 * Number of states: 14 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],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],p2.s,p2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (169): * Single equations (assignments): 162 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003804/1.032, allocations: 194.8 kB / 0.7478 GB, free: 84.68 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006637/1.039, allocations: 5.487 MB / 0.7532 GB, free: 79.7 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/1.039, allocations: 8.062 kB / 0.7532 GB, free: 79.7 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002916/1.042, allocations: 2 MB / 0.7552 GB, free: 77.87 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001396/1.043, allocations: 361.3 kB / 0.7555 GB, free: 77.55 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01154/1.055, allocations: 8.794 MB / 0.7641 GB, free: 69.58 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003829/1.059, allocations: 3.888 MB / 0.7679 GB, free: 66.57 MB / 426.7 MB Notification: Performance of SimCode: time 3.71e-07/1.059, allocations: 0 / 0.7679 GB, free: 66.57 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1)