Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.0009964/0.0009964, allocations: 178.9 kB / 8.477 MB, free: 1.883 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.112/1.112, allocations: 205.2 MB / 214.1 MB, free: 5.082 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009394/0.0009391, allocations: 82.33 kB / 262.1 MB, free: 5.145 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1506/0.1515, allocations: 52.98 MB / 315.1 MB, free: 41.39 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06155/0.2131, allocations: 47.57 MB / 362.6 MB, free: 9.855 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2221/0.4352, allocations: 96.45 MB / 459.1 MB, free: 7.273 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000201/0.4355, allocations: 84.33 kB / 459.2 MB, free: 7.262 MB / 314.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.2528/0.6882, allocations: 95.36 MB / 0.5415 GB, free: 4.027 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.304e-05/0.6883, allocations: 8 kB / 0.5415 GB, free: 4.02 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01104/0.6993, allocations: 2.217 MB / 0.5437 GB, free: 1.789 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01391/0.7133, allocations: 5.653 MB / 0.5492 GB, free: 12.07 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002039/0.7135, allocations: 164 kB / 0.5494 GB, free: 11.91 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001333/0.7148, allocations: 279.9 kB / 0.5496 GB, free: 11.64 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01138/0.7262, allocations: 7.164 MB / 0.5566 GB, free: 4.457 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01339/0.7396, allocations: 10.62 MB / 0.567 GB, free: 8.672 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001365/0.7398, allocations: 71.33 kB / 0.5671 GB, free: 8.602 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005098/0.7403, allocations: 36 kB / 0.5671 GB, free: 8.566 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001737/0.7421, allocations: 1.268 MB / 0.5684 GB, free: 7.293 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1505/0.8925, allocations: 53.51 MB / 0.6206 GB, free: 103.3 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002622/0.8952, allocations: 2.639 MB / 0.6232 GB, free: 102.6 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001703/0.8969, allocations: 1.741 MB / 0.6249 GB, free: 102.6 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008356/0.9053, allocations: 6.699 MB / 0.6314 GB, free: 100.1 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.525e-05/0.9053, allocations: 55.61 kB / 0.6315 GB, free: 100.1 MB / 426.7 MB Notification: Performance of pre-optimization done (n=179): time 4.167e-06/0.9053, allocations: 0 / 0.6315 GB, free: 100.1 MB / 426.7 MB Notification: Performance of matching and sorting (n=195): time 0.02285/0.9282, allocations: 12.08 MB / 0.6433 GB, free: 96.94 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.778e-05/0.9283, allocations: 148.9 kB / 0.6434 GB, free: 96.78 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003631/0.9319, allocations: 3.268 MB / 0.6466 GB, free: 96.45 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001247/0.932, allocations: 25.7 kB / 0.6466 GB, free: 96.42 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001255/0.9333, allocations: 3.265 MB / 0.6498 GB, free: 94.58 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004693/0.9338, allocations: 0.7515 MB / 0.6506 GB, free: 94.05 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002332/0.934, allocations: 0 / 0.6506 GB, free: 94.05 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002756/0.9343, allocations: 0.5934 MB / 0.6511 GB, free: 93.62 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002368/0.9367, allocations: 2.09 MB / 0.6532 GB, free: 92.94 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003703/0.9404, allocations: 6.284 MB / 0.6593 GB, free: 86.57 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003702/0.9441, allocations: 3.582 MB / 0.6628 GB, free: 85.6 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.633e-05/0.9442, allocations: 47.72 kB / 0.6629 GB, free: 85.6 MB / 426.7 MB Notification: Performance of matching and sorting (n=900) (initialization): time 0.01201/0.9562, allocations: 8.065 MB / 0.6707 GB, free: 83.21 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.9562, allocations: 3.938 kB / 0.6707 GB, free: 83.21 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004537/0.9608, allocations: 2.676 MB / 0.6734 GB, free: 82.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003589/0.9644, allocations: 1.029 MB / 0.6744 GB, free: 82.35 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005077/0.9695, allocations: 1.603 MB / 0.6759 GB, free: 82.16 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003523/0.973, allocations: 4.177 MB / 0.68 GB, free: 79.26 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004969/0.978, allocations: 316 kB / 0.6803 GB, free: 79.23 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004811/0.9785, allocations: 426.8 kB / 0.6807 GB, free: 79.18 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.0006959/0.9792, allocations: 483.5 kB / 0.6812 GB, free: 78.78 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004188/0.9796, allocations: 348.3 kB / 0.6815 GB, free: 78.59 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005278/0.9849, allocations: 3.013 MB / 0.6844 GB, free: 76.5 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004289/0.9892, allocations: 2.518 MB / 0.6869 GB, free: 74.46 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.829e-06/0.9892, allocations: 8 kB / 0.6869 GB, free: 74.45 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.603e-05/0.9892, allocations: 11.02 kB / 0.6869 GB, free: 74.45 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01386/1.003, allocations: 9.014 MB / 0.6957 GB, free: 67.12 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.317e-05/1.003, allocations: 12 kB / 0.6957 GB, free: 67.11 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001449/1.005, allocations: 325.3 kB / 0.696 GB, free: 66.84 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002788/1.007, allocations: 0.916 MB / 0.6969 GB, free: 66.21 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001456/1.008, allocations: 43.39 kB / 0.697 GB, free: 66.18 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003852/1.011, allocations: 4.388 MB / 0.7013 GB, free: 62.07 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0005951/1.012, allocations: 1.381 MB / 0.7026 GB, free: 60.61 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007066/1.019, allocations: 6.833 MB / 0.7093 GB, free: 54.11 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008694/1.028, allocations: 8.906 MB / 0.718 GB, free: 45.74 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001489/1.029, allocations: 0.6215 MB / 0.7186 GB, free: 45.15 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004993/1.03, allocations: 27.22 kB / 0.7186 GB, free: 45.13 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001745/1.032, allocations: 102.6 kB / 0.7187 GB, free: 45.06 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002191/1.032, allocations: 121.6 kB / 0.7188 GB, free: 44.98 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001554/1.032, allocations: 74.78 kB / 0.7189 GB, free: 44.91 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.002672/1.035, allocations: 2.161 MB / 0.721 GB, free: 43.05 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005267/1.04, allocations: 1.005 MB / 0.722 GB, free: 42.05 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.0003995/1.04, allocations: 196.6 kB / 0.7222 GB, free: 41.87 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007193/1.048, allocations: 5.482 MB / 0.7275 GB, free: 36.89 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/1.048, allocations: 4.125 kB / 0.7275 GB, free: 36.89 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003152/1.051, allocations: 2.013 MB / 0.7295 GB, free: 35.05 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001627/1.052, allocations: 369.5 kB / 0.7299 GB, free: 34.73 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01314/1.066, allocations: 8.811 MB / 0.7385 GB, free: 26.74 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003932/1.07, allocations: 3.893 MB / 0.7423 GB, free: 23.45 MB / 426.7 MB Notification: Performance of SimCode: time 7.02e-07/1.07, allocations: 0 / 0.7423 GB, free: 23.45 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1)