Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001041/0.001041, allocations: 202.3 kB / 8.54 MB, free: 1.805 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.155/1.155, allocations: 225.5 MB / 234.4 MB, free: 3.371 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008827/0.0008828, allocations: 95.19 kB / 286.3 MB, free: 5.242 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09117/0.09208, allocations: 56.9 MB / 343.2 MB, free: 8.645 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0816/0.1737, allocations: 51.48 MB / 394.7 MB, free: 5.109 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2171/0.3909, allocations: 99.29 MB / 494 MB, free: 10.03 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002084/0.3911, allocations: 88.92 kB / 494.1 MB, free: 9.988 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.1932/0.5844, allocations: 75.91 MB / 0.5566 GB, free: 2.941 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.434e-05/0.5844, allocations: 8 kB / 0.5567 GB, free: 2.934 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007826/0.5922, allocations: 1.699 MB / 0.5583 GB, free: 1.227 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007098/0.5993, allocations: 3.403 MB / 0.5616 GB, free: 13.76 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001026/0.5995, allocations: 112 kB / 0.5617 GB, free: 13.65 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005898/0.6001, allocations: 207.9 kB / 0.5619 GB, free: 13.45 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007048/0.6071, allocations: 5.265 MB / 0.5671 GB, free: 8.18 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1495/0.7567, allocations: 8.192 MB / 0.5751 GB, free: 63.5 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001311/0.7568, allocations: 58.16 kB / 0.5751 GB, free: 63.5 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004012/0.7572, allocations: 29.59 kB / 0.5752 GB, free: 63.5 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008815/0.7581, allocations: 0.9349 MB / 0.5761 GB, free: 63.5 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0286/0.7867, allocations: 41.91 MB / 0.617 GB, free: 52.75 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002216/0.789, allocations: 2.568 MB / 0.6195 GB, free: 52.08 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00134/0.7903, allocations: 1.551 MB / 0.621 GB, free: 52.04 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006233/0.7966, allocations: 5.506 MB / 0.6264 GB, free: 49.92 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.408e-05/0.7966, allocations: 47.16 kB / 0.6265 GB, free: 49.88 MB / 458.7 MB Notification: Performance of pre-optimization done (n=121): time 3.517e-06/0.7966, allocations: 0 / 0.6265 GB, free: 49.88 MB / 458.7 MB Notification: Performance of matching and sorting (n=130): time 0.01706/0.8137, allocations: 10.79 MB / 0.637 GB, free: 47.43 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.11e-05/0.8138, allocations: 146.2 kB / 0.6371 GB, free: 47.27 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003022/0.8168, allocations: 2.847 MB / 0.6399 GB, free: 46.96 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 8.125e-05/0.8169, allocations: 25.7 kB / 0.6399 GB, free: 46.93 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009769/0.8179, allocations: 2.626 MB / 0.6425 GB, free: 45.23 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003106/0.8182, allocations: 0.5176 MB / 0.643 GB, free: 44.94 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001676/0.8184, allocations: 0 / 0.643 GB, free: 44.94 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002744/0.8186, allocations: 0.5386 MB / 0.6435 GB, free: 44.63 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001877/0.8205, allocations: 1.636 MB / 0.6451 GB, free: 44.61 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002851/0.8234, allocations: 5.172 MB / 0.6502 GB, free: 39.57 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002892/0.8263, allocations: 2.926 MB / 0.653 GB, free: 38.52 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.633e-05/0.8263, allocations: 36.59 kB / 0.6531 GB, free: 38.52 MB / 458.7 MB Notification: Performance of matching and sorting (n=719) (initialization): time 0.007688/0.834, allocations: 6.053 MB / 0.659 GB, free: 36.45 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.476e-05/0.8341, allocations: 8.312 kB / 0.659 GB, free: 36.45 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001251/0.8342, allocations: 128.2 kB / 0.6591 GB, free: 36.45 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006193/0.8348, allocations: 339.5 kB / 0.6594 GB, free: 36.41 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003944/0.8388, allocations: 1.3 MB / 0.6607 GB, free: 36.25 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002201/0.841, allocations: 2.196 MB / 0.6629 GB, free: 34.67 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00296/0.844, allocations: 164 kB / 0.663 GB, free: 34.65 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000457/0.8444, allocations: 350.4 kB / 0.6633 GB, free: 34.61 MB / 458.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.0005495/0.845, allocations: 418 kB / 0.6637 GB, free: 34.26 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003611/0.8453, allocations: 279.3 kB / 0.664 GB, free: 34.11 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004321/0.8497, allocations: 2.233 MB / 0.6662 GB, free: 33.39 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-05/0.8497, allocations: 14.12 kB / 0.6662 GB, free: 33.39 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.706e-06/0.8497, allocations: 4.719 kB / 0.6662 GB, free: 33.39 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.161e-05/0.8498, allocations: 3.844 kB / 0.6662 GB, free: 33.39 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009222/0.859, allocations: 5.297 MB / 0.6714 GB, free: 31.53 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.859, allocations: 7.938 kB / 0.6714 GB, free: 31.52 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008639/0.8599, allocations: 165.6 kB / 0.6715 GB, free: 31.51 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002063/0.8619, allocations: 0.647 MB / 0.6722 GB, free: 31.39 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.986e-05/0.8621, allocations: 4.25 kB / 0.6722 GB, free: 31.39 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00515/0.8672, allocations: 4.202 MB / 0.6763 GB, free: 29.02 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.327e-06/0.8672, allocations: 2.062 kB / 0.6763 GB, free: 29.02 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006098/0.8733, allocations: 4.373 MB / 0.6806 GB, free: 27.18 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006914/0.8803, allocations: 6.093 MB / 0.6865 GB, free: 24.45 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004654/0.8807, allocations: 331.3 kB / 0.6868 GB, free: 24.18 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003625/0.8811, allocations: 6.75 kB / 0.6868 GB, free: 24.18 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001066/0.8822, allocations: 38.02 kB / 0.6869 GB, free: 24.18 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001359/0.8823, allocations: 49.8 kB / 0.6869 GB, free: 24.17 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001083/0.8825, allocations: 47.06 kB / 0.687 GB, free: 24.16 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.002245/0.8847, allocations: 1.895 MB / 0.6888 GB, free: 23.46 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004323/0.889, allocations: 0.7098 MB / 0.6895 GB, free: 23.45 MB / 458.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.0003116/0.8894, allocations: 152.5 kB / 0.6897 GB, free: 23.35 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004251/0.8936, allocations: 3.881 MB / 0.6934 GB, free: 22.02 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.8936, allocations: 4.062 kB / 0.6934 GB, free: 22.01 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001164/0.8948, allocations: 1.075 MB / 0.6945 GB, free: 21.57 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001195/0.896, allocations: 283.5 kB / 0.6948 GB, free: 21.43 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00854/0.9046, allocations: 5.964 MB / 0.7006 GB, free: 19.32 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003324/0.9079, allocations: 3.099 MB / 0.7036 GB, free: 18.14 MB / 458.7 MB Notification: Performance of SimCode: time 3.61e-07/0.9079, allocations: 3.031 kB / 0.7036 GB, free: 18.14 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe 2>&1)