Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.conf.json 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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 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) Running command: translateModel(HanserModelica.SynchronousMachines.SMEE_Synchronization3,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5998,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3") translateModel(HanserModelica.SynchronousMachines.SMEE_Synchronization3,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5998,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001067/0.001067, allocations: 182.2 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03707/0.03707, allocations: 8.794 MB / 25.53 MB, free: 3.754 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.279/1.279, allocations: 222.9 MB / 251.3 MB, free: 7.371 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001018/0.001018, allocations: 105.1 kB / 303.6 MB, free: 14.51 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001177, allocations: 67.89 kB / 366 MB, free: 184 kB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1781/0.1793, allocations: 51.55 MB / 417.5 MB, free: 20.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization3): time 0.01123/0.1906, allocations: 15.62 MB / 433.2 MB, free: 5.234 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007145/0.1978, allocations: 5.216 MB / 438.4 MB, free: 0 / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002305/0.2001, allocations: 83.8 kB / 438.5 MB, free: 15.91 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003092/0.2032, allocations: 1.073 MB / 439.5 MB, free: 14.84 MB / 314.7 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.004403/0.2077, allocations: 1.411 MB / 440.9 MB, free: 13.42 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00237/0.2101, allocations: 0.9044 MB / 441.8 MB, free: 12.52 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.005941/0.216, allocations: 5.054 MB / 446.9 MB, free: 7.453 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003757/0.2198, allocations: 2.929 MB / 449.8 MB, free: 4.453 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002235/0.2221, allocations: 1.716 MB / 451.5 MB, free: 2.73 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002649/0.2247, allocations: 2.249 MB / 453.8 MB, free: 484 kB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006061/0.2254, allocations: 340 kB / 454.1 MB, free: 144 kB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001277/0.2266, allocations: 0.5466 MB / 454.7 MB, free: 15.59 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007847/0.2274, allocations: 1.043 MB / 455.7 MB, free: 14.55 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002162/0.2296, allocations: 2.185 MB / 457.9 MB, free: 12.35 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006163/0.2358, allocations: 7.247 MB / 465.1 MB, free: 5.078 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.2358, allocations: 4 kB / 465.2 MB, free: 5.074 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.2358, allocations: 0 / 465.2 MB, free: 5.074 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001384/0.236, allocations: 4 kB / 465.2 MB, free: 5.07 MB / 330.7 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.01188/0.2479, allocations: 4.962 MB / 470.1 MB, free: 36 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.621e-05/0.2479, allocations: 8.031 kB / 470.1 MB, free: 28 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004531/0.2524, allocations: 0.9524 MB / 471.1 MB, free: 15.07 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005226/0.2577, allocations: 2.646 MB / 473.7 MB, free: 12.37 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001799/0.2579, allocations: 275.8 kB / 474 MB, free: 12.1 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000589/0.2585, allocations: 372 kB / 474.4 MB, free: 11.73 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007258/0.2658, allocations: 4.78 MB / 479.1 MB, free: 6.91 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.24e-05/0.2658, allocations: 4 kB / 479.1 MB, free: 6.906 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002987/0.2661, allocations: 152 kB / 479.3 MB, free: 6.758 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001322/0.2663, allocations: 155.3 kB / 479.4 MB, free: 6.605 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006217/0.2725, allocations: 4.058 MB / 483.5 MB, free: 2.543 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02244/0.295, allocations: 15.81 MB / 499.3 MB, free: 2.234 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.163/0.458, allocations: 6.938 MB / 0.4944 GB, free: 61.91 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002673/0.4607, allocations: 1.524 MB / 0.4959 GB, free: 61.75 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006161/0.4669, allocations: 4.238 MB / 0.5 GB, free: 59.52 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.11e-05/0.4669, allocations: 50.97 kB / 0.5001 GB, free: 59.46 MB / 362.7 MB Notification: Performance of pre-optimization done (n=137): time 2.685e-06/0.4669, allocations: 0 / 0.5001 GB, free: 59.46 MB / 362.7 MB Notification: Performance of matching and sorting (n=159): time 0.01011/0.477, allocations: 6.455 MB / 0.5064 GB, free: 56.37 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.001e-05/0.4771, allocations: 72.34 kB / 0.5064 GB, free: 56.31 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002765/0.4799, allocations: 2.233 MB / 0.5086 GB, free: 55.43 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.153e-05/0.4799, allocations: 53.61 kB / 0.5087 GB, free: 55.38 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006528/0.4806, allocations: 1.709 MB / 0.5103 GB, free: 54.07 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002441/0.4809, allocations: 0.5376 MB / 0.5109 GB, free: 53.65 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004637/0.4813, allocations: 389.3 kB / 0.5112 GB, free: 53.46 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 3.223e-05/0.4814, allocations: 305.6 kB / 0.5115 GB, free: 53.16 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001086/0.4825, allocations: 0.8244 MB / 0.5123 GB, free: 52.84 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001317/0.4838, allocations: 1.481 MB / 0.5138 GB, free: 51.69 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00227/0.4861, allocations: 2.451 MB / 0.5162 GB, free: 50.01 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.466e-06/0.4861, allocations: 7.438 kB / 0.5162 GB, free: 50.01 MB / 362.7 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.003597/0.4897, allocations: 2.957 MB / 0.5191 GB, free: 48.4 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.399e-05/0.4897, allocations: 18.75 kB / 0.5191 GB, free: 48.4 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.852e-05/0.4897, allocations: 22.69 kB / 0.5191 GB, free: 48.39 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007027/0.4905, allocations: 298.1 kB / 0.5194 GB, free: 48.24 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001481/0.4919, allocations: 483.1 kB / 0.5198 GB, free: 47.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003292/0.4953, allocations: 4.503 MB / 0.5242 GB, free: 43.14 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001367/0.4966, allocations: 83.88 kB / 0.5243 GB, free: 43.06 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001238/0.4968, allocations: 104.2 kB / 0.5244 GB, free: 42.96 MB / 362.7 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.001536/0.4983, allocations: 1.124 MB / 0.5255 GB, free: 41.83 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003659/0.4987, allocations: 233.2 kB / 0.5257 GB, free: 41.6 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003254/0.5019, allocations: 2.416 MB / 0.5281 GB, free: 39.12 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.606e-06/0.502, allocations: 23.78 kB / 0.5281 GB, free: 39.1 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/0.502, allocations: 4 kB / 0.5281 GB, free: 39.1 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.12e-05/0.502, allocations: 15.97 kB / 0.5281 GB, free: 39.08 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007544/0.5096, allocations: 5.779 MB / 0.5338 GB, free: 33.21 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.613e-06/0.5096, allocations: 8.188 kB / 0.5338 GB, free: 33.2 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001099/0.5107, allocations: 275.6 kB / 0.5341 GB, free: 32.93 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007601/0.5115, allocations: 326.2 kB / 0.5344 GB, free: 32.61 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001001/0.5116, allocations: 35.98 kB / 0.5344 GB, free: 32.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004412/0.516, allocations: 6.436 MB / 0.5407 GB, free: 25.75 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.516, allocations: 0 / 0.5407 GB, free: 25.75 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02609/0.5421, allocations: 23.16 MB / 0.5633 GB, free: 1.871 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008439/0.543, allocations: 0.4903 MB / 0.5638 GB, free: 1.359 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002791/0.5433, allocations: 36 kB / 0.5638 GB, free: 1.324 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001055/0.5443, allocations: 71.95 kB / 0.5639 GB, free: 1.254 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002456/0.5446, allocations: 117.1 kB / 0.564 GB, free: 1.137 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.784e-05/0.5447, allocations: 48.08 kB / 0.564 GB, free: 1.094 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001777/0.5465, allocations: 1.511 MB / 0.5655 GB, free: 15.57 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5465, allocations: 0 / 0.5655 GB, free: 15.57 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002567/0.5491, allocations: 0.9023 MB / 0.5664 GB, free: 14.66 MB / 378.7 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.0002927/0.5494, allocations: 165.6 kB / 0.5666 GB, free: 14.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003548/0.5529, allocations: 2.442 MB / 0.5689 GB, free: 12.02 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.5529, allocations: 0 / 0.5689 GB, free: 12.02 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001921/0.5549, allocations: 1.416 MB / 0.5703 GB, free: 10.56 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002281/0.5572, allocations: 0.542 MB / 0.5709 GB, free: 10.02 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01242/0.5696, allocations: 9.566 MB / 0.5802 GB, free: 380 kB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002352/0.572, allocations: 2.566 MB / 0.5827 GB, free: 13.78 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001761/0.5737, allocations: 0.5311 MB / 0.5832 GB, free: 13.24 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000489/0.5742, allocations: 155.4 kB / 0.5834 GB, free: 13.09 MB / 394.7 MB Notification: Performance of SimCode: time 4.11e-07/0.5742, allocations: 0 / 0.5834 GB, free: 13.09 MB / 394.7 MB Notification: Performance of Templates: time 0.05712/0.6314, allocations: 36.79 MB / 0.6193 GB, free: 8.645 MB / 426.7 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe 2>&1)