Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.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/HanserModelica 2.0.0-master/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 HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/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(HanserModelica.SynchronousMachines.SMEE_DOL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL") translateModel(HanserModelica.SynchronousMachines.SMEE_DOL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL") [: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.002736/0.002736, allocations: 187.7 kB / 7.456 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03893/0.03893, allocations: 8.704 MB / 16.57 MB, free: 440 kB / 10.45 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.293/1.293, allocations: 221.4 MB / 240.5 MB, free: 8.203 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009323/0.0009322, allocations: 108.1 kB / 293.5 MB, free: 5.484 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.432e-06/6.582e-06, allocations: 0 / 352.1 MB, free: 10.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2627/0.2627, allocations: 52.54 MB / 404.6 MB, free: 26.76 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3302/0.5929, allocations: 119.6 MB / 0.5119 GB, free: 95.88 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002658/0.5933, allocations: 78.27 kB / 0.512 GB, free: 95.85 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.5687/1.162, allocations: 161.1 MB / 0.6693 GB, free: 65.13 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002631/1.162, allocations: 98.56 kB / 0.6694 GB, free: 65.12 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1052 * Number of variables: 1052 Notification: Performance of Generate backend data structure: time 0.009928/1.172, allocations: 3.953 MB / 0.6733 GB, free: 63.93 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.821e-05/1.172, allocations: 10.38 kB / 0.6733 GB, free: 63.93 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005928/1.178, allocations: 0.9372 MB / 0.6742 GB, free: 63.69 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009613/1.188, allocations: 3.841 MB / 0.678 GB, free: 63.09 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001498/1.188, allocations: 135.3 kB / 0.6781 GB, free: 63.09 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007125/1.189, allocations: 237.2 kB / 0.6783 GB, free: 63.09 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006473/1.195, allocations: 3.855 MB / 0.6821 GB, free: 63.07 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007976/1.203, allocations: 4.489 MB / 0.6865 GB, free: 62.57 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.798e-05/1.203, allocations: 2.859 kB / 0.6865 GB, free: 62.57 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003738/1.204, allocations: 10.09 kB / 0.6865 GB, free: 62.57 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001265/1.204, allocations: 175.8 kB / 0.6866 GB, free: 62.56 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0235/1.227, allocations: 16.29 MB / 0.7025 GB, free: 58.96 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001607/1.229, allocations: 1.295 MB / 0.7038 GB, free: 58.94 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002064/1.231, allocations: 1.679 MB / 0.7054 GB, free: 58.92 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007191/1.238, allocations: 5.211 MB / 0.7105 GB, free: 57.72 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.054e-05/1.238, allocations: 54.47 kB / 0.7106 GB, free: 57.68 MB / 442.7 MB Notification: Performance of pre-optimization done (n=193): time 3.827e-06/1.238, allocations: 0 / 0.7106 GB, free: 57.68 MB / 442.7 MB Notification: Performance of matching and sorting (n=196): time 0.009164/1.248, allocations: 5.254 MB / 0.7157 GB, free: 56.38 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.732e-05/1.248, allocations: 72.2 kB / 0.7158 GB, free: 56.32 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002584/1.25, allocations: 1.671 MB / 0.7174 GB, free: 56.09 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002148/1.25, allocations: 25.7 kB / 0.7174 GB, free: 56.05 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005932/1.251, allocations: 1.472 MB / 0.7189 GB, free: 55.18 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004856/1.252, allocations: 0.6426 MB / 0.7195 GB, free: 54.75 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001045/1.252, allocations: 0 / 0.7195 GB, free: 54.75 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001323/1.252, allocations: 402.4 kB / 0.7199 GB, free: 54.44 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001203/1.253, allocations: 0.9015 MB / 0.7208 GB, free: 54.43 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00142/1.254, allocations: 1.582 MB / 0.7223 GB, free: 53.63 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001835/1.256, allocations: 1.233 MB / 0.7235 GB, free: 53.61 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.035e-05/1.256, allocations: 5.906 kB / 0.7235 GB, free: 53.61 MB / 442.7 MB Notification: Performance of matching and sorting (n=306) (initialization): time 0.004152/1.26, allocations: 2.899 MB / 0.7264 GB, free: 53.31 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/1.261, allocations: 7.469 kB / 0.7264 GB, free: 53.31 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.408e-05/1.261, allocations: 22.91 kB / 0.7264 GB, free: 53.31 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000297/1.261, allocations: 126.9 kB / 0.7265 GB, free: 53.29 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002175/1.263, allocations: 0.6036 MB / 0.7271 GB, free: 53.29 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001262/1.264, allocations: 1.748 MB / 0.7288 GB, free: 52.02 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001718/1.266, allocations: 70.98 kB / 0.7289 GB, free: 52.01 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001639/1.266, allocations: 106.8 kB / 0.729 GB, free: 52.01 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 98 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (300): * Single equations (assignments): 298 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003189/1.267, allocations: 173.2 kB / 0.7291 GB, free: 51.89 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003042/1.267, allocations: 234.4 kB / 0.7294 GB, free: 51.77 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004362/1.271, allocations: 2.66 MB / 0.732 GB, free: 50.67 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.595e-05/1.271, allocations: 23.03 kB / 0.732 GB, free: 50.66 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.155e-05/1.271, allocations: 7.781 kB / 0.732 GB, free: 50.66 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.878e-05/1.271, allocations: 11.53 kB / 0.732 GB, free: 50.66 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008543/1.28, allocations: 5.951 MB / 0.7378 GB, free: 47.92 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.386e-06/1.28, allocations: 0 / 0.7378 GB, free: 47.92 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001592/1.281, allocations: 355.6 kB / 0.7382 GB, free: 47.91 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007812/1.282, allocations: 304.8 kB / 0.7384 GB, free: 47.81 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001155/1.282, allocations: 22.95 kB / 0.7385 GB, free: 47.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004737/1.287, allocations: 6.018 MB / 0.7443 GB, free: 42.89 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/1.287, allocations: 0 / 0.7443 GB, free: 42.89 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00521/1.292, allocations: 4.082 MB / 0.7483 GB, free: 40.9 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001155/1.294, allocations: 0.5138 MB / 0.7488 GB, free: 40.55 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004553/1.294, allocations: 7.75 kB / 0.7488 GB, free: 40.54 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001299/1.295, allocations: 71.78 kB / 0.7489 GB, free: 40.54 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002311/1.296, allocations: 112.7 kB / 0.749 GB, free: 40.52 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001157/1.296, allocations: 50.62 kB / 0.7491 GB, free: 40.51 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001771/1.298, allocations: 1.235 MB / 0.7503 GB, free: 39.97 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002637/1.3, allocations: 0.6464 MB / 0.7509 GB, free: 39.95 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.excitation.electroMagneticConverter.Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,mechanicalSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (166): * Single equations (assignments): 163 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005926/1.301, allocations: 354.3 kB / 0.7512 GB, free: 39.85 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003812/1.305, allocations: 2.428 MB / 0.7536 GB, free: 38.88 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/1.305, allocations: 0 / 0.7536 GB, free: 38.88 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001882/1.306, allocations: 1.477 MB / 0.755 GB, free: 38.16 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002104/1.309, allocations: 413.7 kB / 0.7554 GB, free: 38.05 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01043/1.319, allocations: 5.71 MB / 0.761 GB, free: 35.75 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004097/1.323, allocations: 2.931 MB / 0.7639 GB, free: 34.6 MB / 442.7 MB Notification: Performance of SimCode: time 1.253e-06/1.323, allocations: 0 / 0.7639 GB, free: 34.6 MB / 442.7 MB Notification: Performance of Templates: time 0.09644/1.42, allocations: 31.38 MB / 0.7945 GB, free: 19.48 MB / 442.7 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe 2>&1)