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.01148/0.01148, allocations: 100.8 kB / 15.87 MB, free: 5.867 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.421/2.421, allocations: 222.9 MB / 239.5 MB, free: 4.793 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.002691/0.002691, allocations: 196.5 kB / 289.8 MB, free: 2.523 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.05137/0.05137, allocations: 8.779 MB / 348.7 MB, free: 4.91 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002295/0.002294, allocations: 79.42 kB / 411.1 MB, free: 42.43 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1477/0.15, allocations: 51.57 MB / 462.6 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_DOL): time 0.02742/0.1775, allocations: 16.5 MB / 479.1 MB, free: 14.34 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01641/0.194, allocations: 5.407 MB / 484.5 MB, free: 8.914 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005554/0.1996, allocations: 91.69 kB / 484.6 MB, free: 8.824 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006661/0.2063, allocations: 1.112 MB / 485.7 MB, free: 7.711 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.01011/0.2165, allocations: 1.461 MB / 487.2 MB, free: 6.242 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005115/0.2217, allocations: 0.9609 MB / 488.2 MB, free: 5.285 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01258/0.2343, allocations: 5.289 MB / 493.4 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01095/0.2453, allocations: 3.657 MB / 497.1 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005345/0.2507, allocations: 1.848 MB / 499 MB, free: 10.38 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007074/0.2578, allocations: 2.447 MB / 0.4896 GB, free: 7.918 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002626/0.2605, allocations: 372 kB / 0.49 GB, free: 7.555 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004459/0.265, allocations: 0.5896 MB / 0.4906 GB, free: 6.965 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003205/0.2682, allocations: 1.16 MB / 0.4917 GB, free: 5.801 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008294/0.2765, allocations: 2.371 MB / 0.494 GB, free: 3.418 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01348/0.2901, allocations: 6.793 MB / 0.5007 GB, free: 12.61 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.376e-06/0.2901, allocations: 4 kB / 0.5007 GB, free: 12.61 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.395e-06/0.2901, allocations: 0 / 0.5007 GB, free: 12.61 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003643/0.2905, allocations: 0 / 0.5007 GB, free: 12.61 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.03021/0.3208, allocations: 5.374 MB / 0.5059 GB, free: 7.152 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.221e-05/0.3209, allocations: 12.03 kB / 0.5059 GB, free: 7.141 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01168/0.3326, allocations: 0.9947 MB / 0.5069 GB, free: 6.141 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01433/0.3469, allocations: 2.851 MB / 0.5097 GB, free: 3.234 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008042/0.3478, allocations: 308.6 kB / 0.51 GB, free: 2.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003355/0.3512, allocations: 399.9 kB / 0.5104 GB, free: 2.539 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02678/0.378, allocations: 5.221 MB / 0.5155 GB, free: 13.23 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002851/0.3784, allocations: 11.83 kB / 0.5155 GB, free: 13.22 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001983/0.3804, allocations: 168 kB / 0.5156 GB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000328/0.3807, allocations: 168 kB / 0.5158 GB, free: 12.89 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01893/0.3997, allocations: 4.47 MB / 0.5202 GB, free: 8.398 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4473/0.8471, allocations: 16.84 MB / 0.5366 GB, free: 56.07 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01422/0.8614, allocations: 8.442 MB / 0.5448 GB, free: 49.72 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006255/0.8677, allocations: 1.714 MB / 0.5465 GB, free: 49.7 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01717/0.8849, allocations: 5.025 MB / 0.5514 GB, free: 48.45 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.072e-05/0.885, allocations: 49.88 kB / 0.5515 GB, free: 48.39 MB / 366.1 MB Notification: Performance of pre-optimization done (n=158): time 6.863e-06/0.885, allocations: 2.812 kB / 0.5515 GB, free: 48.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=161): time 0.02625/0.9113, allocations: 6.182 MB / 0.5575 GB, free: 45.09 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.699e-05/0.9114, allocations: 68.5 kB / 0.5576 GB, free: 45.03 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008361/0.9198, allocations: 2.313 MB / 0.5598 GB, free: 43.77 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004424/0.9203, allocations: 53.58 kB / 0.5599 GB, free: 43.72 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002258/0.9225, allocations: 1.853 MB / 0.5617 GB, free: 42.1 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001089/0.9237, allocations: 0.5529 MB / 0.5622 GB, free: 41.62 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001671/0.9254, allocations: 392.5 kB / 0.5626 GB, free: 41.39 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.081e-05/0.9255, allocations: 309.1 kB / 0.5629 GB, free: 41.09 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002806/0.9283, allocations: 0.8507 MB / 0.5637 GB, free: 40.65 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00338/0.9317, allocations: 1.563 MB / 0.5653 GB, free: 39.27 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005921/0.9377, allocations: 2.566 MB / 0.5678 GB, free: 37.41 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.5e-05/0.9377, allocations: 12.88 kB / 0.5678 GB, free: 37.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=276) (initialization): time 0.01002/0.9478, allocations: 2.902 MB / 0.5706 GB, free: 35.85 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.465e-05/0.9479, allocations: 13.75 kB / 0.5706 GB, free: 35.85 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.005e-05/0.948, allocations: 24.31 kB / 0.5706 GB, free: 35.85 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000637/0.9487, allocations: 118.5 kB / 0.5708 GB, free: 35.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003661/0.9524, allocations: 0.5421 MB / 0.5713 GB, free: 35.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002481/0.9549, allocations: 1.831 MB / 0.5731 GB, free: 33.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004161/0.9591, allocations: 111.8 kB / 0.5732 GB, free: 33.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005578/0.9597, allocations: 102.8 kB / 0.5733 GB, free: 33.87 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.005024/0.9647, allocations: 1.202 MB / 0.5745 GB, free: 33.06 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001418/0.9661, allocations: 246.2 kB / 0.5747 GB, free: 32.94 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00825/0.9744, allocations: 2.471 MB / 0.5771 GB, free: 30.79 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.173e-05/0.9745, allocations: 16 kB / 0.5771 GB, free: 30.78 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.642e-05/0.9745, allocations: 4 kB / 0.5771 GB, free: 30.77 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.11e-05/0.9746, allocations: 7.969 kB / 0.5771 GB, free: 30.77 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02116/0.9957, allocations: 5.826 MB / 0.5828 GB, free: 24.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.745e-05/0.9958, allocations: 3.984 kB / 0.5828 GB, free: 24.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002234/0.9981, allocations: 293.9 kB / 0.5831 GB, free: 24.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001512/0.9996, allocations: 311.8 kB / 0.5834 GB, free: 24.24 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002633/0.9999, allocations: 39.98 kB / 0.5834 GB, free: 24.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009033/1.009, allocations: 6.411 MB / 0.5897 GB, free: 17.41 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.026e-06/1.009, allocations: 3.938 kB / 0.5897 GB, free: 17.41 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01016/1.019, allocations: 3.583 MB / 0.5932 GB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002349/1.022, allocations: 0.5006 MB / 0.5937 GB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001228/1.023, allocations: 32 kB / 0.5937 GB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002645/1.026, allocations: 87.86 kB / 0.5938 GB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005444/1.026, allocations: 121.1 kB / 0.5939 GB, free: 12.99 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002066/1.026, allocations: 47.98 kB / 0.594 GB, free: 12.95 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.005128/1.031, allocations: 1.568 MB / 0.5955 GB, free: 11.36 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.31e-07/1.032, allocations: 0 / 0.5955 GB, free: 11.36 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.007035/1.039, allocations: 0.6786 MB / 0.5962 GB, free: 10.69 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.0009836/1.04, allocations: 170.1 kB / 0.5963 GB, free: 10.52 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.006188/1.046, allocations: 2.284 MB / 0.5986 GB, free: 8.203 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.828e-06/1.046, allocations: 3.391 kB / 0.5986 GB, free: 8.203 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003584/1.05, allocations: 1.451 MB / 0.6 GB, free: 6.715 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006127/1.056, allocations: 0.5815 MB / 0.6005 GB, free: 6.141 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02307/1.079, allocations: 8.608 MB / 0.6089 GB, free: 13.5 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005639/1.084, allocations: 2.595 MB / 0.6115 GB, free: 10.88 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001499/1.086, allocations: 183.4 kB / 0.6117 GB, free: 10.7 MB / 382.1 MB Notification: Performance of SimCode: time 1.182e-06/1.086, allocations: 0 / 0.6117 GB, free: 10.7 MB / 382.1 MB Notification: Performance of Templates: time 0.5165/1.603, allocations: 95.38 MB / 0.7048 GB, free: 147.4 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)