Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.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_ShortCircuit1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_ShortCircuit1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit1",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.005424/0.005424, allocations: 177.8 kB / 7.455 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.06523/0.06523, allocations: 8.709 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.174/2.174, allocations: 221.4 MB / 240.5 MB, free: 8.23 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.001486/0.001486, allocations: 105.6 kB / 293.5 MB, free: 5.496 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2315/0.233, allocations: 58.67 MB / 352.2 MB, free: 10.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4802/0.7132, allocations: 52.54 MB / 404.7 MB, free: 26.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6756/1.389, allocations: 116.3 MB / 0.5088 GB, free: 98.09 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004091/1.389, allocations: 73.53 kB / 0.5088 GB, free: 98.09 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.6115/2.001, allocations: 157.6 MB / 0.6628 GB, free: 4.273 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.707e-05/2.001, allocations: 8 kB / 0.6628 GB, free: 4.266 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01123/2.012, allocations: 0.8852 MB / 0.6636 GB, free: 3.375 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4237/2.436, allocations: 3.539 MB / 0.6671 GB, free: 97.08 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005201/2.437, allocations: 122.5 kB / 0.6672 GB, free: 97.08 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00266/2.439, allocations: 215.8 kB / 0.6674 GB, free: 97.08 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01797/2.457, allocations: 3.411 MB / 0.6708 GB, free: 97.06 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0232/2.481, allocations: 4.023 MB / 0.6747 GB, free: 96.64 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002197/2.481, allocations: 10.58 kB / 0.6747 GB, free: 96.64 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009944/2.482, allocations: 0.625 kB / 0.6747 GB, free: 96.64 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002611/2.482, allocations: 158 kB / 0.6748 GB, free: 96.64 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04723/2.53, allocations: 14.77 MB / 0.6893 GB, free: 93.34 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002/2.532, allocations: 0.9995 MB / 0.6902 GB, free: 93.32 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002102/2.534, allocations: 1.23 MB / 0.6914 GB, free: 93.31 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009743/2.544, allocations: 4.143 MB / 0.6955 GB, free: 92.1 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.147e-05/2.544, allocations: 52.41 kB / 0.6955 GB, free: 92.06 MB / 442.7 MB Notification: Performance of pre-optimization done (n=136): time 6.212e-06/2.544, allocations: 3 kB / 0.6955 GB, free: 92.06 MB / 442.7 MB Notification: Performance of matching and sorting (n=163): time 0.01433/2.558, allocations: 4.682 MB / 0.7001 GB, free: 91.18 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.735e-05/2.558, allocations: 70.59 kB / 0.7002 GB, free: 91.12 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003584/2.562, allocations: 1.523 MB / 0.7017 GB, free: 90.9 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002377/2.562, allocations: 25.7 kB / 0.7017 GB, free: 90.87 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001186/2.563, allocations: 1.457 MB / 0.7031 GB, free: 90.14 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000602/2.564, allocations: 0.5351 MB / 0.7036 GB, free: 89.79 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001038/2.564, allocations: 0 / 0.7036 GB, free: 89.79 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001913/2.564, allocations: 394.2 kB / 0.704 GB, free: 89.49 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001299/2.566, allocations: 0.7705 MB / 0.7048 GB, free: 89.48 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00168/2.567, allocations: 1.501 MB / 0.7062 GB, free: 88.59 MB / 442.7 MB Notification: The following equation is consistent and got removed from the initialization problem: smee.is[2] = 0.0 Notification: Performance of analyzeInitialSystem (initialization): time 0.00952/2.577, allocations: 2.478 MB / 0.7087 GB, free: 88.45 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-05/2.577, allocations: 7.938 kB / 0.7087 GB, free: 88.45 MB / 442.7 MB Notification: Performance of matching and sorting (n=297) (initialization): time 0.009137/2.586, allocations: 2.657 MB / 0.7113 GB, free: 88.25 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.719e-05/2.586, allocations: 10.95 kB / 0.7113 GB, free: 88.25 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001077/2.586, allocations: 26.91 kB / 0.7113 GB, free: 88.25 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001479/2.588, allocations: 284.2 kB / 0.7116 GB, free: 88.23 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003651/2.592, allocations: 0.5187 MB / 0.7121 GB, free: 88.23 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006078/2.598, allocations: 2.939 MB / 0.7149 GB, free: 86.92 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003692/2.601, allocations: 49.56 kB / 0.715 GB, free: 86.91 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003867/2.602, allocations: 110.6 kB / 0.7151 GB, free: 86.91 MB / 442.7 MB Warning: Assuming redundant initial conditions for the following 1 initial equations: smee.is[2] = 0.0 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 110 * 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 (275): * Single equations (assignments): 273 * 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%) 20} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005802/2.602, allocations: 186.3 kB / 0.7153 GB, free: 86.79 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007447/2.603, allocations: 204.7 kB / 0.7155 GB, free: 86.68 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006118/2.609, allocations: 1.821 MB / 0.7172 GB, free: 86.57 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.666e-05/2.609, allocations: 18.66 kB / 0.7173 GB, free: 86.57 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.922e-05/2.609, allocations: 7.828 kB / 0.7173 GB, free: 86.57 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.899e-05/2.609, allocations: 11.53 kB / 0.7173 GB, free: 86.57 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01638/2.626, allocations: 4.831 MB / 0.722 GB, free: 85.96 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.846e-05/2.626, allocations: 0 / 0.722 GB, free: 85.96 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00233/2.628, allocations: 301.3 kB / 0.7223 GB, free: 85.96 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001174/2.629, allocations: 216 kB / 0.7225 GB, free: 85.95 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001931/2.63, allocations: 15.39 kB / 0.7225 GB, free: 85.95 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005854/2.636, allocations: 2.832 MB / 0.7253 GB, free: 84.63 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.099e-05/2.636, allocations: 7.188 kB / 0.7253 GB, free: 84.63 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008827/2.644, allocations: 2.904 MB / 0.7281 GB, free: 84.02 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01487/2.659, allocations: 6.013 MB / 0.734 GB, free: 82.92 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002213/2.662, allocations: 446 kB / 0.7344 GB, free: 82.6 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001219/2.663, allocations: 15.38 kB / 0.7344 GB, free: 82.59 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002304/2.665, allocations: 34.2 kB / 0.7345 GB, free: 82.59 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003164/2.666, allocations: 92.56 kB / 0.7346 GB, free: 82.58 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000171/2.666, allocations: 42.47 kB / 0.7346 GB, free: 82.57 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.003088/2.669, allocations: 1.114 MB / 0.7357 GB, free: 82.06 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005645/2.675, allocations: 0.611 MB / 0.7363 GB, free: 82.02 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 5 (smee.phiMechanical,smee.is[1],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 (143): * Single equations (assignments): 142 * 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 {(2,100.0%) 19} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001061/2.676, allocations: 363 kB / 0.7366 GB, free: 81.92 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004851/2.681, allocations: 2.091 MB / 0.7387 GB, free: 81.05 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.061e-05/2.681, allocations: 3.125 kB / 0.7387 GB, free: 81.05 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002343/2.683, allocations: 0.9308 MB / 0.7396 GB, free: 80.66 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003862/2.687, allocations: 394.5 kB / 0.74 GB, free: 80.56 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02687/2.714, allocations: 4.804 MB / 0.7446 GB, free: 78.69 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007765/2.722, allocations: 2.661 MB / 0.7472 GB, free: 77.64 MB / 442.7 MB Notification: Performance of SimCode: time 3.336e-06/2.722, allocations: 0 / 0.7472 GB, free: 77.64 MB / 442.7 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit1_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit1.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.pipe 2>&1)