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.000878/0.000878, allocations: 91.38 kB / 15.06 MB, free: 1.094 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.426/1.426, allocations: 223.3 MB / 239 MB, free: 5.625 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.001481/0.001481, allocations: 184.5 kB / 290.3 MB, free: 2.312 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03257/0.03257, allocations: 8.803 MB / 350.2 MB, free: 4.754 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003882/0.0003883, allocations: 9.969 kB / 413.2 MB, free: 43.04 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1078, allocations: 52.56 MB / 465.8 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_DOL): time 0.01749/0.1254, allocations: 14.72 MB / 480.5 MB, free: 14.84 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01309/0.1385, allocations: 5.086 MB / 485.6 MB, free: 9.738 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004395/0.143, allocations: 95.62 kB / 485.7 MB, free: 9.645 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003757/0.1468, allocations: 0.9595 MB / 486.6 MB, free: 8.68 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.006446/0.1532, allocations: 1.321 MB / 487.9 MB, free: 7.352 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002753/0.156, allocations: 0.7122 MB / 488.6 MB, free: 6.645 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008498/0.1645, allocations: 4.952 MB / 493.6 MB, free: 1.676 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00395/0.1685, allocations: 2.733 MB / 496.3 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003531/0.1721, allocations: 1.576 MB / 497.9 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003913/0.176, allocations: 2.05 MB / 500 MB, free: 11.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006159/0.1766, allocations: 252 kB / 0.4885 GB, free: 11 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001558/0.1782, allocations: 459.8 kB / 0.4889 GB, free: 10.55 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009242/0.1791, allocations: 0.973 MB / 0.4899 GB, free: 9.578 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00138/0.1805, allocations: 0.9057 MB / 0.4908 GB, free: 8.664 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006673/0.1872, allocations: 6.603 MB / 0.4972 GB, free: 2.043 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.702e-06/0.1872, allocations: 4 kB / 0.4972 GB, free: 2.039 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.1872, allocations: 0 / 0.4972 GB, free: 2.039 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002248/0.1875, allocations: 0 / 0.4972 GB, free: 2.039 MB / 334.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.01283/0.2003, allocations: 4.61 MB / 0.5017 GB, free: 13.35 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.788e-05/0.2004, allocations: 12.03 kB / 0.5017 GB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005653/0.206, allocations: 0.9939 MB / 0.5027 GB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008072/0.2141, allocations: 2.796 MB / 0.5054 GB, free: 9.488 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003447/0.2145, allocations: 308.1 kB / 0.5057 GB, free: 9.184 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001176/0.2157, allocations: 391.9 kB / 0.5061 GB, free: 8.801 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01138/0.2271, allocations: 5.221 MB / 0.5112 GB, free: 3.492 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.77e-05/0.2272, allocations: 0 / 0.5112 GB, free: 3.492 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003678/0.2276, allocations: 164 kB / 0.5113 GB, free: 3.332 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001665/0.2278, allocations: 176 kB / 0.5115 GB, free: 3.156 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009265/0.2371, allocations: 4.47 MB / 0.5159 GB, free: 14.67 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.301/0.5381, allocations: 16.94 MB / 0.5324 GB, free: 56.71 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006774/0.5449, allocations: 8.438 MB / 0.5407 GB, free: 50.36 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003521/0.5485, allocations: 1.721 MB / 0.5423 GB, free: 50.34 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009441/0.558, allocations: 5.042 MB / 0.5473 GB, free: 49.19 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.825e-05/0.5581, allocations: 56.52 kB / 0.5473 GB, free: 49.14 MB / 366.1 MB Notification: Performance of pre-optimization done (n=158): time 5.32e-06/0.5581, allocations: 1.188 kB / 0.5473 GB, free: 49.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=161): time 0.01256/0.5707, allocations: 6.27 MB / 0.5534 GB, free: 47.63 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.401e-05/0.5707, allocations: 68.62 kB / 0.5535 GB, free: 47.57 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004057/0.5748, allocations: 2.294 MB / 0.5557 GB, free: 47.15 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001795/0.575, allocations: 53.61 kB / 0.5558 GB, free: 47.1 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001084/0.5761, allocations: 1.849 MB / 0.5576 GB, free: 45.69 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004004/0.5765, allocations: 0.5537 MB / 0.5581 GB, free: 45.27 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.314e-05/0.5766, allocations: 43.88 kB / 0.5582 GB, free: 45.23 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.5767, allocations: 392 kB / 0.5586 GB, free: 44.89 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00132/0.5781, allocations: 0.8585 MB / 0.5594 GB, free: 44.57 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001608/0.5797, allocations: 1.578 MB / 0.5609 GB, free: 43.33 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001656/0.5813, allocations: 1.134 MB / 0.562 GB, free: 42.81 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.606e-05/0.5814, allocations: 7.719 kB / 0.5621 GB, free: 42.81 MB / 366.1 MB Notification: Performance of matching and sorting (n=276) (initialization): time 0.004786/0.5862, allocations: 2.915 MB / 0.5649 GB, free: 41.38 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.417e-05/0.5862, allocations: 16.41 kB / 0.5649 GB, free: 41.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.948e-05/0.5863, allocations: 20.94 kB / 0.5649 GB, free: 41.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003344/0.5866, allocations: 134.2 kB / 0.5651 GB, free: 41.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001844/0.5885, allocations: 0.5479 MB / 0.5656 GB, free: 41.19 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001386/0.5899, allocations: 1.839 MB / 0.5674 GB, free: 39.47 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002017/0.5919, allocations: 117.9 kB / 0.5675 GB, free: 39.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001418/0.592, allocations: 97.17 kB / 0.5676 GB, free: 39.39 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 (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.002334/0.5944, allocations: 1.197 MB / 0.5688 GB, free: 38.59 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005421/0.5949, allocations: 247.9 kB / 0.569 GB, free: 38.47 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003921/0.5989, allocations: 2.493 MB / 0.5714 GB, free: 36.94 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.34e-05/0.5989, allocations: 17.19 kB / 0.5715 GB, free: 36.94 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.141e-05/0.5989, allocations: 15.86 kB / 0.5715 GB, free: 36.93 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.696e-05/0.5989, allocations: 7.969 kB / 0.5715 GB, free: 36.93 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009428/0.6084, allocations: 5.851 MB / 0.5772 GB, free: 32.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.666e-06/0.6084, allocations: 0 / 0.5772 GB, free: 32.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001174/0.6096, allocations: 303.8 kB / 0.5775 GB, free: 32.08 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007916/0.6104, allocations: 314.8 kB / 0.5778 GB, free: 31.77 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.557e-05/0.6105, allocations: 39.98 kB / 0.5778 GB, free: 31.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005096/0.6156, allocations: 6.403 MB / 0.5841 GB, free: 24.94 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.6157, allocations: 8.094 kB / 0.5841 GB, free: 24.93 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00496/0.6206, allocations: 3.611 MB / 0.5876 GB, free: 21.25 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001363/0.622, allocations: 0.5057 MB / 0.5881 GB, free: 20.73 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000302/0.6223, allocations: 37.8 kB / 0.5881 GB, free: 20.69 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001021/0.6233, allocations: 99.92 kB / 0.5882 GB, free: 20.59 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002804/0.6236, allocations: 113.1 kB / 0.5883 GB, free: 20.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.459e-05/0.6237, allocations: 43.98 kB / 0.5884 GB, free: 20.44 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002143/0.6259, allocations: 1.549 MB / 0.5899 GB, free: 18.88 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6259, allocations: 3.938 kB / 0.5899 GB, free: 18.87 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002993/0.6289, allocations: 0.6796 MB / 0.5906 GB, free: 18.19 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 (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%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004138/0.6293, allocations: 171.3 kB / 0.5907 GB, free: 18.02 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003603/0.6329, allocations: 2.311 MB / 0.593 GB, free: 15.68 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.6329, allocations: 0 / 0.593 GB, free: 15.68 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001844/0.6348, allocations: 1.455 MB / 0.5944 GB, free: 14.19 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002704/0.6375, allocations: 0.5885 MB / 0.595 GB, free: 13.61 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01186/0.6494, allocations: 8.377 MB / 0.6032 GB, free: 5.195 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002048/0.6515, allocations: 2.664 MB / 0.6058 GB, free: 2.512 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.002268/0.6538, allocations: 0.5552 MB / 0.6063 GB, free: 1.953 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004582/0.6542, allocations: 167.4 kB / 0.6065 GB, free: 1.789 MB / 366.1 MB Notification: Performance of SimCode: time 1.553e-06/0.6542, allocations: 0 / 0.6065 GB, free: 1.789 MB / 366.1 MB Notification: Performance of Templates: time 0.05713/0.7114, allocations: 30.3 MB / 0.6361 GB, free: 3.785 MB / 398.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: