Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.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_Synchronization1,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5998,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1") translateModel(HanserModelica.SynchronousMachines.SMEE_Synchronization1,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5998,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009041/0.0009042, allocations: 99.27 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.293/1.293, allocations: 223.3 MB / 240 MB, free: 5.531 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.0009579/0.0009579, allocations: 176.5 kB / 291.3 MB, free: 2.207 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03502/0.03502, allocations: 8.797 MB / 351.2 MB, free: 4.633 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003412/0.0003413, allocations: 10.59 kB / 414.5 MB, free: 42.77 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06403/0.06438, allocations: 52.55 MB / 467 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization1): time 0.01386/0.07827, allocations: 14.9 MB / 481.9 MB, free: 14.21 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007931/0.08621, allocations: 5.154 MB / 487.1 MB, free: 9.043 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001735/0.08796, allocations: 87.69 kB / 487.2 MB, free: 8.957 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002238/0.09021, allocations: 1.069 MB / 488.2 MB, free: 7.883 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/SynchronousMachines/SMEE_Synchronization1.mo:18:3-19:30:writable] Warning: Conditional component ‘ir‘ is used in a non-connect context. Notification: Performance of NFTyping.typeBindings: time 0.002932/0.09316, allocations: 1.403 MB / 489.6 MB, free: 6.473 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001672/0.09484, allocations: 0.8807 MB / 490.5 MB, free: 5.598 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00423/0.09908, allocations: 4.989 MB / 495.5 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003116/0.1022, allocations: 2.914 MB / 498.4 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001339/0.1036, allocations: 1.486 MB / 499.9 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001942/0.1055, allocations: 1.972 MB / 0.4901 GB, free: 10.13 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003376/0.1059, allocations: 244 kB / 0.4903 GB, free: 9.891 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008389/0.1067, allocations: 451.7 kB / 0.4908 GB, free: 9.449 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006886/0.1074, allocations: 0.8987 MB / 0.4917 GB, free: 8.547 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00159/0.109, allocations: 2.026 MB / 0.4936 GB, free: 6.504 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004407/0.1134, allocations: 6.112 MB / 0.4996 GB, free: 384 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.1134, allocations: 0 / 0.4996 GB, free: 384 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1135, allocations: 3.938 kB / 0.4996 GB, free: 380 kB / 334.1 MB Notification: Performance of Transformations before backend: time 4.058e-05/0.1135, allocations: 0 / 0.4996 GB, free: 380 kB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 965 * Number of variables: 965 Notification: Performance of Generate backend data structure: time 0.009016/0.1225, allocations: 4.22 MB / 0.5037 GB, free: 12.08 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.216e-05/0.1226, allocations: 8.031 kB / 0.5037 GB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005071/0.1276, allocations: 0.964 MB / 0.5047 GB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004151/0.1318, allocations: 2.649 MB / 0.5073 GB, free: 8.402 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001851/0.132, allocations: 279.8 kB / 0.5075 GB, free: 8.129 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005247/0.1325, allocations: 372 kB / 0.5079 GB, free: 7.766 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007392/0.1399, allocations: 4.776 MB / 0.5126 GB, free: 2.945 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.878e-05/0.14, allocations: 4 kB / 0.5126 GB, free: 2.941 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003457/0.1404, allocations: 152 kB / 0.5127 GB, free: 2.793 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001363/0.1405, allocations: 155.3 kB / 0.5128 GB, free: 2.641 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006486/0.147, allocations: 4.062 MB / 0.5168 GB, free: 14.57 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1662/0.3132, allocations: 15.92 MB / 0.5324 GB, free: 59.24 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004859/0.3181, allocations: 6.956 MB / 0.5391 GB, free: 54.12 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002353/0.3205, allocations: 1.525 MB / 0.5406 GB, free: 54.1 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006068/0.3266, allocations: 4.245 MB / 0.5448 GB, free: 53.29 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.396e-05/0.3266, allocations: 50.06 kB / 0.5448 GB, free: 53.25 MB / 366.1 MB Notification: Performance of pre-optimization done (n=137): time 3.055e-06/0.3266, allocations: 0 / 0.5448 GB, free: 53.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=159): time 0.0115/0.3381, allocations: 6.515 MB / 0.5512 GB, free: 51.76 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.711e-05/0.3382, allocations: 67.44 kB / 0.5513 GB, free: 51.7 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002764/0.3409, allocations: 2.234 MB / 0.5534 GB, free: 51.45 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.092e-05/0.341, allocations: 50.58 kB / 0.5535 GB, free: 51.42 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008057/0.3419, allocations: 1.701 MB / 0.5551 GB, free: 50.15 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003364/0.3422, allocations: 0.545 MB / 0.5557 GB, free: 49.73 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002529/0.3425, allocations: 180.2 kB / 0.5559 GB, free: 49.64 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 2.967e-05/0.3425, allocations: 309.1 kB / 0.5561 GB, free: 49.35 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001179/0.3437, allocations: 0.8314 MB / 0.557 GB, free: 49.02 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001338/0.345, allocations: 1.487 MB / 0.5584 GB, free: 47.87 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002567/0.3476, allocations: 2.467 MB / 0.5608 GB, free: 46.17 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.516e-06/0.3476, allocations: 7.938 kB / 0.5608 GB, free: 46.17 MB / 366.1 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.004071/0.3517, allocations: 2.971 MB / 0.5637 GB, free: 44.82 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.189e-05/0.3517, allocations: 18.69 kB / 0.5637 GB, free: 44.81 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.811e-05/0.3518, allocations: 18.62 kB / 0.5638 GB, free: 44.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007786/0.3525, allocations: 299.9 kB / 0.5641 GB, free: 44.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001661/0.3542, allocations: 488.4 kB / 0.5645 GB, free: 44.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00355/0.3578, allocations: 4.519 MB / 0.5689 GB, free: 40.56 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001326/0.3591, allocations: 95.17 kB / 0.569 GB, free: 40.51 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001185/0.3593, allocations: 90 kB / 0.5691 GB, free: 40.5 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 93 * 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 (250): * Single equations (assignments): 247 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * 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): 2 systems {(2,13,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001267/0.3605, allocations: 1.122 MB / 0.5702 GB, free: 39.74 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000259/0.3608, allocations: 235.5 kB / 0.5704 GB, free: 39.62 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003491/0.3643, allocations: 2.439 MB / 0.5728 GB, free: 38.1 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.018e-05/0.3643, allocations: 20.38 kB / 0.5728 GB, free: 38.09 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.3643, allocations: 3.156 kB / 0.5728 GB, free: 38.09 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.297e-05/0.3643, allocations: 7.969 kB / 0.5728 GB, free: 38.09 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006751/0.3711, allocations: 5.794 MB / 0.5785 GB, free: 33.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/0.3711, allocations: 4 kB / 0.5785 GB, free: 33.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001164/0.3723, allocations: 283.8 kB / 0.5788 GB, free: 32.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007781/0.3731, allocations: 322.2 kB / 0.5791 GB, free: 32.56 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.422e-05/0.3732, allocations: 35.98 kB / 0.5791 GB, free: 32.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00474/0.3779, allocations: 6.45 MB / 0.5854 GB, free: 25.71 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.3779, allocations: 4.031 kB / 0.5854 GB, free: 25.7 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004262/0.3822, allocations: 3.553 MB / 0.5889 GB, free: 22.06 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006085/0.3828, allocations: 0.4943 MB / 0.5894 GB, free: 21.55 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002725/0.3831, allocations: 28 kB / 0.5894 GB, free: 21.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001084/0.3842, allocations: 75.95 kB / 0.5895 GB, free: 21.45 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001988/0.3844, allocations: 113.1 kB / 0.5896 GB, free: 21.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.504e-05/0.3845, allocations: 54.61 kB / 0.5896 GB, free: 21.29 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001635/0.3861, allocations: 1.514 MB / 0.5911 GB, free: 19.76 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3862, allocations: 0 / 0.5911 GB, free: 19.76 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001657/0.3878, allocations: 0.6586 MB / 0.5917 GB, free: 19.1 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.stator.stray.Phi.re,smee.stator.stray.Phi.im,constantTorque.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 {(2,12,100.0%), (1,5,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002409/0.3881, allocations: 157.6 kB / 0.5919 GB, free: 18.94 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002902/0.391, allocations: 2.45 MB / 0.5943 GB, free: 16.46 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.391, allocations: 9 kB / 0.5943 GB, free: 16.45 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001649/0.3926, allocations: 1.42 MB / 0.5957 GB, free: 14.99 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002593/0.3953, allocations: 0.546 MB / 0.5962 GB, free: 14.45 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008301/0.4036, allocations: 8.174 MB / 0.6042 GB, free: 6.238 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001553/0.4051, allocations: 2.454 MB / 0.6066 GB, free: 3.754 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005163/0.4057, allocations: 171.4 kB / 0.6068 GB, free: 3.586 MB / 366.1 MB Notification: Performance of SimCode: time 3.11e-07/0.4057, allocations: 0 / 0.6068 GB, free: 3.586 MB / 366.1 MB Notification: Performance of Templates: time 0.09407/0.4997, allocations: 99.25 MB / 0.7037 GB, free: 384 kB / 462.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe 2>&1)