Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.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.PendulumWithSpringDamper,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001088/0.001088, allocations: 182.7 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.192/1.192, allocations: 221.4 MB / 229.9 MB, free: 3.027 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.0009652/0.0009652, allocations: 97.41 kB / 280.8 MB, free: 1.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.092/0.093, allocations: 55.83 MB / 336.6 MB, free: 9.418 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1881/0.2811, allocations: 50.4 MB / 387 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1024/0.3836, allocations: 100.5 MB / 487.5 MB, free: 2.297 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002745/0.3839, allocations: 91.89 kB / 487.6 MB, free: 2.207 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.3391/0.7231, allocations: 77.47 MB / 0.5518 GB, free: 44.43 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.7231, allocations: 8 kB / 0.5518 GB, free: 44.42 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008851/0.732, allocations: 1.866 MB / 0.5536 GB, free: 42.59 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009005/0.741, allocations: 3.819 MB / 0.5573 GB, free: 39.45 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001424/0.7412, allocations: 124 kB / 0.5575 GB, free: 39.32 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009842/0.7422, allocations: 215.9 kB / 0.5577 GB, free: 39.11 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007551/0.7497, allocations: 5.776 MB / 0.5633 GB, free: 34.36 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01011/0.7599, allocations: 8.723 MB / 0.5718 GB, free: 24.67 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001193/0.76, allocations: 55.47 kB / 0.5719 GB, free: 24.62 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005354/0.7605, allocations: 28 kB / 0.5719 GB, free: 24.59 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001213/0.7618, allocations: 1.055 MB / 0.5729 GB, free: 23.54 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03963/0.8014, allocations: 44.5 MB / 0.6164 GB, free: 9.805 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003344/0.8048, allocations: 2.752 MB / 0.6191 GB, free: 6.914 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002246/0.8071, allocations: 1.843 MB / 0.6209 GB, free: 5.062 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00879/0.8159, allocations: 6.01 MB / 0.6267 GB, free: 14.84 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.107e-05/0.8159, allocations: 51.34 kB / 0.6268 GB, free: 14.78 MB / 426.7 MB Notification: Performance of pre-optimization done (n=151): time 5.631e-06/0.8159, allocations: 0 / 0.6268 GB, free: 14.78 MB / 426.7 MB Notification: Performance of matching and sorting (n=166): time 0.03324/0.8492, allocations: 14.06 MB / 0.6405 GB, free: 0.6094 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.706e-05/0.8493, allocations: 149.4 kB / 0.6407 GB, free: 440 kB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003926/0.8532, allocations: 2.637 MB / 0.6432 GB, free: 13.78 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001596/0.8534, allocations: 25.7 kB / 0.6433 GB, free: 13.75 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001633/0.855, allocations: 2.651 MB / 0.6459 GB, free: 11.06 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006173/0.8556, allocations: 0.6285 MB / 0.6465 GB, free: 10.42 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002602/0.8559, allocations: 0 / 0.6465 GB, free: 10.42 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003567/0.8563, allocations: 0.5458 MB / 0.647 GB, free: 9.867 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002734/0.859, allocations: 1.854 MB / 0.6488 GB, free: 8.004 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004594/0.8636, allocations: 5.356 MB / 0.654 GB, free: 0.8711 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.12/0.9836, allocations: 3.118 MB / 0.6571 GB, free: 146 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.718e-05/0.9837, allocations: 37.03 kB / 0.6571 GB, free: 146 MB / 442.7 MB Notification: Performance of matching and sorting (n=746) (initialization): time 0.01331/0.997, allocations: 7.329 MB / 0.6643 GB, free: 145.8 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.094e-05/0.9971, allocations: 3.812 kB / 0.6643 GB, free: 145.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001365/0.9972, allocations: 129 kB / 0.6644 GB, free: 145.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003967/1.001, allocations: 1.217 MB / 0.6656 GB, free: 145.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00413/1.005, allocations: 1.298 MB / 0.6669 GB, free: 145.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00765/1.013, allocations: 5.718 MB / 0.6724 GB, free: 144.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004091/1.017, allocations: 205 kB / 0.6726 GB, free: 144.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006984/1.018, allocations: 349.1 kB / 0.673 GB, free: 144.4 MB / 442.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.0008368/1.019, allocations: 427.1 kB / 0.6734 GB, free: 144.2 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004466/1.019, allocations: 277.5 kB / 0.6736 GB, free: 144.2 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006388/1.026, allocations: 3.143 MB / 0.6767 GB, free: 144.1 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.274e-05/1.026, allocations: 13.78 kB / 0.6767 GB, free: 144.1 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.214e-05/1.026, allocations: 6.406 kB / 0.6767 GB, free: 144.1 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.477e-05/1.026, allocations: 7.312 kB / 0.6767 GB, free: 144.1 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01216/1.038, allocations: 6.709 MB / 0.6833 GB, free: 143.6 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.143e-06/1.038, allocations: 5.5 kB / 0.6833 GB, free: 143.6 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001157/1.039, allocations: 229.7 kB / 0.6835 GB, free: 143.6 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003737/1.043, allocations: 1.026 MB / 0.6845 GB, free: 143.6 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000143/1.043, allocations: 3.938 kB / 0.6845 GB, free: 143.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007061/1.05, allocations: 5.38 MB / 0.6898 GB, free: 142.3 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/1.05, allocations: 0 / 0.6898 GB, free: 142.3 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008416/1.058, allocations: 5.585 MB / 0.6952 GB, free: 141.8 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01117/1.07, allocations: 7.727 MB / 0.7028 GB, free: 140.2 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005171/1.07, allocations: 323.5 kB / 0.7031 GB, free: 140 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005038/1.071, allocations: 1.406 kB / 0.7031 GB, free: 140 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001418/1.072, allocations: 56.05 kB / 0.7031 GB, free: 140 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002201/1.072, allocations: 79.98 kB / 0.7032 GB, free: 140 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001448/1.072, allocations: 40.91 kB / 0.7033 GB, free: 140 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.002658/1.075, allocations: 1.742 MB / 0.705 GB, free: 139.3 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004652/1.08, allocations: 0.7842 MB / 0.7057 GB, free: 139.3 MB / 442.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.0004062/1.08, allocations: 163.5 kB / 0.7059 GB, free: 139.2 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005613/1.086, allocations: 4.509 MB / 0.7103 GB, free: 137.7 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/1.086, allocations: 1.594 kB / 0.7103 GB, free: 137.7 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001834/1.088, allocations: 1.453 MB / 0.7117 GB, free: 137.1 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001172/1.089, allocations: 248.8 kB / 0.7119 GB, free: 137 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01075/1.1, allocations: 6.629 MB / 0.7184 GB, free: 132.2 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003156/1.103, allocations: 3.173 MB / 0.7215 GB, free: 129.7 MB / 442.7 MB Notification: Performance of SimCode: time 6.82e-07/1.103, allocations: 4 kB / 0.7215 GB, free: 129.7 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1)