Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") [: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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.135/2.135, allocations: 253.1 MB / 260.4 MB, free: 7.492 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001664/0.001664, allocations: 185.2 kB / 319.6 MB, free: 3.305 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.931/1.931, allocations: 205.4 MB / 0.5704 GB, free: 15.03 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001351/0.001351, allocations: 84.27 kB / 0.6746 GB, free: 4.398 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.044e-05/1.061e-05, allocations: 0 / 0.7843 GB, free: 102.5 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2282/0.2282, allocations: 106.2 MB / 0.888 GB, free: 12.2 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7271/0.9554, allocations: 134.9 MB / 1.02 GB, free: 3.488 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003465/0.9558, allocations: 85.56 kB / 1.02 GB, free: 3.441 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.0294/0.9853, allocations: 5.497 MB / 1.025 GB, free: 14.84 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 2.405e-05/0.9853, allocations: 4 kB / 1.025 GB, free: 14.83 MB / 0.6511 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.001271/0.9866, allocations: 0.5545 MB / 1.026 GB, free: 14.25 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 8.734e-05/0.9867, allocations: 12.03 kB / 1.026 GB, free: 14.23 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001224/0.9869, allocations: 35.56 kB / 1.026 GB, free: 14.2 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007673/0.9876, allocations: 298 kB / 1.026 GB, free: 13.89 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.609e-05/0.9877, allocations: 8 kB / 1.026 GB, free: 13.89 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.127e-05/0.9878, allocations: 8 kB / 1.026 GB, free: 13.88 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000413/0.9882, allocations: 123.1 kB / 1.026 GB, free: 13.79 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005249/0.9887, allocations: 222.1 kB / 1.026 GB, free: 13.59 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.464e-05/0.9888, allocations: 0 / 1.026 GB, free: 13.59 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.527e-05/0.9888, allocations: 7.938 kB / 1.026 GB, free: 13.59 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.101e-05/0.9888, allocations: 4 kB / 1.026 GB, free: 13.58 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001543/0.9904, allocations: 0.6939 MB / 1.027 GB, free: 12.94 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004218/0.9908, allocations: 148.9 kB / 1.027 GB, free: 12.82 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002564/0.9911, allocations: 105 kB / 1.027 GB, free: 12.75 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 1.996e-05/0.9911, allocations: 0 / 1.027 GB, free: 12.75 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003556/0.9915, allocations: 177.8 kB / 1.028 GB, free: 12.59 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=15): time 3.226e-06/0.9915, allocations: 0 / 1.028 GB, free: 12.59 MB / 0.6511 GB Notification: Performance of matching and sorting (n=15): time 0.0007592/0.9923, allocations: 233 kB / 1.028 GB, free: 12.39 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.952e-05/0.9924, allocations: 136.5 kB / 1.028 GB, free: 12.23 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003704/0.9928, allocations: 230 kB / 1.028 GB, free: 12.03 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 4.495e-05/0.9928, allocations: 25.7 kB / 1.028 GB, free: 12 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001125/0.993, allocations: 128.6 kB / 1.028 GB, free: 11.88 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 6.77e-05/0.993, allocations: 45.31 kB / 1.028 GB, free: 11.84 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.063e-05/0.9931, allocations: 0 / 1.028 GB, free: 11.84 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001593/0.9932, allocations: 340.2 kB / 1.029 GB, free: 11.51 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002424/0.9935, allocations: 89.91 kB / 1.029 GB, free: 11.45 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002949/0.9938, allocations: 135.2 kB / 1.029 GB, free: 11.33 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003003/0.9941, allocations: 94.97 kB / 1.029 GB, free: 11.26 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.9941, allocations: 0 / 1.029 GB, free: 11.26 MB / 0.6511 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0007608/0.9949, allocations: 260.4 kB / 1.029 GB, free: 11.04 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.636e-05/0.9949, allocations: 14.72 kB / 1.029 GB, free: 11.03 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.053e-05/0.995, allocations: 7.922 kB / 1.029 GB, free: 11.02 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.179e-05/0.995, allocations: 0 / 1.029 GB, free: 11.02 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003042/0.9953, allocations: 34.98 kB / 1.029 GB, free: 10.99 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.033e-06/0.9953, allocations: 96 / 1.029 GB, free: 10.99 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000407/0.9958, allocations: 43.86 kB / 1.029 GB, free: 10.95 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.094e-05/0.9958, allocations: 15.98 kB / 1.029 GB, free: 10.93 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition1,$PRE.mot.uppHys.y,mot.uppHys.y,$PRE.mot.lowHys.y,mot.lowHys.y,ySet.a,ySet.b,ySet.last,$PRE.ySet.nextEvent,ySet.nextEvent,ySet.nextEventScaled,mot.int.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001923/0.996, allocations: 145.6 kB / 1.029 GB, free: 10.78 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.537e-05/0.9961, allocations: 23.72 kB / 1.029 GB, free: 10.76 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001093/0.9962, allocations: 27.33 kB / 1.029 GB, free: 10.74 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/0.9963, allocations: 4 kB / 1.029 GB, free: 10.74 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.9963, allocations: 0 / 1.029 GB, free: 10.74 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.78e-06/0.9963, allocations: 0 / 1.029 GB, free: 10.74 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003844/0.9967, allocations: 263.1 kB / 1.03 GB, free: 10.48 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.9967, allocations: 0 / 1.03 GB, free: 10.48 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002498/0.997, allocations: 23.98 kB / 1.03 GB, free: 10.46 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.139e-05/0.997, allocations: 7.984 kB / 1.03 GB, free: 10.45 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.525e-05/0.997, allocations: 8 kB / 1.03 GB, free: 10.45 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.997, allocations: 0 / 1.03 GB, free: 10.45 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.863e-06/0.9971, allocations: 3.984 kB / 1.03 GB, free: 10.44 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001141/0.9982, allocations: 413.9 kB / 1.03 GB, free: 10.11 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 8.789e-05/0.9983, allocations: 92.83 kB / 1.03 GB, free: 10 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.383e-05/0.9984, allocations: 7 kB / 1.03 GB, free: 9.996 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003879/0.9988, allocations: 36.03 kB / 1.03 GB, free: 9.961 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001279/0.999, allocations: 23.64 kB / 1.03 GB, free: 9.941 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.637e-05/0.999, allocations: 14.69 kB / 1.03 GB, free: 9.93 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0002822/0.9993, allocations: 185 kB / 1.031 GB, free: 9.777 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0004817/0.9998, allocations: 63.78 kB / 1.031 GB, free: 9.715 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (mot.int.y) * Number of discrete variables: 8 ($whenCondition1,mot.uppHys.y,mot.lowHys.y,ySet.a,ySet.b,ySet.last,ySet.nextEvent,ySet.nextEventScaled) * Number of discrete states: 8 (ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1,mot.lowHys.y,mot.uppHys.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003283/1, allocations: 135.7 kB / 1.031 GB, free: 9.574 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0005161/1.001, allocations: 208 kB / 1.031 GB, free: 9.418 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/1.001, allocations: 192 / 1.031 GB, free: 9.418 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0002635/1.001, allocations: 151.1 kB / 1.031 GB, free: 9.309 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004303/1.001, allocations: 23.61 kB / 1.031 GB, free: 9.293 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001551/1.003, allocations: 341.5 kB / 1.031 GB, free: 8.973 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005162/1.004, allocations: 0.7744 MB / 1.032 GB, free: 8.176 MB / 0.6511 GB Notification: Performance of SimCode: time 9.92e-07/1.004, allocations: 3.938 kB / 1.032 GB, free: 8.172 MB / 0.6511 GB Notification: Performance of Templates: time 0.009837/1.013, allocations: 2.52 MB / 1.035 GB, free: 5.688 MB / 0.6511 GB