Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.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_Synchronization2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5998,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2") translateModel(HanserModelica.SynchronousMachines.SMEE_Synchronization2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5998,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008462/0.0008462, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.389/1.389, allocations: 223.3 MB / 239.4 MB, free: 5.344 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.0009588/0.000959, allocations: 180.5 kB / 290.6 MB, free: 2.016 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03347/0.03347, allocations: 8.803 MB / 350.5 MB, free: 4.562 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003429/0.0003429, allocations: 11.73 kB / 413.8 MB, free: 42.77 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09424/0.0946, allocations: 52.56 MB / 466.4 MB, free: 13.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization2): time 0.01469/0.1093, allocations: 14.91 MB / 481.3 MB, free: 14.12 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01098/0.1204, allocations: 5.158 MB / 486.4 MB, free: 8.949 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003148/0.1236, allocations: 87.69 kB / 486.5 MB, free: 8.863 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004224/0.1278, allocations: 1.061 MB / 487.6 MB, free: 7.797 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.005783/0.1336, allocations: 1.402 MB / 489 MB, free: 6.391 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002623/0.1363, allocations: 0.8819 MB / 489.9 MB, free: 5.512 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007177/0.1435, allocations: 4.989 MB / 494.9 MB, free: 0.5 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003713/0.1472, allocations: 2.906 MB / 497.8 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002386/0.1496, allocations: 1.497 MB / 499.3 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002845/0.1525, allocations: 1.968 MB / 0.4895 GB, free: 10.04 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005466/0.153, allocations: 240 kB / 0.4897 GB, free: 9.809 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001396/0.1544, allocations: 455.8 kB / 0.4901 GB, free: 9.363 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007383/0.1552, allocations: 0.8909 MB / 0.491 GB, free: 8.469 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002061/0.1572, allocations: 2.03 MB / 0.493 GB, free: 6.422 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006678/0.1639, allocations: 7.011 MB / 0.4998 GB, free: 15.39 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.164, allocations: 0 / 0.4998 GB, free: 15.39 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.164, allocations: 0 / 0.4998 GB, free: 15.39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002039/0.1642, allocations: 0 / 0.4998 GB, free: 15.39 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: 965 * Number of variables: 965 Notification: Performance of Generate backend data structure: time 0.01135/0.1755, allocations: 4.214 MB / 0.504 GB, free: 11.1 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.1756, allocations: 8.031 kB / 0.504 GB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005566/0.1812, allocations: 0.9601 MB / 0.5049 GB, free: 10.13 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005797/0.187, allocations: 2.661 MB / 0.5075 GB, free: 7.414 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002363/0.1873, allocations: 275.8 kB / 0.5078 GB, free: 7.145 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008558/0.1881, allocations: 380 kB / 0.5081 GB, free: 6.773 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008794/0.1969, allocations: 4.776 MB / 0.5128 GB, free: 1.953 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.377e-05/0.197, allocations: 4 kB / 0.5128 GB, free: 1.949 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003431/0.1974, allocations: 152 kB / 0.5129 GB, free: 1.801 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001389/0.1975, allocations: 155.3 kB / 0.5131 GB, free: 1.648 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007474/0.205, allocations: 4.062 MB / 0.5171 GB, free: 13.58 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2342/0.4393, allocations: 15.9 MB / 0.5326 GB, free: 56.57 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005774/0.4451, allocations: 6.956 MB / 0.5394 GB, free: 51.45 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002892/0.448, allocations: 1.532 MB / 0.5409 GB, free: 51.43 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008396/0.4565, allocations: 4.253 MB / 0.545 GB, free: 50.62 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.501e-05/0.4566, allocations: 49.38 kB / 0.5451 GB, free: 50.58 MB / 366.1 MB Notification: Performance of pre-optimization done (n=137): time 4.949e-06/0.4566, allocations: 0 / 0.5451 GB, free: 50.58 MB / 366.1 MB Notification: Performance of matching and sorting (n=159): time 0.01471/0.4714, allocations: 6.51 MB / 0.5514 GB, free: 49.07 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.431e-05/0.4714, allocations: 68.55 kB / 0.5515 GB, free: 49.01 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00389/0.4753, allocations: 2.232 MB / 0.5537 GB, free: 48.76 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000171/0.4755, allocations: 51.39 kB / 0.5537 GB, free: 48.73 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001223/0.4768, allocations: 1.704 MB / 0.5554 GB, free: 47.45 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005021/0.4773, allocations: 0.543 MB / 0.5559 GB, free: 47.03 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002422/0.4775, allocations: 178.4 kB / 0.5561 GB, free: 46.94 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.613e-05/0.4776, allocations: 309 kB / 0.5564 GB, free: 46.64 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001166/0.4788, allocations: 0.836 MB / 0.5572 GB, free: 46.31 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001346/0.4801, allocations: 1.487 MB / 0.5587 GB, free: 45.15 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002803/0.4829, allocations: 2.465 MB / 0.5611 GB, free: 43.46 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.658e-06/0.4829, allocations: 3.906 kB / 0.5611 GB, free: 43.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.004627/0.4876, allocations: 2.977 MB / 0.564 GB, free: 42.02 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.049e-05/0.4876, allocations: 15.12 kB / 0.564 GB, free: 42.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.802e-05/0.4877, allocations: 18.78 kB / 0.564 GB, free: 42.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007957/0.4885, allocations: 302.8 kB / 0.5643 GB, free: 41.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001528/0.49, allocations: 486.2 kB / 0.5648 GB, free: 41.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003732/0.4937, allocations: 4.523 MB / 0.5692 GB, free: 37.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002063/0.4958, allocations: 90.34 kB / 0.5693 GB, free: 37.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001579/0.496, allocations: 93.7 kB / 0.5694 GB, free: 37.71 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.002359/0.4984, allocations: 1.117 MB / 0.5704 GB, free: 36.95 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005651/0.4989, allocations: 238.7 kB / 0.5707 GB, free: 36.83 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003758/0.5027, allocations: 2.435 MB / 0.5731 GB, free: 35.31 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.454e-05/0.5027, allocations: 19.88 kB / 0.5731 GB, free: 35.31 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.119e-05/0.5028, allocations: 7.125 kB / 0.5731 GB, free: 35.3 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.625e-05/0.5028, allocations: 7.969 kB / 0.5731 GB, free: 35.3 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008465/0.5113, allocations: 5.798 MB / 0.5787 GB, free: 31.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.107e-05/0.5113, allocations: 4 kB / 0.5788 GB, free: 31.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001137/0.5125, allocations: 283.8 kB / 0.579 GB, free: 30.99 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008332/0.5133, allocations: 322 kB / 0.5793 GB, free: 30.67 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001128/0.5134, allocations: 43.38 kB / 0.5794 GB, free: 30.63 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004931/0.5184, allocations: 6.441 MB / 0.5857 GB, free: 23.81 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.5184, allocations: 4.031 kB / 0.5857 GB, free: 23.81 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004874/0.5233, allocations: 3.553 MB / 0.5891 GB, free: 20.17 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001234/0.5245, allocations: 0.4904 MB / 0.5896 GB, free: 19.66 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002855/0.5248, allocations: 31.98 kB / 0.5896 GB, free: 19.63 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001079/0.5259, allocations: 79.95 kB / 0.5897 GB, free: 19.55 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000352/0.5263, allocations: 111.3 kB / 0.5898 GB, free: 19.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.557e-05/0.5264, allocations: 50.55 kB / 0.5899 GB, free: 19.4 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00229/0.5287, allocations: 1.515 MB / 0.5914 GB, free: 17.87 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5287, allocations: 0 / 0.5914 GB, free: 17.87 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002636/0.5313, allocations: 0.6562 MB / 0.592 GB, free: 17.21 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.000294/0.5316, allocations: 171.6 kB / 0.5922 GB, free: 17.04 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003514/0.5352, allocations: 2.445 MB / 0.5945 GB, free: 14.56 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/0.5352, allocations: 4 kB / 0.5946 GB, free: 14.55 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001726/0.5369, allocations: 1.42 MB / 0.5959 GB, free: 13.1 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002907/0.5398, allocations: 0.5436 MB / 0.5965 GB, free: 12.56 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01027/0.5501, allocations: 8.197 MB / 0.6045 GB, free: 4.324 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001689/0.5519, allocations: 2.514 MB / 0.6069 GB, free: 1.781 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001842/0.5537, allocations: 0.5116 MB / 0.6074 GB, free: 1.266 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004009/0.5541, allocations: 159.4 kB / 0.6076 GB, free: 1.109 MB / 366.1 MB Notification: Performance of SimCode: time 6.61e-07/0.5541, allocations: 4 kB / 0.6076 GB, free: 1.105 MB / 366.1 MB Notification: Performance of Templates: time 0.05426/0.6084, allocations: 30.87 MB / 0.6377 GB, free: 2.52 MB / 398.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.makefile Environment - environmentSimulation: (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe 2>&1) Environment - environmentSimulation: