Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.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.InitSpringConstant,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant",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.001541/0.001541, allocations: 182 kB / 8.136 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.344/1.344, allocations: 221.4 MB / 229.9 MB, free: 3.074 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.0009877/0.0009877, allocations: 97.91 kB / 280.8 MB, free: 1.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09256/0.09358, allocations: 55.83 MB / 336.6 MB, free: 9.406 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2046/0.2982, allocations: 50.39 MB / 387 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1459/0.4441, allocations: 98.65 MB / 485.7 MB, free: 4.09 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002256/0.4444, allocations: 93.66 kB / 485.7 MB, free: 4 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: 1275 * Number of variables: 1275 Notification: Performance of Generate backend data structure: time 0.3274/0.7718, allocations: 75.12 MB / 0.5477 GB, free: 61.58 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.781e-05/0.7719, allocations: 8 kB / 0.5477 GB, free: 61.57 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008567/0.7804, allocations: 1.703 MB / 0.5494 GB, free: 59.86 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009721/0.7902, allocations: 3.933 MB / 0.5532 GB, free: 55.87 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001374/0.7904, allocations: 112 kB / 0.5533 GB, free: 55.76 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001184/0.7916, allocations: 211.8 kB / 0.5535 GB, free: 55.55 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00785/0.7994, allocations: 5.272 MB / 0.5587 GB, free: 50.27 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01044/0.8099, allocations: 8.191 MB / 0.5667 GB, free: 41.1 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000143/0.81, allocations: 51.47 kB / 0.5667 GB, free: 41.05 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006107/0.8107, allocations: 32 kB / 0.5668 GB, free: 41.02 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009563/0.8116, allocations: 0.9421 MB / 0.5677 GB, free: 40.08 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03324/0.8449, allocations: 41.92 MB / 0.6086 GB, free: 12.82 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003156/0.8481, allocations: 2.56 MB / 0.6111 GB, free: 10.1 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001947/0.85, allocations: 1.556 MB / 0.6126 GB, free: 8.535 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008276/0.8583, allocations: 5.499 MB / 0.618 GB, free: 2.773 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.49e-05/0.8584, allocations: 55.2 kB / 0.6181 GB, free: 2.711 MB / 394.7 MB Notification: Performance of pre-optimization done (n=121): time 5.581e-06/0.8584, allocations: 0 / 0.6181 GB, free: 2.711 MB / 394.7 MB Notification: Performance of matching and sorting (n=130): time 0.02108/0.8795, allocations: 10.79 MB / 0.6286 GB, free: 7.785 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.334e-05/0.8796, allocations: 141.1 kB / 0.6287 GB, free: 7.617 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003979/0.8836, allocations: 2.845 MB / 0.6315 GB, free: 4.77 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001178/0.8837, allocations: 25.7 kB / 0.6315 GB, free: 4.738 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00167/0.8854, allocations: 2.631 MB / 0.6341 GB, free: 2.066 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004888/0.8859, allocations: 0.5093 MB / 0.6346 GB, free: 1.551 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001762/0.8861, allocations: 0 / 0.6346 GB, free: 1.551 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003561/0.8865, allocations: 0.5413 MB / 0.6351 GB, free: 1.004 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002388/0.8888, allocations: 1.643 MB / 0.6367 GB, free: 15.35 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00459/0.8934, allocations: 5.169 MB / 0.6418 GB, free: 8.383 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003805/0.8973, allocations: 2.91 MB / 0.6446 GB, free: 5.469 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.163e-05/0.8973, allocations: 36 kB / 0.6447 GB, free: 5.434 MB / 426.7 MB Notification: Performance of matching and sorting (n=719) (initialization): time 0.1215/1.019, allocations: 6.072 MB / 0.6506 GB, free: 133.8 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.357e-05/1.019, allocations: 7.156 kB / 0.6506 GB, free: 133.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001444/1.019, allocations: 124.4 kB / 0.6507 GB, free: 133.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006337/1.02, allocations: 339.9 kB / 0.651 GB, free: 133.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004245/1.024, allocations: 1.303 MB / 0.6523 GB, free: 133.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001911/1.026, allocations: 2.187 MB / 0.6545 GB, free: 132.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003346/1.029, allocations: 164.4 kB / 0.6546 GB, free: 132.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003935/1.03, allocations: 351.4 kB / 0.6549 GB, free: 132.5 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 581 * Number of states: 0 () * Number of discrete variables: 33 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixed.color[3],fixed.color[2],fixed.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[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 (691): * Single equations (assignments): 687 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005185/1.03, allocations: 424 kB / 0.6553 GB, free: 132.4 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003435/1.03, allocations: 276.6 kB / 0.6556 GB, free: 132.4 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00403/1.035, allocations: 2.225 MB / 0.6578 GB, free: 132.3 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-05/1.035, allocations: 13.56 kB / 0.6578 GB, free: 132.3 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.595e-06/1.035, allocations: 3.594 kB / 0.6578 GB, free: 132.3 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.164e-05/1.035, allocations: 10.38 kB / 0.6578 GB, free: 132.3 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009088/1.044, allocations: 5.282 MB / 0.663 GB, free: 132 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.181e-05/1.044, allocations: 6.062 kB / 0.663 GB, free: 132 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009084/1.045, allocations: 169 kB / 0.6631 GB, free: 132 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002081/1.047, allocations: 0.6446 MB / 0.6638 GB, free: 132 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001392/1.047, allocations: 3.656 kB / 0.6638 GB, free: 132 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004851/1.052, allocations: 4.206 MB / 0.6679 GB, free: 130.7 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/1.052, allocations: 3.281 kB / 0.6679 GB, free: 130.7 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005865/1.058, allocations: 4.375 MB / 0.6722 GB, free: 130.2 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007164/1.065, allocations: 6.096 MB / 0.6781 GB, free: 129.2 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006179/1.066, allocations: 333.8 kB / 0.6784 GB, free: 129 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003763/1.066, allocations: 3.312 kB / 0.6784 GB, free: 129 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001069/1.067, allocations: 37 kB / 0.6785 GB, free: 129 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000144/1.067, allocations: 54.91 kB / 0.6785 GB, free: 129 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.827e-05/1.067, allocations: 38.12 kB / 0.6785 GB, free: 129 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.002669/1.07, allocations: 1.893 MB / 0.6804 GB, free: 128.8 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004773/1.075, allocations: 0.7082 MB / 0.6811 GB, free: 128.8 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (97): * Single equations (assignments): 93 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003864/1.075, allocations: 160.5 kB / 0.6812 GB, free: 128.7 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004807/1.08, allocations: 3.873 MB / 0.685 GB, free: 128.6 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/1.08, allocations: 0 / 0.685 GB, free: 128.6 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001255/1.081, allocations: 1.081 MB / 0.6861 GB, free: 128.5 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001426/1.083, allocations: 291 kB / 0.6864 GB, free: 128.5 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00991/1.093, allocations: 5.963 MB / 0.6922 GB, free: 127.3 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003751/1.096, allocations: 3.097 MB / 0.6952 GB, free: 126.3 MB / 426.7 MB Notification: Performance of SimCode: time 8.82e-07/1.096, allocations: 0 / 0.6952 GB, free: 126.3 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe 2>&1)