Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.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.SMR_MTPA,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA") translateModel(HanserModelica.SynchronousMachines.SMR_MTPA,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001202/0.001202, allocations: 105.4 kB / 16.41 MB, free: 6.457 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.383/1.383, allocations: 222.9 MB / 240.1 MB, free: 4.496 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.00137/0.001369, allocations: 180.5 kB / 290.4 MB, free: 2.215 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03509/0.03509, allocations: 8.801 MB / 349.3 MB, free: 4.605 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002145/0.002145, allocations: 83.88 kB / 464.6 MB, free: 13.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1096, allocations: 51.55 MB / 0.5041 GB, free: 9.457 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_MTPA): time 0.2538/0.3634, allocations: 27.66 MB / 0.5311 GB, free: 4.934 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01457/0.378, allocations: 8.017 MB / 0.5389 GB, free: 4.824 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006118/0.3843, allocations: 208.2 kB / 0.5391 GB, free: 4.824 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01731/0.4016, allocations: 7.915 MB / 0.5468 GB, free: 3.656 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009813/0.4114, allocations: 2.704 MB / 0.5495 GB, free: 2.875 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005634/0.4171, allocations: 1.814 MB / 0.5513 GB, free: 2.691 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01325/0.4304, allocations: 9.697 MB / 0.5607 GB, free: 14.64 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03236/0.4628, allocations: 21.19 MB / 0.5814 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01023/0.4731, allocations: 5.267 MB / 0.5866 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01044/0.4836, allocations: 5.918 MB / 0.5923 GB, free: 5.699 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004295/0.4879, allocations: 1.516 MB / 0.5938 GB, free: 4.184 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006789/0.4947, allocations: 1.875 MB / 0.5957 GB, free: 2.316 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004716/0.4995, allocations: 2.94 MB / 0.5985 GB, free: 15.41 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01156/0.5111, allocations: 5.724 MB / 0.6041 GB, free: 9.699 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02548/0.5366, allocations: 20.27 MB / 0.6239 GB, free: 5.762 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.274e-06/0.5366, allocations: 7.938 kB / 0.6239 GB, free: 5.754 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.717e-06/0.5366, allocations: 4 kB / 0.6239 GB, free: 5.75 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005769/0.5372, allocations: 0 / 0.6239 GB, free: 5.75 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2552 * Number of variables: 2552 Notification: Performance of Generate backend data structure: time 0.03524/0.5725, allocations: 11.59 MB / 0.6352 GB, free: 10.16 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.045e-05/0.5726, allocations: 12.03 kB / 0.6353 GB, free: 10.15 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03068/0.6032, allocations: 5.583 MB / 0.6407 GB, free: 4.609 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01354/0.6168, allocations: 6.191 MB / 0.6467 GB, free: 14.4 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007126/0.6176, allocations: 0.6866 MB / 0.6474 GB, free: 13.72 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003948/0.6216, allocations: 0.9079 MB / 0.6483 GB, free: 12.82 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03704/0.6586, allocations: 14.86 MB / 0.6628 GB, free: 13.95 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003357/0.659, allocations: 15.91 kB / 0.6628 GB, free: 13.93 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003073/0.6621, allocations: 384.4 kB / 0.6632 GB, free: 13.57 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005077/0.6626, allocations: 0.5074 MB / 0.6637 GB, free: 13.06 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02946/0.6921, allocations: 13.58 MB / 0.677 GB, free: 15.47 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08505/0.7772, allocations: 46.11 MB / 0.722 GB, free: 0.5469 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.4823/1.26, allocations: 28.29 MB / 0.7496 GB, free: 121.9 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005866/1.265, allocations: 3.031 MB / 0.7526 GB, free: 121.9 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000446/1.266, allocations: 236.3 kB / 0.7528 GB, free: 121.7 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.457e-05/1.266, allocations: 73.89 kB / 0.7529 GB, free: 121.6 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=375): time 6.111e-06/1.266, allocations: 1.875 kB / 0.7529 GB, free: 121.6 MB / 0.5138 GB Notification: Performance of matching and sorting (n=382): time 0.03227/1.298, allocations: 14.64 MB / 0.7672 GB, free: 117.5 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.083e-05/1.298, allocations: 91.31 kB / 0.7672 GB, free: 117.4 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005223/1.304, allocations: 3.478 MB / 0.7706 GB, free: 116.1 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0006723/1.304, allocations: 86.98 kB / 0.7707 GB, free: 116.1 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002386/1.307, allocations: 3.95 MB / 0.7746 GB, free: 113.1 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001444/1.308, allocations: 1.314 MB / 0.7759 GB, free: 112.1 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001698/1.31, allocations: 1.141 MB / 0.777 GB, free: 111.5 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 6.14e-05/1.31, allocations: 301.1 kB / 0.7773 GB, free: 111.2 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003236/1.313, allocations: 2.554 MB / 0.7798 GB, free: 110.3 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004504/1.318, allocations: 5.015 MB / 0.7847 GB, free: 106.1 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008373/1.326, allocations: 8.212 MB / 0.7927 GB, free: 100.2 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001078/1.326, allocations: 23.59 kB / 0.7927 GB, free: 100.2 MB / 0.5138 GB Notification: Performance of matching and sorting (n=755) (initialization): time 0.01445/1.341, allocations: 8.501 MB / 0.801 GB, free: 96.81 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 7.536e-05/1.341, allocations: 38.94 kB / 0.801 GB, free: 96.81 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001405/1.341, allocations: 82.16 kB / 0.8011 GB, free: 96.81 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002224/1.343, allocations: 0.8554 MB / 0.8019 GB, free: 96.23 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004542/1.348, allocations: 1.345 MB / 0.8033 GB, free: 95.07 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008968/1.357, allocations: 7.668 MB / 0.8108 GB, free: 87.76 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004585/1.361, allocations: 323.3 kB / 0.8111 GB, free: 87.44 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001093/1.363, allocations: 296 kB / 0.8113 GB, free: 87.15 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 373 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (708): * Single equations (assignments): 707 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,40,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006044/1.369, allocations: 3.482 MB / 0.8147 GB, free: 83.66 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001157/1.37, allocations: 387.2 kB / 0.8151 GB, free: 83.27 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008924/1.379, allocations: 5.859 MB / 0.8208 GB, free: 77.38 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.676e-05/1.379, allocations: 40 kB / 0.8209 GB, free: 77.34 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.487e-05/1.379, allocations: 8 kB / 0.8209 GB, free: 77.34 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.217e-05/1.379, allocations: 23.91 kB / 0.8209 GB, free: 77.31 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02554/1.404, allocations: 14.48 MB / 0.835 GB, free: 62.79 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.652e-05/1.404, allocations: 12.03 kB / 0.8351 GB, free: 62.78 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002604/1.407, allocations: 0.6709 MB / 0.8357 GB, free: 62.11 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001836/1.409, allocations: 0.7092 MB / 0.8364 GB, free: 61.39 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004303/1.409, allocations: 79.98 kB / 0.8365 GB, free: 61.32 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007441/1.417, allocations: 6.697 MB / 0.843 GB, free: 54.48 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/1.417, allocations: 7.938 kB / 0.843 GB, free: 54.47 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01193/1.429, allocations: 8.55 MB / 0.8514 GB, free: 45.79 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002415/1.431, allocations: 0.863 MB / 0.8522 GB, free: 44.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009248/1.432, allocations: 77.44 kB / 0.8523 GB, free: 44.83 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002253/1.434, allocations: 185.4 kB / 0.8525 GB, free: 44.65 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004893/1.435, allocations: 254.6 kB / 0.8527 GB, free: 44.4 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001984/1.435, allocations: 111.8 kB / 0.8528 GB, free: 44.29 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.003275/1.438, allocations: 2.338 MB / 0.8551 GB, free: 41.96 MB / 0.5138 GB Notification: Performance of sort global known variables: time 5.11e-07/1.439, allocations: 0 / 0.8551 GB, free: 41.96 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.006066/1.445, allocations: 1.513 MB / 0.8566 GB, free: 40.45 MB / 0.5138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 1 (smr.phiMechanical) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (365): * Single equations (assignments): 364 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,38,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007346/1.445, allocations: 237.8 kB / 0.8568 GB, free: 40.22 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.009034/1.454, allocations: 6.435 MB / 0.8631 GB, free: 33.79 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.205e-05/1.454, allocations: 6.516 kB / 0.8631 GB, free: 33.79 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.004328/1.459, allocations: 2.88 MB / 0.8659 GB, free: 30.89 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00499/1.464, allocations: 0.8811 MB / 0.8668 GB, free: 30.04 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02539/1.489, allocations: 15.11 MB / 0.8815 GB, free: 14.84 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006244/1.496, allocations: 5.723 MB / 0.8871 GB, free: 9.074 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001521/1.497, allocations: 367.4 kB / 0.8875 GB, free: 8.715 MB / 0.5138 GB Notification: Performance of SimCode: time 1.122e-06/1.497, allocations: 0 / 0.8875 GB, free: 8.715 MB / 0.5138 GB Notification: Performance of Templates: time 0.3968/1.894, allocations: 147.9 MB / 1.032 GB, free: 90.62 MB / 0.545 GB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe 2>&1)