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/ModelicaServices 4.0.0+maint.om/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/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) 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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001449/0.001449, allocations: 103.4 kB / 16.27 MB, free: 5.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.472/1.472, allocations: 222.9 MB / 239.9 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001607/0.001607, allocations: 196.4 kB / 290.2 MB, free: 2.344 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03457/0.03457, allocations: 8.788 MB / 349.2 MB, free: 4.727 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001523/0.001523, allocations: 77.58 kB / 411.7 MB, free: 42.16 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1087, allocations: 51.58 MB / 463.3 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_DOL): time 0.01824/0.127, allocations: 16.7 MB / 480 MB, free: 13.61 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01279/0.1398, allocations: 5.461 MB / 485.5 MB, free: 8.133 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00389/0.1438, allocations: 99.69 kB / 485.6 MB, free: 8.035 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004843/0.1487, allocations: 1.266 MB / 486.8 MB, free: 6.766 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/SynchronousMachines/SMEE_DOL.mo:12:3-13:30:writable] Warning: Conditional component 'ir' is used in a non-connect context. Notification: Performance of NFTyping.typeBindings: time 0.007619/0.1564, allocations: 1.619 MB / 488.5 MB, free: 5.137 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003897/0.1603, allocations: 1.035 MB / 489.5 MB, free: 4.105 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008704/0.169, allocations: 4.982 MB / 494.5 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00842/0.1775, allocations: 4.307 MB / 498.8 MB, free: 10.71 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004823/0.1823, allocations: 2.266 MB / 0.4893 GB, free: 8.438 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005379/0.1878, allocations: 2.646 MB / 0.4919 GB, free: 5.781 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002958/0.1908, allocations: 0.6211 MB / 0.4925 GB, free: 5.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004073/0.1949, allocations: 0.8513 MB / 0.4933 GB, free: 4.309 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002738/0.1976, allocations: 1.437 MB / 0.4947 GB, free: 2.867 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006156/0.2038, allocations: 2.645 MB / 0.4973 GB, free: 216 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0123/0.2162, allocations: 8.054 MB / 0.5052 GB, free: 8.133 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/0.2162, allocations: 0 / 0.5052 GB, free: 8.133 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.195e-06/0.2162, allocations: 0 / 0.5052 GB, free: 8.133 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000318/0.2165, allocations: 4 kB / 0.5052 GB, free: 8.129 MB / 350.1 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.02066/0.2372, allocations: 5.397 MB / 0.5105 GB, free: 2.652 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.897e-05/0.2373, allocations: 8.031 kB / 0.5105 GB, free: 2.645 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006465/0.2438, allocations: 0.9947 MB / 0.5114 GB, free: 1.645 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007786/0.2516, allocations: 2.963 MB / 0.5143 GB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004037/0.252, allocations: 308.6 kB / 0.5146 GB, free: 14.32 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001578/0.2536, allocations: 399.8 kB / 0.515 GB, free: 13.93 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01541/0.269, allocations: 5.221 MB / 0.5201 GB, free: 8.621 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002357/0.2693, allocations: 0 / 0.5201 GB, free: 8.621 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001528/0.2709, allocations: 172 kB / 0.5203 GB, free: 8.453 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000244/0.2711, allocations: 168 kB / 0.5204 GB, free: 8.285 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01222/0.2833, allocations: 4.466 MB / 0.5248 GB, free: 3.801 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2743/0.5577, allocations: 16.8 MB / 0.5412 GB, free: 58.75 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01174/0.5695, allocations: 8.434 MB / 0.5494 GB, free: 52.17 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005355/0.5749, allocations: 1.707 MB / 0.5511 GB, free: 51.55 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01533/0.5902, allocations: 4.995 MB / 0.556 GB, free: 47.86 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.446e-05/0.5904, allocations: 54.48 kB / 0.556 GB, free: 47.8 MB / 366.1 MB Notification: Performance of pre-optimization done (n=158): time 6.973e-06/0.5904, allocations: 3.844 kB / 0.556 GB, free: 47.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=161): time 0.01907/0.6095, allocations: 6.156 MB / 0.5621 GB, free: 44 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.293e-05/0.6096, allocations: 68.28 kB / 0.5621 GB, free: 43.94 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005669/0.6152, allocations: 2.282 MB / 0.5643 GB, free: 42.7 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004148/0.6157, allocations: 51.77 kB / 0.5644 GB, free: 42.65 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00134/0.6171, allocations: 1.849 MB / 0.5662 GB, free: 41.03 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006404/0.6177, allocations: 0.5468 MB / 0.5667 GB, free: 40.56 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008362/0.6186, allocations: 400.3 kB / 0.5671 GB, free: 40.32 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.749e-05/0.6187, allocations: 305.1 kB / 0.5674 GB, free: 40.02 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002401/0.6211, allocations: 0.8492 MB / 0.5682 GB, free: 39.58 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002663/0.6238, allocations: 1.563 MB / 0.5698 GB, free: 38.19 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00506/0.6289, allocations: 2.57 MB / 0.5723 GB, free: 36.25 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-05/0.6289, allocations: 7.281 kB / 0.5723 GB, free: 36.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=276) (initialization): time 0.00751/0.6364, allocations: 2.89 MB / 0.5751 GB, free: 33.86 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.108e-05/0.6365, allocations: 19.94 kB / 0.5751 GB, free: 33.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.04e-05/0.6366, allocations: 24.53 kB / 0.5751 GB, free: 33.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005266/0.6371, allocations: 129.7 kB / 0.5753 GB, free: 33.69 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003561/0.6407, allocations: 0.5455 MB / 0.5758 GB, free: 33.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002098/0.6428, allocations: 2.002 MB / 0.5778 GB, free: 31 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003231/0.6461, allocations: 115.9 kB / 0.5779 GB, free: 30.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003239/0.6464, allocations: 95.98 kB / 0.578 GB, free: 30.79 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 103 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (270): * Single equations (assignments): 268 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002913/0.6493, allocations: 1.207 MB / 0.5791 GB, free: 29.57 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000736/0.6501, allocations: 245 kB / 0.5794 GB, free: 29.33 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006329/0.6564, allocations: 2.464 MB / 0.5818 GB, free: 26.81 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.993e-05/0.6565, allocations: 16 kB / 0.5818 GB, free: 26.8 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.175e-05/0.6565, allocations: 4 kB / 0.5818 GB, free: 26.79 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.37e-05/0.6566, allocations: 11.95 kB / 0.5818 GB, free: 26.78 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01501/0.6716, allocations: 5.792 MB / 0.5875 GB, free: 20.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.094e-05/0.6716, allocations: 0 / 0.5875 GB, free: 20.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001644/0.6733, allocations: 295.8 kB / 0.5877 GB, free: 20.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009831/0.6743, allocations: 301.4 kB / 0.588 GB, free: 20.3 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001416/0.6744, allocations: 43.98 kB / 0.5881 GB, free: 20.26 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006681/0.6811, allocations: 6.996 MB / 0.5949 GB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.6812, allocations: 4.125 kB / 0.5949 GB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006833/0.688, allocations: 3.567 MB / 0.5984 GB, free: 9.215 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001545/0.6896, allocations: 0.4979 MB / 0.5989 GB, free: 8.695 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004137/0.69, allocations: 35.98 kB / 0.5989 GB, free: 8.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00149/0.6915, allocations: 75.94 kB / 0.599 GB, free: 8.586 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003326/0.6919, allocations: 129 kB / 0.5991 GB, free: 8.461 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000128/0.692, allocations: 47.98 kB / 0.5992 GB, free: 8.414 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002754/0.6948, allocations: 1.549 MB / 0.6007 GB, free: 6.852 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.6948, allocations: 0.7656 kB / 0.6007 GB, free: 6.852 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003326/0.6981, allocations: 0.6696 MB / 0.6013 GB, free: 6.184 MB / 366.1 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.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smee.excitation.electroMagneticConverter.Phi.re,mechanicalSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,5,100.0%), (1,8,100.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000433/0.6986, allocations: 170 kB / 0.6015 GB, free: 6.012 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.008126/0.7067, allocations: 2.919 MB / 0.6043 GB, free: 3.078 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.997e-06/0.7067, allocations: 4 kB / 0.6043 GB, free: 3.074 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002634/0.7094, allocations: 1.451 MB / 0.6058 GB, free: 1.594 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003928/0.7133, allocations: 0.5975 MB / 0.6063 GB, free: 1 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01671/0.7301, allocations: 6.94 MB / 0.6131 GB, free: 10.02 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003385/0.7335, allocations: 2.599 MB / 0.6157 GB, free: 7.402 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00113/0.7346, allocations: 187.3 kB / 0.6158 GB, free: 7.219 MB / 382.1 MB Notification: Performance of SimCode: time 7.91e-07/0.7347, allocations: 0 / 0.6158 GB, free: 7.219 MB / 382.1 MB Notification: Performance of Templates: time 0.3225/1.057, allocations: 95.33 MB / 0.7089 GB, free: 147 MB / 462.1 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)