Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.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.PendulumWithSpringDamper,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",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.001046/0.001046, allocations: 199.7 kB / 8.541 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.181/1.181, allocations: 225.5 MB / 234.4 MB, free: 3.469 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009107/0.0009107, allocations: 94.58 kB / 286.3 MB, free: 5.219 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09169/0.09263, allocations: 56.91 MB / 343.2 MB, free: 8.695 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08277/0.1754, allocations: 51.47 MB / 394.7 MB, free: 5.168 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2259/0.4014, allocations: 101.1 MB / 495.8 MB, free: 8.543 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002126/0.4017, allocations: 85.2 kB / 495.9 MB, free: 8.5 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: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.203/0.6046, allocations: 78.24 MB / 0.5607 GB, free: 14.95 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.193e-05/0.6047, allocations: 8 kB / 0.5607 GB, free: 14.94 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008465/0.6132, allocations: 1.871 MB / 0.5625 GB, free: 13.06 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00761/0.6208, allocations: 3.293 MB / 0.5657 GB, free: 9.719 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001341/0.6209, allocations: 120 kB / 0.5659 GB, free: 9.602 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008036/0.6218, allocations: 211.9 kB / 0.5661 GB, free: 9.395 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008522/0.6303, allocations: 5.777 MB / 0.5717 GB, free: 3.613 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1498/0.7801, allocations: 8.724 MB / 0.5802 GB, free: 62.79 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000117/0.7803, allocations: 52.47 kB / 0.5803 GB, free: 62.79 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004367/0.7807, allocations: 29.44 kB / 0.5803 GB, free: 62.79 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001158/0.7819, allocations: 1.046 MB / 0.5813 GB, free: 62.78 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03337/0.8153, allocations: 44.51 MB / 0.6248 GB, free: 51.48 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002654/0.818, allocations: 2.749 MB / 0.6275 GB, free: 50.83 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001762/0.8198, allocations: 1.83 MB / 0.6293 GB, free: 50.8 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007237/0.827, allocations: 6.013 MB / 0.6351 GB, free: 48.86 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.437e-05/0.827, allocations: 58.41 kB / 0.6352 GB, free: 48.82 MB / 458.7 MB Notification: Performance of pre-optimization done (n=151): time 3.387e-06/0.8271, allocations: 0 / 0.6352 GB, free: 48.82 MB / 458.7 MB Notification: Performance of matching and sorting (n=166): time 0.029/0.8561, allocations: 14.06 MB / 0.6489 GB, free: 46.03 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.041e-05/0.8561, allocations: 144.7 kB / 0.6491 GB, free: 45.88 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002966/0.8591, allocations: 2.644 MB / 0.6516 GB, free: 44.9 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001386/0.8593, allocations: 29.11 kB / 0.6517 GB, free: 44.87 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009582/0.8602, allocations: 2.651 MB / 0.6543 GB, free: 42.81 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004187/0.8607, allocations: 0.6293 MB / 0.6549 GB, free: 42.35 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001951/0.8609, allocations: 0 / 0.6549 GB, free: 42.35 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003034/0.8612, allocations: 0.5427 MB / 0.6554 GB, free: 41.95 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002121/0.8633, allocations: 1.854 MB / 0.6572 GB, free: 41.32 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003373/0.8667, allocations: 5.357 MB / 0.6624 GB, free: 35.89 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004049/0.8707, allocations: 3.126 MB / 0.6655 GB, free: 34.76 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.259e-05/0.8708, allocations: 39.69 kB / 0.6655 GB, free: 34.76 MB / 458.7 MB Notification: Performance of matching and sorting (n=746) (initialization): time 0.0126/0.8834, allocations: 7.324 MB / 0.6727 GB, free: 32.45 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/0.8835, allocations: 12 kB / 0.6727 GB, free: 32.44 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.159e-05/0.8836, allocations: 124 kB / 0.6728 GB, free: 32.44 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004012/0.8876, allocations: 1.213 MB / 0.674 GB, free: 32.28 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003956/0.8915, allocations: 1.299 MB / 0.6753 GB, free: 32.12 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008326/0.8999, allocations: 5.706 MB / 0.6808 GB, free: 29.48 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003766/0.9037, allocations: 206.2 kB / 0.681 GB, free: 29.45 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00044/0.9041, allocations: 359.2 kB / 0.6814 GB, free: 29.41 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 574 * Number of states: 0 () * Number of discrete variables: 36 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],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],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 (703): * Single equations (assignments): 699 * 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 {(3,88.9%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005978/0.9047, allocations: 421 kB / 0.6818 GB, free: 29.05 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003853/0.9051, allocations: 284.6 kB / 0.6821 GB, free: 28.9 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006391/0.9115, allocations: 3.144 MB / 0.6851 GB, free: 27.95 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.696e-05/0.9116, allocations: 13.16 kB / 0.6851 GB, free: 27.95 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.256e-05/0.9116, allocations: 9.625 kB / 0.6851 GB, free: 27.95 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.475e-05/0.9116, allocations: 7.031 kB / 0.6852 GB, free: 27.95 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0119/0.9235, allocations: 6.714 MB / 0.6917 GB, free: 25.64 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.125e-06/0.9235, allocations: 3.281 kB / 0.6917 GB, free: 25.64 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00116/0.9247, allocations: 221 kB / 0.6919 GB, free: 25.62 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003752/0.9285, allocations: 1.021 MB / 0.6929 GB, free: 25.46 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001484/0.9286, allocations: 5.109 kB / 0.6929 GB, free: 25.46 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007461/0.9361, allocations: 5.38 MB / 0.6982 GB, free: 22.9 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.568e-06/0.9361, allocations: 2.812 kB / 0.6982 GB, free: 22.9 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008635/0.9448, allocations: 5.581 MB / 0.7036 GB, free: 20.79 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01035/0.9551, allocations: 7.733 MB / 0.7112 GB, free: 16.88 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005006/0.9557, allocations: 328.1 kB / 0.7115 GB, free: 16.55 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003859/0.956, allocations: 3.328 kB / 0.7115 GB, free: 16.55 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001316/0.9574, allocations: 57.62 kB / 0.7116 GB, free: 16.51 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001849/0.9576, allocations: 74.39 kB / 0.7116 GB, free: 16.46 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001439/0.9577, allocations: 47.7 kB / 0.7117 GB, free: 16.42 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.002154/0.9599, allocations: 1.733 MB / 0.7134 GB, free: 14.9 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004393/0.9643, allocations: 0.7977 MB / 0.7141 GB, free: 14.12 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (129): * Single equations (assignments): 125 * 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 {(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003558/0.9646, allocations: 164 kB / 0.7143 GB, free: 13.97 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005444/0.9701, allocations: 4.507 MB / 0.7187 GB, free: 9.883 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.9701, allocations: 0 / 0.7187 GB, free: 9.883 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002135/0.9723, allocations: 1.463 MB / 0.7201 GB, free: 8.551 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001167/0.9734, allocations: 247.8 kB / 0.7204 GB, free: 8.336 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01209/0.9855, allocations: 6.616 MB / 0.7268 GB, free: 2.453 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003811/0.9894, allocations: 3.19 MB / 0.7299 GB, free: 0 / 458.7 MB Notification: Performance of SimCode: time 6.61e-07/0.9894, allocations: 336 / 0.7299 GB, free: 0 / 458.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1)