Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.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_ShortCircuit2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2") translateModel(HanserModelica.SynchronousMachines.SMEE_ShortCircuit2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2") [: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.002018/0.002018, allocations: 181 kB / 7.454 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03708/0.03708, allocations: 8.703 MB / 16.57 MB, free: 492 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.288/1.288, allocations: 221.4 MB / 240.5 MB, free: 8.191 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.000916/0.0009158, allocations: 90.52 kB / 293.5 MB, free: 7.449 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 7.124e-06/7.144e-06, allocations: 4 kB / 352.1 MB, free: 12.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2806/0.2807, allocations: 52.53 MB / 404.6 MB, free: 27.03 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3149/0.5956, allocations: 116.3 MB / 0.5087 GB, free: 98.25 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002146/0.5958, allocations: 72.59 kB / 0.5088 GB, free: 98.25 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.3606/0.9565, allocations: 154 MB / 0.6592 GB, free: 8.098 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.000385/0.9569, allocations: 87.92 kB / 0.6592 GB, free: 8.012 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: 962 * Number of variables: 962 Notification: Performance of Generate backend data structure: time 0.01152/0.9685, allocations: 3.506 MB / 0.6627 GB, free: 4.441 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.9685, allocations: 11.97 kB / 0.6627 GB, free: 4.43 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005956/0.9745, allocations: 0.8852 MB / 0.6635 GB, free: 3.539 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1894/1.164, allocations: 3.54 MB / 0.667 GB, free: 98.52 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002887/1.164, allocations: 119.5 kB / 0.6671 GB, free: 98.52 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00138/1.166, allocations: 214.4 kB / 0.6673 GB, free: 98.52 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007076/1.173, allocations: 3.411 MB / 0.6706 GB, free: 98.5 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007145/1.18, allocations: 4.043 MB / 0.6746 GB, free: 98.06 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.377e-05/1.18, allocations: 7.344 kB / 0.6746 GB, free: 98.06 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003498/1.18, allocations: 5.25 kB / 0.6746 GB, free: 98.06 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001369/1.18, allocations: 152.7 kB / 0.6748 GB, free: 98.05 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02462/1.205, allocations: 14.97 MB / 0.6894 GB, free: 94.6 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001617/1.207, allocations: 1.025 MB / 0.6904 GB, free: 94.57 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001946/1.209, allocations: 1.263 MB / 0.6916 GB, free: 94.56 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007739/1.217, allocations: 4.251 MB / 0.6958 GB, free: 93.42 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.093e-05/1.217, allocations: 49.66 kB / 0.6958 GB, free: 93.38 MB / 442.7 MB Notification: Performance of pre-optimization done (n=146): time 3.807e-06/1.217, allocations: 3.344 kB / 0.6958 GB, free: 93.38 MB / 442.7 MB Notification: Performance of matching and sorting (n=178): time 0.01178/1.228, allocations: 5.251 MB / 0.7009 GB, free: 92.47 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.089e-05/1.228, allocations: 72.19 kB / 0.701 GB, free: 92.41 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003162/1.232, allocations: 1.454 MB / 0.7024 GB, free: 92.24 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001843/1.232, allocations: 25.7 kB / 0.7025 GB, free: 92.21 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007459/1.233, allocations: 1.417 MB / 0.7038 GB, free: 91.51 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005142/1.233, allocations: 0.5822 MB / 0.7044 GB, free: 91.12 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001354/1.233, allocations: 3.062 kB / 0.7044 GB, free: 91.12 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001655/1.233, allocations: 398.4 kB / 0.7048 GB, free: 90.82 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001222/1.235, allocations: 0.7908 MB / 0.7056 GB, free: 90.81 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001511/1.236, allocations: 1.53 MB / 0.7071 GB, free: 89.92 MB / 442.7 MB Notification: The following equation is consistent and got removed from the initialization problem: smee.is[1] = 0.0 Notification: Performance of analyzeInitialSystem (initialization): time 0.008795/1.245, allocations: 2.541 MB / 0.7095 GB, free: 89.79 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.802e-05/1.245, allocations: 7.156 kB / 0.7095 GB, free: 89.79 MB / 442.7 MB Notification: Performance of matching and sorting (n=302) (initialization): time 0.005835/1.251, allocations: 2.792 MB / 0.7123 GB, free: 89.58 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.049e-05/1.251, allocations: 3.938 kB / 0.7123 GB, free: 89.58 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.854e-05/1.251, allocations: 26.03 kB / 0.7123 GB, free: 89.58 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001038/1.252, allocations: 375.4 kB / 0.7127 GB, free: 89.56 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001993/1.254, allocations: 0.4991 MB / 0.7131 GB, free: 89.56 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004512/1.259, allocations: 3.7 MB / 0.7168 GB, free: 88.22 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002041/1.261, allocations: 51.09 kB / 0.7168 GB, free: 88.21 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003549/1.261, allocations: 103.3 kB / 0.7169 GB, free: 88.21 MB / 442.7 MB Warning: Assuming redundant initial conditions for the following 1 initial equations: smee.is[1] = 0.0 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 109 * 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 (271): * Single equations (assignments): 269 * 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 {(2,100.0%) 29} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005917/1.262, allocations: 189.7 kB / 0.7171 GB, free: 88.09 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005561/1.262, allocations: 209.6 kB / 0.7173 GB, free: 87.98 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00404/1.266, allocations: 2.087 MB / 0.7193 GB, free: 87.85 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.435e-05/1.266, allocations: 22.19 kB / 0.7193 GB, free: 87.85 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.231e-05/1.266, allocations: 6.5 kB / 0.7193 GB, free: 87.85 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.64e-05/1.266, allocations: 7.734 kB / 0.7194 GB, free: 87.85 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009424/1.276, allocations: 5.391 MB / 0.7246 GB, free: 87.14 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.115e-06/1.276, allocations: 3.344 kB / 0.7246 GB, free: 87.14 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001317/1.277, allocations: 296.8 kB / 0.7249 GB, free: 87.14 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008148/1.278, allocations: 314.3 kB / 0.7252 GB, free: 87.13 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001205/1.278, allocations: 19.17 kB / 0.7252 GB, free: 87.13 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003961/1.282, allocations: 3.499 MB / 0.7286 GB, free: 85.79 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.187e-06/1.282, allocations: 0 / 0.7286 GB, free: 85.79 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004458/1.287, allocations: 3.307 MB / 0.7319 GB, free: 85.16 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001017/1.288, allocations: 459.5 kB / 0.7323 GB, free: 84.96 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005183/1.288, allocations: 13.78 kB / 0.7323 GB, free: 84.96 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00118/1.289, allocations: 39.66 kB / 0.7324 GB, free: 84.96 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001829/1.29, allocations: 101.2 kB / 0.7325 GB, free: 84.96 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001076/1.29, allocations: 50.91 kB / 0.7325 GB, free: 84.96 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.00163/1.291, allocations: 1.057 MB / 0.7335 GB, free: 84.85 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00246/1.294, allocations: 0.5925 MB / 0.7341 GB, free: 84.85 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 5 (smee.phiMechanical,smee.is[2],smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.rotorCage.strayReluctance.Phi.re) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (150): * Single equations (assignments): 149 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 26} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005825/1.294, allocations: 359.1 kB / 0.7345 GB, free: 84.76 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003816/1.298, allocations: 2.243 MB / 0.7367 GB, free: 84.07 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/1.298, allocations: 0 / 0.7367 GB, free: 84.07 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001619/1.3, allocations: 1.084 MB / 0.7377 GB, free: 83.62 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002198/1.302, allocations: 400.5 kB / 0.7381 GB, free: 83.52 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01011/1.312, allocations: 4.938 MB / 0.7429 GB, free: 81.59 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002582/1.315, allocations: 2.668 MB / 0.7455 GB, free: 80.52 MB / 442.7 MB Notification: Performance of SimCode: time 1.262e-06/1.315, allocations: 2.656 kB / 0.7455 GB, free: 80.52 MB / 442.7 MB Notification: Performance of Templates: time 0.05218/1.367, allocations: 29.44 MB / 0.7743 GB, free: 78.81 MB / 442.7 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.pipe 2>&1)