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: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_ShortCircuit2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_ShortCircuit2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit2",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.005174/0.005174, allocations: 179.3 kB / 7.456 MB, free: 2.316 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.06731/0.06731, allocations: 8.708 MB / 16.58 MB, free: 424 kB / 10.45 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.456/2.456, allocations: 221.4 MB / 240.5 MB, free: 8.215 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.00144/0.00144, allocations: 99.08 kB / 293.5 MB, free: 5.508 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2184/0.2199, allocations: 58.67 MB / 352.2 MB, free: 10.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5643/0.7842, allocations: 52.54 MB / 404.7 MB, free: 26.77 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5875/1.372, allocations: 116.3 MB / 0.5088 GB, free: 98.13 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004633/1.372, allocations: 82.23 kB / 0.5088 GB, free: 98.13 MB / 378.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.5943/1.967, allocations: 157.6 MB / 0.6628 GB, free: 4.227 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.864e-05/1.967, allocations: 8 kB / 0.6628 GB, free: 4.219 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008605/1.975, allocations: 0.8851 MB / 0.6637 GB, free: 3.328 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4098/2.385, allocations: 3.543 MB / 0.6671 GB, free: 96.8 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004123/2.386, allocations: 119.4 kB / 0.6672 GB, free: 96.8 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002699/2.389, allocations: 221 kB / 0.6674 GB, free: 96.8 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01566/2.404, allocations: 3.409 MB / 0.6708 GB, free: 96.79 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02387/2.428, allocations: 4.042 MB / 0.6747 GB, free: 96.35 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004/2.429, allocations: 9.578 kB / 0.6747 GB, free: 96.35 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002324/2.431, allocations: 3.969 kB / 0.6747 GB, free: 96.35 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004358/2.432, allocations: 154.1 kB / 0.6749 GB, free: 96.34 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06132/2.493, allocations: 14.96 MB / 0.6895 GB, free: 92.88 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003515/2.497, allocations: 1.03 MB / 0.6905 GB, free: 92.86 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003342/2.5, allocations: 1.257 MB / 0.6917 GB, free: 92.85 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01189/2.512, allocations: 4.248 MB / 0.6959 GB, free: 91.7 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.103e-05/2.512, allocations: 52.38 kB / 0.6959 GB, free: 91.66 MB / 442.7 MB Notification: Performance of pre-optimization done (n=146): time 9.357e-06/2.512, allocations: 0 / 0.6959 GB, free: 91.66 MB / 442.7 MB Notification: Performance of matching and sorting (n=178): time 0.02339/2.535, allocations: 5.258 MB / 0.701 GB, free: 90.76 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.799e-05/2.536, allocations: 67.84 kB / 0.7011 GB, free: 90.7 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004336/2.54, allocations: 1.454 MB / 0.7025 GB, free: 90.53 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005532/2.541, allocations: 25.7 kB / 0.7026 GB, free: 90.5 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001336/2.542, allocations: 1.426 MB / 0.704 GB, free: 89.79 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008671/2.543, allocations: 0.5781 MB / 0.7045 GB, free: 89.41 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001063/2.543, allocations: 3.719 kB / 0.7045 GB, free: 89.41 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002955/2.543, allocations: 398.6 kB / 0.7049 GB, free: 89.11 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001847/2.545, allocations: 0.7899 MB / 0.7057 GB, free: 89.1 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00241/2.548, allocations: 1.531 MB / 0.7072 GB, free: 88.21 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.00978/2.557, allocations: 2.537 MB / 0.7096 GB, free: 88.07 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.909e-05/2.557, allocations: 7.719 kB / 0.7097 GB, free: 88.07 MB / 442.7 MB Notification: Performance of matching and sorting (n=302) (initialization): time 0.008688/2.566, allocations: 2.791 MB / 0.7124 GB, free: 87.87 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.869e-05/2.566, allocations: 3.938 kB / 0.7124 GB, free: 87.87 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.112e-05/2.566, allocations: 22.56 kB / 0.7124 GB, free: 87.87 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00132/2.568, allocations: 376.7 kB / 0.7128 GB, free: 87.85 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002781/2.57, allocations: 0.5037 MB / 0.7133 GB, free: 87.85 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006016/2.577, allocations: 3.696 MB / 0.7169 GB, free: 86.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003016/2.58, allocations: 51.83 kB / 0.7169 GB, free: 86.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007726/2.58, allocations: 108.8 kB / 0.717 GB, free: 86.5 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.001156/2.582, allocations: 173.2 kB / 0.7172 GB, free: 86.38 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001075/2.583, allocations: 206.5 kB / 0.7174 GB, free: 86.27 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007194/2.59, allocations: 2.095 MB / 0.7194 GB, free: 86.14 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.247e-05/2.59, allocations: 21.72 kB / 0.7194 GB, free: 86.13 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.884e-05/2.59, allocations: 3.969 kB / 0.7194 GB, free: 86.13 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.894e-05/2.59, allocations: 10.45 kB / 0.7195 GB, free: 86.13 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01625/2.606, allocations: 5.39 MB / 0.7247 GB, free: 85.43 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.153e-05/2.607, allocations: 6 kB / 0.7247 GB, free: 85.43 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001705/2.608, allocations: 290.6 kB / 0.725 GB, free: 85.43 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00116/2.609, allocations: 325.4 kB / 0.7253 GB, free: 85.42 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002593/2.61, allocations: 18.84 kB / 0.7253 GB, free: 85.42 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005711/2.615, allocations: 3.49 MB / 0.7287 GB, free: 84.07 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.067e-06/2.616, allocations: 2.531 kB / 0.7287 GB, free: 84.07 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007154/2.623, allocations: 3.312 MB / 0.732 GB, free: 83.45 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01254/2.635, allocations: 6.772 MB / 0.7386 GB, free: 80.76 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002175/2.638, allocations: 470 kB / 0.739 GB, free: 80.43 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001104/2.639, allocations: 7.844 kB / 0.739 GB, free: 80.43 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002185/2.641, allocations: 36.86 kB / 0.7391 GB, free: 80.43 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002727/2.641, allocations: 98.19 kB / 0.7392 GB, free: 80.41 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001936/2.641, allocations: 49.59 kB / 0.7392 GB, free: 80.4 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.003253/2.645, allocations: 1.06 MB / 0.7403 GB, free: 79.95 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005966/2.651, allocations: 0.6272 MB / 0.7409 GB, free: 79.91 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.001224/2.652, allocations: 355.9 kB / 0.7412 GB, free: 79.81 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00577/2.658, allocations: 2.244 MB / 0.7434 GB, free: 78.87 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.186e-05/2.658, allocations: 0 / 0.7434 GB, free: 78.87 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00289/2.661, allocations: 1.077 MB / 0.7445 GB, free: 78.43 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004205/2.665, allocations: 397.4 kB / 0.7448 GB, free: 78.33 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02359/2.689, allocations: 4.97 MB / 0.7497 GB, free: 76.38 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01115/2.7, allocations: 2.678 MB / 0.7523 GB, free: 75.32 MB / 442.7 MB Notification: Performance of SimCode: time 2.235e-06/2.7, allocations: 0 / 0.7523 GB, free: 75.32 MB / 442.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit2_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit2.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.pipe 2>&1)