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.001691/0.001691, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.498/2.498, allocations: 222.9 MB / 239.5 MB, free: 4.754 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.001466/0.001467, allocations: 184.5 kB / 289.8 MB, free: 2.504 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03628/0.03628, allocations: 8.8 MB / 348.7 MB, free: 4.898 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001623/0.001623, allocations: 76.84 kB / 411.1 MB, free: 42.52 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1238/0.1255, allocations: 51.56 MB / 462.6 MB, free: 15.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_MTPA): time 0.02994/0.1554, allocations: 27.16 MB / 489.8 MB, free: 3.73 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02047/0.176, allocations: 7.948 MB / 497.7 MB, free: 11.76 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007958/0.184, allocations: 203.4 kB / 497.9 MB, free: 11.56 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01879/0.2028, allocations: 7.474 MB / 0.4936 GB, free: 4.07 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01153/0.2144, allocations: 2.484 MB / 0.496 GB, free: 1.582 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006353/0.2208, allocations: 1.7 MB / 0.4976 GB, free: 15.89 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01451/0.2353, allocations: 9.608 MB / 0.507 GB, free: 6.242 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0328/0.2681, allocations: 17.69 MB / 0.5243 GB, free: 4.41 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3383/0.6065, allocations: 4.581 MB / 0.5288 GB, free: 17.92 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01085/0.6174, allocations: 5.676 MB / 0.5343 GB, free: 17.68 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005592/0.623, allocations: 1.035 MB / 0.5353 GB, free: 17.68 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00841/0.6315, allocations: 1.39 MB / 0.5367 GB, free: 17.68 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006163/0.6377, allocations: 2.439 MB / 0.5391 GB, free: 17.35 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01734/0.6551, allocations: 5.215 MB / 0.5442 GB, free: 16.04 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02408/0.6792, allocations: 17.63 MB / 0.5614 GB, free: 10.88 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.12e-05/0.6793, allocations: 3.031 kB / 0.5614 GB, free: 10.88 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.815e-06/0.6793, allocations: 0 / 0.5614 GB, free: 10.88 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000955/0.6803, allocations: 0.9062 kB / 0.5614 GB, free: 10.88 MB / 366.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.05006/0.7303, allocations: 11.63 MB / 0.5727 GB, free: 5.355 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.201e-05/0.7304, allocations: 9.688 kB / 0.5727 GB, free: 5.355 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03271/0.7631, allocations: 5.568 MB / 0.5782 GB, free: 2.848 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01763/0.7808, allocations: 6.008 MB / 0.584 GB, free: 14.99 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001048/0.7819, allocations: 0.7003 MB / 0.5847 GB, free: 14.67 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005631/0.7876, allocations: 0.9041 MB / 0.5856 GB, free: 14.38 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05599/0.8436, allocations: 14.86 MB / 0.6001 GB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006798/0.8443, allocations: 19.75 kB / 0.6001 GB, free: 15.62 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005371/0.8497, allocations: 388 kB / 0.6005 GB, free: 15.25 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009863/0.8507, allocations: 0.5075 MB / 0.601 GB, free: 14.75 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.039/0.8898, allocations: 13.57 MB / 0.6143 GB, free: 1.172 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1559/1.046, allocations: 46.6 MB / 0.6598 GB, free: 2.34 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04335/1.089, allocations: 28.3 MB / 0.6874 GB, free: 2.363 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01055/1.1, allocations: 3.025 MB / 0.6904 GB, free: 15.33 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009261/1.101, allocations: 237.1 kB / 0.6906 GB, free: 15.07 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001779/1.101, allocations: 73.52 kB / 0.6907 GB, free: 14.99 MB / 494.1 MB Notification: Performance of pre-optimization done (n=375): time 2.416e-05/1.101, allocations: 0 / 0.6907 GB, free: 14.99 MB / 494.1 MB Notification: Performance of matching and sorting (n=382): time 0.06757/1.169, allocations: 14.56 MB / 0.7049 GB, free: 388 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001369/1.169, allocations: 94.41 kB / 0.705 GB, free: 280 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3753/1.544, allocations: 3.475 MB / 0.7084 GB, free: 165.1 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001177/1.545, allocations: 88.39 kB / 0.7085 GB, free: 165.1 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00455/1.55, allocations: 3.946 MB / 0.7123 GB, free: 163.5 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002765/1.553, allocations: 1.308 MB / 0.7136 GB, free: 162.7 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003833/1.557, allocations: 1.139 MB / 0.7147 GB, free: 162.6 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 6.506e-05/1.557, allocations: 307 kB / 0.715 GB, free: 162.3 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009009/1.566, allocations: 2.549 MB / 0.7175 GB, free: 162.3 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01172/1.578, allocations: 5.008 MB / 0.7224 GB, free: 159.3 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02227/1.6, allocations: 8.215 MB / 0.7304 GB, free: 155.5 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003665/1.6, allocations: 23.59 kB / 0.7304 GB, free: 155.5 MB / 494.1 MB Notification: Performance of matching and sorting (n=755) (initialization): time 0.03264/1.633, allocations: 8.494 MB / 0.7387 GB, free: 152.1 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004334/1.634, allocations: 39.44 kB / 0.7387 GB, free: 152.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004398/1.634, allocations: 83.98 kB / 0.7388 GB, free: 152.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004913/1.639, allocations: 0.8334 MB / 0.7396 GB, free: 151.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0103/1.649, allocations: 1.334 MB / 0.7409 GB, free: 151.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01828/1.668, allocations: 7.078 MB / 0.7479 GB, free: 147.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009383/1.677, allocations: 325.8 kB / 0.7482 GB, free: 147.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00232/1.68, allocations: 303.5 kB / 0.7485 GB, free: 147.7 MB / 494.1 MB 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.01513/1.695, allocations: 3.485 MB / 0.7519 GB, free: 145.4 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00239/1.697, allocations: 387 kB / 0.7522 GB, free: 145 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02097/1.718, allocations: 5.852 MB / 0.7579 GB, free: 140.1 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.429e-05/1.718, allocations: 40 kB / 0.758 GB, free: 140.1 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.606e-05/1.718, allocations: 16.44 kB / 0.758 GB, free: 140.1 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001327/1.719, allocations: 19.03 kB / 0.758 GB, free: 140.1 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.054/1.773, allocations: 14.77 MB / 0.7724 GB, free: 127.3 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.827e-05/1.773, allocations: 4 kB / 0.7724 GB, free: 127.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005992/1.779, allocations: 0.6676 MB / 0.7731 GB, free: 126.6 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004216/1.783, allocations: 0.7022 MB / 0.7738 GB, free: 125.9 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001048/1.784, allocations: 83.97 kB / 0.7739 GB, free: 125.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01403/1.798, allocations: 6.139 MB / 0.7799 GB, free: 119.5 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.267e-06/1.798, allocations: 7.938 kB / 0.7799 GB, free: 119.5 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02263/1.821, allocations: 8.537 MB / 0.7882 GB, free: 110.9 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004397/1.825, allocations: 0.852 MB / 0.789 GB, free: 110 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002338/1.828, allocations: 79.92 kB / 0.7891 GB, free: 109.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005068/1.833, allocations: 179.8 kB / 0.7893 GB, free: 109.7 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001073/1.834, allocations: 258.7 kB / 0.7895 GB, free: 109.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004286/1.834, allocations: 108 kB / 0.7896 GB, free: 109.4 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00726/1.842, allocations: 2.334 MB / 0.7919 GB, free: 107.1 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.273e-06/1.842, allocations: 2.844 kB / 0.7919 GB, free: 107.1 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0134/1.855, allocations: 1.511 MB / 0.7934 GB, free: 105.6 MB / 494.1 MB 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.001605/1.857, allocations: 253.2 kB / 0.7936 GB, free: 105.3 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01886/1.876, allocations: 6.382 MB / 0.7999 GB, free: 98.91 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.766e-05/1.876, allocations: 4 kB / 0.7999 GB, free: 98.91 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.009328/1.885, allocations: 2.864 MB / 0.8027 GB, free: 96.04 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0129/1.898, allocations: 0.8542 MB / 0.8035 GB, free: 95.21 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05351/1.952, allocations: 19.1 MB / 0.8221 GB, free: 76.04 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01122/1.963, allocations: 5.716 MB / 0.8277 GB, free: 70.29 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002726/1.966, allocations: 371.4 kB / 0.8281 GB, free: 69.92 MB / 494.1 MB Notification: Performance of SimCode: time 1.633e-06/1.966, allocations: 4 kB / 0.8281 GB, free: 69.92 MB / 494.1 MB Notification: Performance of Templates: time 0.6797/2.645, allocations: 147.1 MB / 0.9717 GB, free: 78.13 MB / 494.1 MB 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)