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.00125/0.00125, allocations: 103.4 kB / 16.41 MB, free: 6.5 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.495/1.495, allocations: 222.9 MB / 240.1 MB, free: 4.555 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.001671/0.001671, allocations: 195.7 kB / 290.4 MB, free: 2.266 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03334/0.03334, allocations: 8.798 MB / 349.3 MB, free: 4.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001553/0.001553, allocations: 75.88 kB / 464.6 MB, free: 13.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1177, allocations: 51.56 MB / 0.5041 GB, free: 9.488 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_DOL): time 0.01983/0.1376, allocations: 16.71 MB / 0.5204 GB, free: 8.695 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01287/0.1505, allocations: 5.453 MB / 0.5257 GB, free: 3.227 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004965/0.1555, allocations: 103.6 kB / 0.5258 GB, free: 3.125 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004545/0.1602, allocations: 1.266 MB / 0.5271 GB, free: 1.848 MB / 366.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.006737/0.1669, allocations: 1.615 MB / 0.5286 GB, free: 228 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.285/0.4519, allocations: 1.031 MB / 0.5296 GB, free: 6.059 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.008084/0.46, allocations: 5.008 MB / 0.5345 GB, free: 6.055 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006297/0.4664, allocations: 4.31 MB / 0.5387 GB, free: 5.211 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005049/0.4715, allocations: 2.282 MB / 0.541 GB, free: 4.891 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006598/0.4781, allocations: 2.652 MB / 0.5436 GB, free: 4.43 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003275/0.4814, allocations: 0.6191 MB / 0.5442 GB, free: 4.43 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00487/0.4863, allocations: 0.8458 MB / 0.545 GB, free: 4.43 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003253/0.4896, allocations: 1.431 MB / 0.5464 GB, free: 4.266 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008687/0.4983, allocations: 2.654 MB / 0.549 GB, free: 3.602 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01452/0.5129, allocations: 8.126 MB / 0.5569 GB, free: 0.8047 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.008e-05/0.5129, allocations: 0 / 0.5569 GB, free: 0.8047 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.5129, allocations: 1.5 kB / 0.5569 GB, free: 0.8047 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003356/0.5133, allocations: 0 / 0.5569 GB, free: 0.8047 MB / 366.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.02026/0.5335, allocations: 5.387 MB / 0.5622 GB, free: 13.23 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.195e-05/0.5336, allocations: 12.7 kB / 0.5622 GB, free: 13.23 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00675/0.5404, allocations: 0.9905 MB / 0.5632 GB, free: 12.77 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008995/0.5494, allocations: 3.032 MB / 0.5661 GB, free: 10.74 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000303/0.5498, allocations: 311.8 kB / 0.5664 GB, free: 10.59 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001455/0.5512, allocations: 392.5 kB / 0.5668 GB, free: 10.46 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01109/0.5623, allocations: 5.22 MB / 0.5719 GB, free: 6.352 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.805e-05/0.5625, allocations: 11.66 kB / 0.5719 GB, free: 6.344 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004292/0.5629, allocations: 167 kB / 0.5721 GB, free: 6.184 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001723/0.5631, allocations: 172 kB / 0.5722 GB, free: 6.012 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009429/0.5725, allocations: 4.461 MB / 0.5766 GB, free: 1.539 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03289/0.6055, allocations: 16.61 MB / 0.5928 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008476/0.614, allocations: 8.429 MB / 0.601 GB, free: 7.348 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003091/0.6171, allocations: 1.701 MB / 0.6027 GB, free: 5.648 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01026/0.6274, allocations: 4.976 MB / 0.6075 GB, free: 0.5469 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.005e-05/0.6275, allocations: 47.88 kB / 0.6076 GB, free: 0.4922 MB / 414.1 MB Notification: Performance of pre-optimization done (n=158): time 4.348e-06/0.6275, allocations: 4 kB / 0.6076 GB, free: 500 kB / 414.1 MB Notification: Performance of matching and sorting (n=161): time 0.01378/0.6413, allocations: 6.159 MB / 0.6136 GB, free: 10.19 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.395e-05/0.6414, allocations: 64.72 kB / 0.6137 GB, free: 10.11 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003897/0.6453, allocations: 2.29 MB / 0.6159 GB, free: 7.797 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001707/0.6455, allocations: 57.7 kB / 0.616 GB, free: 7.734 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001399/0.6469, allocations: 1.837 MB / 0.6178 GB, free: 5.883 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005422/0.6475, allocations: 0.5556 MB / 0.6183 GB, free: 5.332 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005941/0.6481, allocations: 399.6 kB / 0.6187 GB, free: 4.934 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.6482, allocations: 301.1 kB / 0.619 GB, free: 4.637 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001402/0.6496, allocations: 0.8514 MB / 0.6198 GB, free: 3.781 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001871/0.6515, allocations: 1.564 MB / 0.6213 GB, free: 1.902 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003446/0.6549, allocations: 2.562 MB / 0.6238 GB, free: 15.12 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.238e-05/0.655, allocations: 4 kB / 0.6238 GB, free: 15.11 MB / 446.1 MB Notification: Performance of matching and sorting (n=276) (initialization): time 0.005039/0.66, allocations: 2.903 MB / 0.6267 GB, free: 12.32 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.594e-05/0.6601, allocations: 20.09 kB / 0.6267 GB, free: 12.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.212e-05/0.6601, allocations: 24 kB / 0.6267 GB, free: 12.27 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003425/0.6604, allocations: 125.6 kB / 0.6268 GB, free: 12.14 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001979/0.6624, allocations: 0.5416 MB / 0.6274 GB, free: 11.64 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001864/0.6643, allocations: 2.008 MB / 0.6293 GB, free: 9.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00231/0.6666, allocations: 115.9 kB / 0.6294 GB, free: 9.387 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001811/0.6668, allocations: 96 kB / 0.6295 GB, free: 9.289 MB / 446.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.002643/0.6695, allocations: 1.192 MB / 0.6307 GB, free: 8.121 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006871/0.6702, allocations: 241 kB / 0.6309 GB, free: 7.883 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00443/0.6746, allocations: 2.462 MB / 0.6333 GB, free: 5.383 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.689e-05/0.6747, allocations: 20 kB / 0.6333 GB, free: 5.363 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.516e-06/0.6747, allocations: 4 kB / 0.6333 GB, free: 5.359 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.726e-05/0.6747, allocations: 7.969 kB / 0.6333 GB, free: 5.352 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0113/0.686, allocations: 5.796 MB / 0.639 GB, free: 15.46 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.025e-05/0.6861, allocations: 4 kB / 0.639 GB, free: 15.45 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001322/0.6874, allocations: 287.6 kB / 0.6393 GB, free: 15.17 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008394/0.6883, allocations: 302.5 kB / 0.6396 GB, free: 14.87 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001142/0.6884, allocations: 48.11 kB / 0.6396 GB, free: 14.82 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007602/0.696, allocations: 7.002 MB / 0.6465 GB, free: 7.422 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.6961, allocations: 0 / 0.6465 GB, free: 7.422 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00717/0.7032, allocations: 3.565 MB / 0.6499 GB, free: 3.773 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001702/0.705, allocations: 0.494 MB / 0.6504 GB, free: 3.258 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003818/0.7054, allocations: 36 kB / 0.6505 GB, free: 3.223 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001157/0.7065, allocations: 83.86 kB / 0.6505 GB, free: 3.141 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003475/0.7069, allocations: 125 kB / 0.6507 GB, free: 3.016 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.836e-05/0.707, allocations: 51.98 kB / 0.6507 GB, free: 2.965 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002536/0.7095, allocations: 1.549 MB / 0.6522 GB, free: 1.402 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7096, allocations: 0 / 0.6522 GB, free: 1.402 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003047/0.7126, allocations: 0.6719 MB / 0.6529 GB, free: 0.7305 MB / 462.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.0004602/0.7131, allocations: 166.6 kB / 0.653 GB, free: 0.5625 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003927/0.717, allocations: 2.287 MB / 0.6553 GB, free: 14.25 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.717, allocations: 0 / 0.6553 GB, free: 14.25 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00246/0.7195, allocations: 1.453 MB / 0.6567 GB, free: 12.75 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003923/0.7235, allocations: 0.5991 MB / 0.6573 GB, free: 12.16 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01409/0.7376, allocations: 6.856 MB / 0.664 GB, free: 5.266 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002479/0.7401, allocations: 2.595 MB / 0.6665 GB, free: 2.648 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009572/0.7411, allocations: 183.4 kB / 0.6667 GB, free: 2.469 MB / 478.1 MB Notification: Performance of SimCode: time 1.402e-06/0.7411, allocations: 0 / 0.6667 GB, free: 2.469 MB / 478.1 MB Notification: Performance of Templates: time 0.3821/1.123, allocations: 95.71 MB / 0.7601 GB, free: 171.8 MB / 0.5294 GB 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)