Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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.SpringWithMass,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",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.001046/0.001046, allocations: 183.9 kB / 8.135 MB, free: 2.219 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.088/1.088, allocations: 221.4 MB / 229.9 MB, free: 3.062 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.001006/0.001006, allocations: 97.95 kB / 280.8 MB, free: 1.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08855/0.08958, allocations: 55.83 MB / 336.6 MB, free: 9.406 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1736/0.2632, allocations: 50.39 MB / 387 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09001/0.3532, allocations: 92.69 MB / 479.7 MB, free: 10.06 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002098/0.3535, allocations: 91.88 kB / 479.8 MB, free: 9.969 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: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.2756/0.6291, allocations: 59.81 MB / 0.527 GB, free: 82.11 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.449e-05/0.6291, allocations: 8 kB / 0.527 GB, free: 82.11 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007236/0.6364, allocations: 1.63 MB / 0.5286 GB, free: 80.47 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007548/0.6439, allocations: 3.517 MB / 0.532 GB, free: 76.94 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.697e-05/0.644, allocations: 80 kB / 0.5321 GB, free: 76.86 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004737/0.6445, allocations: 155.9 kB / 0.5322 GB, free: 76.71 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004672/0.6492, allocations: 4.214 MB / 0.5363 GB, free: 72.49 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006044/0.6552, allocations: 6.398 MB / 0.5426 GB, free: 65.36 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.468e-05/0.6553, allocations: 39.62 kB / 0.5426 GB, free: 65.32 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003135/0.6557, allocations: 20 kB / 0.5426 GB, free: 65.3 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007436/0.6564, allocations: 0.773 MB / 0.5434 GB, free: 64.54 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02145/0.6779, allocations: 32.05 MB / 0.5747 GB, free: 31.61 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00174/0.6796, allocations: 2.068 MB / 0.5767 GB, free: 29.4 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001045/0.6807, allocations: 1.166 MB / 0.5778 GB, free: 28.22 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005211/0.6859, allocations: 4.536 MB / 0.5823 GB, free: 23.44 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.822e-05/0.686, allocations: 43 kB / 0.5823 GB, free: 23.39 MB / 378.7 MB Notification: Performance of pre-optimization done (n=112): time 2.715e-06/0.686, allocations: 0 / 0.5823 GB, free: 23.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=125): time 0.01745/0.7034, allocations: 9.042 MB / 0.5911 GB, free: 14.22 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.233e-05/0.7035, allocations: 153.1 kB / 0.5913 GB, free: 14.04 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002122/0.7056, allocations: 2.158 MB / 0.5934 GB, free: 11.85 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.48e-05/0.7057, allocations: 25.7 kB / 0.5934 GB, free: 11.82 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007195/0.7064, allocations: 2.027 MB / 0.5954 GB, free: 9.758 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002998/0.7067, allocations: 0.4937 MB / 0.5959 GB, free: 9.258 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001637/0.7069, allocations: 0 / 0.5959 GB, free: 9.258 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002214/0.7071, allocations: 0.5519 MB / 0.5964 GB, free: 8.695 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00171/0.7088, allocations: 1.579 MB / 0.598 GB, free: 7.109 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002496/0.7113, allocations: 4.453 MB / 0.6023 GB, free: 1.199 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003584/0.7149, allocations: 2.84 MB / 0.6051 GB, free: 14.36 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.81e-05/0.715, allocations: 36 kB / 0.6051 GB, free: 14.32 MB / 394.7 MB Notification: Performance of matching and sorting (n=610) (initialization): time 0.01235/0.7274, allocations: 6.611 MB / 0.6116 GB, free: 7.711 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.318e-05/0.7274, allocations: 4 kB / 0.6116 GB, free: 7.707 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006362/0.7338, allocations: 2.649 MB / 0.6142 GB, free: 5.055 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005237/0.739, allocations: 1.407 MB / 0.6155 GB, free: 3.637 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002943/0.742, allocations: 1.037 MB / 0.6166 GB, free: 2.598 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01078/0.7527, allocations: 7.397 MB / 0.6238 GB, free: 10.98 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003171/0.7559, allocations: 231.7 kB / 0.624 GB, free: 10.75 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004371/0.7564, allocations: 300 kB / 0.6243 GB, free: 10.46 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 471 * Number of states: 0 () * Number of discrete variables: 21 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],spring.color[3],spring.color[2],spring.color[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (562): * Single equations (assignments): 554 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005098/0.7569, allocations: 352.5 kB / 0.6246 GB, free: 10.11 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003601/0.7573, allocations: 221.2 kB / 0.6248 GB, free: 9.887 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006921/0.7642, allocations: 2.907 MB / 0.6277 GB, free: 6.965 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006577/0.7708, allocations: 2.59 MB / 0.6302 GB, free: 4.363 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.541e-05/0.7708, allocations: 7.938 kB / 0.6302 GB, free: 4.355 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.949e-05/0.7709, allocations: 3.984 kB / 0.6302 GB, free: 4.352 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01336/0.7842, allocations: 6.304 MB / 0.6364 GB, free: 13.99 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.566e-06/0.7843, allocations: 7.938 kB / 0.6364 GB, free: 13.98 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008818/0.7852, allocations: 151.8 kB / 0.6365 GB, free: 13.83 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005/0.7902, allocations: 1.35 MB / 0.6378 GB, free: 12.47 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001418/0.7903, allocations: 16.45 kB / 0.6379 GB, free: 12.46 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01169/0.802, allocations: 7.705 MB / 0.6454 GB, free: 4.52 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008667/0.8029, allocations: 1.363 MB / 0.6467 GB, free: 3.035 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.1162/0.9192, allocations: 5.092 MB / 0.6517 GB, free: 149 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.009274/0.9285, allocations: 6.869 MB / 0.6584 GB, free: 148.1 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003963/0.9289, allocations: 287.5 kB / 0.6587 GB, free: 148 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003102/0.9292, allocations: 11.64 kB / 0.6587 GB, free: 148 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001175/0.9304, allocations: 76.97 kB / 0.6587 GB, free: 148 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001502/0.9306, allocations: 55.91 kB / 0.6588 GB, free: 148 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000113/0.9307, allocations: 47.28 kB / 0.6588 GB, free: 148 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001564/0.9323, allocations: 1.43 MB / 0.6602 GB, free: 147.8 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00377/0.936, allocations: 0.6953 MB / 0.6609 GB, free: 147.8 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($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]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (81): * Single equations (assignments): 75 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003618/0.9364, allocations: 169.2 kB / 0.6611 GB, free: 147.7 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00538/0.9418, allocations: 4.189 MB / 0.6652 GB, free: 147.4 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.9418, allocations: 0 / 0.6652 GB, free: 147.4 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002593/0.9444, allocations: 1.615 MB / 0.6668 GB, free: 147.1 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009066/0.9453, allocations: 195.7 kB / 0.6669 GB, free: 147.1 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007711/0.9531, allocations: 5.587 MB / 0.6724 GB, free: 146 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002224/0.9553, allocations: 2.571 MB / 0.6749 GB, free: 145.3 MB / 426.7 MB Notification: Performance of SimCode: time 4.51e-07/0.9553, allocations: 0 / 0.6749 GB, free: 145.3 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1)