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.0007722/0.0007722, allocations: 92.08 kB / 16.02 MB, free: 80 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.321/1.321, allocations: 223.3 MB / 240 MB, free: 5.508 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.0009756/0.0009756, allocations: 183.6 kB / 291.3 MB, free: 2.176 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03535/0.03535, allocations: 8.803 MB / 351.2 MB, free: 4.598 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003454/0.0003454, allocations: 11.72 kB / 414.5 MB, free: 42.72 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06635/0.06671, allocations: 52.56 MB / 467 MB, free: 13.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization2): time 0.01381/0.08056, allocations: 14.9 MB / 481.9 MB, free: 14.15 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008107/0.0887, allocations: 5.166 MB / 487.1 MB, free: 8.965 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001338/0.09007, allocations: 87.69 kB / 487.2 MB, free: 8.879 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00221/0.09229, allocations: 1.061 MB / 488.3 MB, free: 7.812 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.0031/0.0954, allocations: 1.399 MB / 489.7 MB, free: 6.406 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001728/0.09714, allocations: 0.8807 MB / 490.5 MB, free: 5.527 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00471/0.1019, allocations: 4.996 MB / 495.5 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003199/0.1051, allocations: 2.906 MB / 498.4 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001696/0.1068, allocations: 1.49 MB / 499.9 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002088/0.1089, allocations: 1.975 MB / 0.4901 GB, free: 10.05 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003629/0.1093, allocations: 236 kB / 0.4904 GB, free: 9.824 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009698/0.1102, allocations: 459.7 kB / 0.4908 GB, free: 9.375 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006968/0.1109, allocations: 0.8871 MB / 0.4917 GB, free: 8.484 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001741/0.1127, allocations: 2.026 MB / 0.4936 GB, free: 6.441 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004767/0.1175, allocations: 6.12 MB / 0.4996 GB, free: 312 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.1175, allocations: 4 kB / 0.4996 GB, free: 308 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.674e-06/0.1175, allocations: 0 / 0.4996 GB, free: 308 kB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001025/0.1176, allocations: 0 / 0.4996 GB, free: 308 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.009783/0.1274, allocations: 4.21 MB / 0.5037 GB, free: 12.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.746e-05/0.1274, allocations: 8.031 kB / 0.5037 GB, free: 12.01 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005217/0.1327, allocations: 0.9639 MB / 0.5047 GB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004615/0.1373, allocations: 2.657 MB / 0.5073 GB, free: 8.332 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001912/0.1375, allocations: 275.8 kB / 0.5075 GB, free: 8.062 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005461/0.1381, allocations: 368 kB / 0.5079 GB, free: 7.703 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007794/0.1459, allocations: 4.784 MB / 0.5126 GB, free: 2.875 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.614e-05/0.146, allocations: 7.938 kB / 0.5126 GB, free: 2.867 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003457/0.1463, allocations: 148 kB / 0.5127 GB, free: 2.723 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001417/0.1465, allocations: 155.3 kB / 0.5129 GB, free: 2.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006809/0.1533, allocations: 4.069 MB / 0.5168 GB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1748/0.3281, allocations: 15.9 MB / 0.5324 GB, free: 58.45 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005005/0.3331, allocations: 6.956 MB / 0.5392 GB, free: 53.34 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002397/0.3355, allocations: 1.533 MB / 0.5407 GB, free: 53.32 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00637/0.3419, allocations: 4.243 MB / 0.5448 GB, free: 52.5 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.108e-05/0.342, allocations: 52.69 kB / 0.5448 GB, free: 52.46 MB / 366.1 MB Notification: Performance of pre-optimization done (n=137): time 3.086e-06/0.342, allocations: 0 / 0.5448 GB, free: 52.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=159): time 0.01176/0.3537, allocations: 6.515 MB / 0.5512 GB, free: 50.97 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.633e-05/0.3538, allocations: 68.47 kB / 0.5513 GB, free: 50.91 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002953/0.3568, allocations: 2.233 MB / 0.5535 GB, free: 50.61 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001037/0.3569, allocations: 59.42 kB / 0.5535 GB, free: 50.56 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008511/0.3577, allocations: 1.703 MB / 0.5552 GB, free: 49.26 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003599/0.3581, allocations: 0.5463 MB / 0.5557 GB, free: 48.84 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002625/0.3584, allocations: 174.4 kB / 0.5559 GB, free: 48.75 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.216e-05/0.3584, allocations: 301.8 kB / 0.5562 GB, free: 48.46 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001188/0.3596, allocations: 0.8303 MB / 0.557 GB, free: 48.13 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001353/0.361, allocations: 1.489 MB / 0.5584 GB, free: 46.98 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002583/0.3636, allocations: 2.464 MB / 0.5608 GB, free: 45.29 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-05/0.3636, allocations: 9.969 kB / 0.5608 GB, free: 45.28 MB / 366.1 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.004255/0.3678, allocations: 2.975 MB / 0.5637 GB, free: 43.91 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.319e-05/0.3679, allocations: 12.53 kB / 0.5638 GB, free: 43.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.003e-05/0.3679, allocations: 22.47 kB / 0.5638 GB, free: 43.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008061/0.3687, allocations: 302.4 kB / 0.5641 GB, free: 43.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001683/0.3704, allocations: 485 kB / 0.5645 GB, free: 43.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003629/0.374, allocations: 4.516 MB / 0.5689 GB, free: 39.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001503/0.3756, allocations: 94.19 kB / 0.569 GB, free: 39.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001205/0.3757, allocations: 92.55 kB / 0.5691 GB, free: 39.59 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.001522/0.3772, allocations: 1.118 MB / 0.5702 GB, free: 38.84 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002614/0.3775, allocations: 238.9 kB / 0.5704 GB, free: 38.72 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003605/0.3811, allocations: 2.435 MB / 0.5728 GB, free: 37.2 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.728e-06/0.3811, allocations: 15.34 kB / 0.5728 GB, free: 37.2 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-06/0.3811, allocations: 4.781 kB / 0.5728 GB, free: 37.2 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.315e-05/0.3812, allocations: 11.91 kB / 0.5728 GB, free: 37.19 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006999/0.3882, allocations: 5.801 MB / 0.5785 GB, free: 32.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.422e-06/0.3882, allocations: 8.031 kB / 0.5785 GB, free: 32.17 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001173/0.3894, allocations: 271.7 kB / 0.5788 GB, free: 31.9 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007899/0.3902, allocations: 326.9 kB / 0.5791 GB, free: 31.57 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.468e-05/0.3903, allocations: 43.47 kB / 0.5791 GB, free: 31.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004793/0.3951, allocations: 6.446 MB / 0.5854 GB, free: 24.72 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.145e-06/0.3951, allocations: 7.969 kB / 0.5854 GB, free: 24.71 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00458/0.3997, allocations: 3.542 MB / 0.5889 GB, free: 21.09 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008675/0.4006, allocations: 0.4942 MB / 0.5894 GB, free: 20.57 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003349/0.4009, allocations: 32 kB / 0.5894 GB, free: 20.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001175/0.4021, allocations: 75.95 kB / 0.5895 GB, free: 20.46 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00024/0.4023, allocations: 121 kB / 0.5896 GB, free: 20.35 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.884e-05/0.4024, allocations: 49.62 kB / 0.5896 GB, free: 20.3 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001913/0.4044, allocations: 1.511 MB / 0.5911 GB, free: 18.77 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4044, allocations: 0 / 0.5911 GB, free: 18.77 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002005/0.4064, allocations: 0.655 MB / 0.5918 GB, free: 18.12 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.0002634/0.4067, allocations: 167.2 kB / 0.5919 GB, free: 17.96 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003121/0.4098, allocations: 2.45 MB / 0.5943 GB, free: 15.47 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.4098, allocations: 4 kB / 0.5943 GB, free: 15.46 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001715/0.4115, allocations: 1.419 MB / 0.5957 GB, free: 14.01 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002786/0.4143, allocations: 0.5479 MB / 0.5962 GB, free: 13.47 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009019/0.4234, allocations: 8.166 MB / 0.6042 GB, free: 5.262 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00156/0.4249, allocations: 2.45 MB / 0.6066 GB, free: 2.781 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005723/0.4255, allocations: 179.4 kB / 0.6068 GB, free: 2.605 MB / 366.1 MB Notification: Performance of SimCode: time 5.41e-07/0.4255, allocations: 0 / 0.6068 GB, free: 2.605 MB / 366.1 MB Notification: Performance of Templates: time 0.2495/0.6751, allocations: 99.24 MB / 0.7037 GB, free: 147.8 MB / 462.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.makefile (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)