Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3.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_ShortCircuit3,tolerance=1e-08,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3") translateModel(HanserModelica.SynchronousMachines.SMEE_ShortCircuit3,tolerance=1e-08,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001044/0.001044, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.226/1.226, allocations: 222.9 MB / 238.8 MB, free: 4.773 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.001251/0.001252, allocations: 192.4 kB / 289.1 MB, free: 2.512 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03195/0.03195, allocations: 8.781 MB / 348.1 MB, free: 4.918 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 74.52 kB / 410.4 MB, free: 42.37 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07603/0.07727, allocations: 51.56 MB / 461.9 MB, free: 14.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit3): time 0.01417/0.09148, allocations: 15.75 MB / 477.7 MB, free: 15.11 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008645/0.1002, allocations: 5.251 MB / 482.9 MB, free: 9.844 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001511/0.1017, allocations: 87.69 kB / 483 MB, free: 9.758 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002408/0.1041, allocations: 1.069 MB / 484.1 MB, free: 8.688 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/SynchronousMachines/Templates/SMEE_ShortCircuit.mo:18:3-19:30:writable] Warning: Conditional component ‘ir‘ is used in a non-connect context. Notification: Performance of NFTyping.typeBindings: time 0.003025/0.1072, allocations: 1.368 MB / 485.5 MB, free: 7.312 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001622/0.1088, allocations: 0.9159 MB / 486.4 MB, free: 6.398 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003929/0.1128, allocations: 4.835 MB / 491.2 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00281/0.1156, allocations: 2.89 MB / 494.1 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001567/0.1172, allocations: 1.673 MB / 495.8 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001809/0.119, allocations: 2.147 MB / 497.9 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004288/0.1194, allocations: 336 kB / 498.3 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001003/0.1204, allocations: 0.5427 MB / 498.8 MB, free: 9.883 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007175/0.1212, allocations: 0.9965 MB / 499.8 MB, free: 8.883 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00172/0.1229, allocations: 2.119 MB / 0.4901 GB, free: 6.754 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005502/0.1284, allocations: 7.08 MB / 0.4971 GB, free: 15.65 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.1284, allocations: 3.938 kB / 0.4971 GB, free: 15.65 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.01e-07/0.1284, allocations: 0 / 0.4971 GB, free: 15.65 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.328e-05/0.1285, allocations: 0 / 0.4971 GB, free: 15.65 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: 962 * Number of variables: 962 Notification: Performance of Generate backend data structure: time 0.009647/0.1382, allocations: 4.814 MB / 0.5018 GB, free: 10.76 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.1382, allocations: 8.031 kB / 0.5018 GB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00462/0.1428, allocations: 0.9484 MB / 0.5027 GB, free: 9.801 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003906/0.1468, allocations: 2.558 MB / 0.5052 GB, free: 7.188 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000162/0.1469, allocations: 275.8 kB / 0.5055 GB, free: 6.918 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004455/0.1474, allocations: 372 kB / 0.5058 GB, free: 6.555 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006856/0.1543, allocations: 4.684 MB / 0.5104 GB, free: 1.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.466e-05/0.1543, allocations: 0 / 0.5104 GB, free: 1.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003094/0.1546, allocations: 159.9 kB / 0.5105 GB, free: 1.664 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001223/0.1548, allocations: 155.3 kB / 0.5107 GB, free: 1.512 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005995/0.1608, allocations: 3.901 MB / 0.5145 GB, free: 13.6 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1795/0.3403, allocations: 15.55 MB / 0.5297 GB, free: 59.72 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004152/0.3445, allocations: 6.065 MB / 0.5356 GB, free: 55.36 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001968/0.3465, allocations: 1.383 MB / 0.537 GB, free: 55.34 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005621/0.3521, allocations: 4.227 MB / 0.5411 GB, free: 54.28 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.308e-05/0.3521, allocations: 56.03 kB / 0.5411 GB, free: 54.24 MB / 366.1 MB Notification: Performance of pre-optimization done (n=133): time 2.725e-06/0.3522, allocations: 0 / 0.5411 GB, free: 54.24 MB / 366.1 MB Notification: Performance of matching and sorting (n=137): time 0.00798/0.3601, allocations: 5.17 MB / 0.5462 GB, free: 52.84 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.821e-05/0.3602, allocations: 70 kB / 0.5463 GB, free: 52.77 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002349/0.3625, allocations: 2.008 MB / 0.5482 GB, free: 52.53 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.521e-05/0.3626, allocations: 51.11 kB / 0.5483 GB, free: 52.5 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007566/0.3634, allocations: 1.666 MB / 0.5499 GB, free: 51.68 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002307/0.3636, allocations: 480.1 kB / 0.5504 GB, free: 51.38 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004359/0.3641, allocations: 365 kB / 0.5507 GB, free: 51.23 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.802e-05/0.3641, allocations: 310.3 kB / 0.551 GB, free: 50.94 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009211/0.365, allocations: 0.6653 MB / 0.5517 GB, free: 50.68 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001304/0.3663, allocations: 1.374 MB / 0.553 GB, free: 49.53 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001968/0.3683, allocations: 2.2 MB / 0.5551 GB, free: 47.95 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.016e-05/0.3683, allocations: 7.875 kB / 0.5551 GB, free: 47.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=251) (initialization): time 0.002861/0.3712, allocations: 2.486 MB / 0.5576 GB, free: 46.82 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.414e-05/0.3712, allocations: 15.72 kB / 0.5576 GB, free: 46.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.372e-05/0.3713, allocations: 23.19 kB / 0.5576 GB, free: 46.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003112/0.3716, allocations: 146 kB / 0.5578 GB, free: 46.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001366/0.373, allocations: 460.3 kB / 0.5582 GB, free: 46.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001278/0.3743, allocations: 1.946 MB / 0.5601 GB, free: 45.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00122/0.3755, allocations: 86.78 kB / 0.5602 GB, free: 45.03 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001023/0.3756, allocations: 84.88 kB / 0.5603 GB, free: 45.02 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 106 * 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 (242): * Single equations (assignments): 240 * 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,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001281/0.3769, allocations: 1.066 MB / 0.5613 GB, free: 44.41 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002179/0.3771, allocations: 213.8 kB / 0.5615 GB, free: 44.3 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002531/0.3796, allocations: 2.024 MB / 0.5635 GB, free: 43.07 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.183e-06/0.3797, allocations: 11.5 kB / 0.5635 GB, free: 43.07 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/0.3797, allocations: 7.625 kB / 0.5635 GB, free: 43.07 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.323e-05/0.3797, allocations: 17.8 kB / 0.5635 GB, free: 43.05 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005376/0.3851, allocations: 4.955 MB / 0.5684 GB, free: 39.79 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/0.3851, allocations: 3.188 kB / 0.5684 GB, free: 39.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007606/0.3859, allocations: 211 kB / 0.5686 GB, free: 39.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007226/0.3866, allocations: 328.6 kB / 0.5689 GB, free: 39.56 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.067e-05/0.3867, allocations: 38.33 kB / 0.5689 GB, free: 39.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004352/0.391, allocations: 6.507 MB / 0.5753 GB, free: 33.34 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.391, allocations: 4.031 kB / 0.5753 GB, free: 33.33 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003026/0.3941, allocations: 2.901 MB / 0.5781 GB, free: 30.35 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000538/0.3946, allocations: 438.3 kB / 0.5785 GB, free: 29.9 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002356/0.3949, allocations: 38.73 kB / 0.5786 GB, free: 29.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008376/0.3957, allocations: 55.97 kB / 0.5786 GB, free: 29.81 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001645/0.3959, allocations: 105 kB / 0.5787 GB, free: 29.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.388e-05/0.396, allocations: 39.98 kB / 0.5787 GB, free: 29.66 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001375/0.3973, allocations: 1.366 MB / 0.5801 GB, free: 28.28 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3974, allocations: 0 / 0.5801 GB, free: 28.28 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001668/0.399, allocations: 0.6031 MB / 0.5807 GB, free: 27.68 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (smee.phiMechanical,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) * 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 (106): * Single equations (assignments): 103 * 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,8,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.0002287/0.3993, allocations: 160.5 kB / 0.5808 GB, free: 27.52 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002034/0.4013, allocations: 1.89 MB / 0.5827 GB, free: 25.6 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.4013, allocations: 4 kB / 0.5827 GB, free: 25.59 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00127/0.4026, allocations: 1.222 MB / 0.5839 GB, free: 24.34 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001922/0.4045, allocations: 0.5405 MB / 0.5844 GB, free: 23.81 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007193/0.4117, allocations: 7.529 MB / 0.5917 GB, free: 16.24 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001315/0.4131, allocations: 2.398 MB / 0.5941 GB, free: 13.81 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001282/0.4144, allocations: 470.5 kB / 0.5945 GB, free: 13.35 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003163/0.4147, allocations: 143.4 kB / 0.5947 GB, free: 13.21 MB / 366.1 MB Notification: Performance of SimCode: time 4.3e-07/0.4147, allocations: 0 / 0.5947 GB, free: 13.21 MB / 366.1 MB Notification: Performance of Templates: time 0.04032/0.455, allocations: 28.2 MB / 0.6222 GB, free: 1.293 MB / 382.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3.pipe 2>&1)