Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.Pendulum.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo) 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: translateModel(PlanarMechanics.Examples.Pendulum,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.Pendulum") translateModel(PlanarMechanics.Examples.Pendulum,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.Pendulum") [: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.003163/0.003163, allocations: 175.2 kB / 7.451 MB, free: 2.504 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.277/1.277, allocations: 221.4 MB / 229.3 MB, free: 3.152 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.001106/0.001106, allocations: 102.5 kB / 280.1 MB, free: 1.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04444/0.04444, allocations: 8.838 MB / 339.7 MB, free: 5.715 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.16e-06/5.19e-06, allocations: 0 / 398.1 MB, free: 67.42 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06756/0.06758, allocations: 52.4 MB / 450.5 MB, free: 15.09 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2312/0.2988, allocations: 85.52 MB / 0.5235 GB, free: 7.902 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002244/0.299, allocations: 74.88 kB / 0.5235 GB, free: 7.871 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.1427/0.4418, allocations: 52.76 MB / 0.5751 GB, free: 10.3 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.197e-05/0.4419, allocations: 44 kB / 0.5751 GB, free: 10.26 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1017 * Number of variables: 1017 Notification: Performance of Generate backend data structure: time 0.00801/0.4499, allocations: 2.593 MB / 0.5777 GB, free: 7.613 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.487e-05/0.4499, allocations: 11.97 kB / 0.5777 GB, free: 7.602 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009314/0.4593, allocations: 1.552 MB / 0.5792 GB, free: 6.043 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003555/0.4628, allocations: 1.525 MB / 0.5807 GB, free: 4.473 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001215/0.463, allocations: 83.94 kB / 0.5807 GB, free: 4.391 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009111/0.4639, allocations: 148 kB / 0.5809 GB, free: 4.246 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007765/0.4717, allocations: 4.894 MB / 0.5857 GB, free: 15.35 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01053/0.4822, allocations: 6.366 MB / 0.5919 GB, free: 8.684 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.06e-05/0.4823, allocations: 19.86 kB / 0.5919 GB, free: 8.664 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005144/0.4828, allocations: 8 kB / 0.5919 GB, free: 8.656 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001107/0.484, allocations: 0.8289 MB / 0.5927 GB, free: 7.824 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02763/0.5116, allocations: 20.95 MB / 0.6132 GB, free: 2.328 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001328/0.513, allocations: 0.9 MB / 0.6141 GB, free: 1.422 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007624/0.5138, allocations: 0.5659 MB / 0.6146 GB, free: 0.8555 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003945/0.5177, allocations: 2.456 MB / 0.617 GB, free: 14.23 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.794e-05/0.5178, allocations: 39.22 kB / 0.617 GB, free: 14.19 MB / 442.7 MB Notification: Performance of pre-optimization done (n=106): time 3.176e-06/0.5178, allocations: 0 / 0.617 GB, free: 14.19 MB / 442.7 MB Notification: Performance of matching and sorting (n=120): time 0.008794/0.5266, allocations: 4.64 MB / 0.6216 GB, free: 9.445 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.132e-05/0.5266, allocations: 60.19 kB / 0.6216 GB, free: 9.375 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002347/0.529, allocations: 1.723 MB / 0.6233 GB, free: 7.645 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.752e-05/0.5291, allocations: 29.64 kB / 0.6233 GB, free: 7.609 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009833/0.5301, allocations: 1.851 MB / 0.6252 GB, free: 5.727 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000328/0.5304, allocations: 450 kB / 0.6256 GB, free: 5.281 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001341/0.5305, allocations: 0 / 0.6256 GB, free: 5.281 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002617/0.5308, allocations: 490.4 kB / 0.626 GB, free: 4.793 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001637/0.5324, allocations: 1.124 MB / 0.6271 GB, free: 3.668 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002984/0.5354, allocations: 3.096 MB / 0.6302 GB, free: 15.58 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002901/0.5384, allocations: 1.928 MB / 0.6321 GB, free: 13.65 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.89e-05/0.5384, allocations: 20 kB / 0.6321 GB, free: 13.63 MB / 458.7 MB Notification: Performance of matching and sorting (n=460) (initialization): time 0.006551/0.545, allocations: 3.938 MB / 0.6359 GB, free: 9.684 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/0.545, allocations: 4 kB / 0.6359 GB, free: 9.68 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.889e-05/0.5451, allocations: 75.98 kB / 0.636 GB, free: 9.605 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005339/0.5456, allocations: 220.7 kB / 0.6362 GB, free: 9.387 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002717/0.5484, allocations: 0.7802 MB / 0.637 GB, free: 8.605 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002618/0.551, allocations: 2.291 MB / 0.6392 GB, free: 6.188 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002393/0.5534, allocations: 91.95 kB / 0.6393 GB, free: 6.098 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003411/0.5538, allocations: 220.5 kB / 0.6395 GB, free: 5.883 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 322 * Number of states: 0 () * Number of discrete variables: 9 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (425): * Single equations (assignments): 420 * Array equations: 4 * 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%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004152/0.5542, allocations: 272.2 kB / 0.6398 GB, free: 5.609 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002349/0.5544, allocations: 165.8 kB / 0.6399 GB, free: 5.445 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002614/0.557, allocations: 1.528 MB / 0.6414 GB, free: 3.91 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001312/0.5572, allocations: 20.05 kB / 0.6414 GB, free: 3.891 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.193e-06/0.5572, allocations: 7.938 kB / 0.6414 GB, free: 3.883 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.242e-05/0.5572, allocations: 7.891 kB / 0.6414 GB, free: 3.875 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.12/0.6772, allocations: 3.964 MB / 0.6453 GB, free: 181.3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.704e-06/0.6773, allocations: 0 / 0.6453 GB, free: 181.3 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008891/0.6781, allocations: 148 kB / 0.6455 GB, free: 181.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003357/0.6785, allocations: 112.8 kB / 0.6456 GB, free: 181.3 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.737e-05/0.6786, allocations: 11.14 kB / 0.6456 GB, free: 181.3 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001559/0.6802, allocations: 1.857 MB / 0.6474 GB, free: 180.1 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.6802, allocations: 5.344 kB / 0.6474 GB, free: 180.1 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002882/0.6831, allocations: 2.514 MB / 0.6499 GB, free: 179.8 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003351/0.6834, allocations: 250.5 kB / 0.6501 GB, free: 179.7 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002471/0.6837, allocations: 8.141 kB / 0.6501 GB, free: 179.7 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006995/0.6844, allocations: 25.11 kB / 0.6501 GB, free: 179.7 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000103/0.6845, allocations: 53.95 kB / 0.6502 GB, free: 179.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.437e-05/0.6846, allocations: 32.16 kB / 0.6502 GB, free: 179.7 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.001411/0.686, allocations: 1.163 MB / 0.6513 GB, free: 179.6 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002305/0.6883, allocations: 0.5048 MB / 0.6518 GB, free: 179.6 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (87): * Single equations (assignments): 82 * Array equations: 4 * 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%) 7} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002953/0.6886, allocations: 149 kB / 0.652 GB, free: 179.5 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003149/0.6918, allocations: 2.602 MB / 0.6545 GB, free: 179.4 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.6918, allocations: 3.844 kB / 0.6545 GB, free: 179.4 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001044/0.6928, allocations: 0.7826 MB / 0.6553 GB, free: 179.3 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008005/0.6936, allocations: 180 kB / 0.6555 GB, free: 179.3 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00706/0.7007, allocations: 4.487 MB / 0.6598 GB, free: 178.4 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002641/0.7034, allocations: 2.581 MB / 0.6624 GB, free: 177.6 MB / 458.7 MB Notification: Performance of SimCode: time 4.91e-07/0.7034, allocations: 3.719 kB / 0.6624 GB, free: 177.6 MB / 458.7 MB Notification: Performance of Templates: time 0.03476/0.7382, allocations: 19.71 MB / 0.6816 GB, free: 176.8 MB / 458.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.Pendulum.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.Pendulum.sim & ./PlanarMechanics_PlanarMechanics.Examples.Pendulum -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe 2>&1)