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.001001/0.001001, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.238/1.238, allocations: 222.9 MB / 238.9 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.001307/0.001307, allocations: 184.5 kB / 289.1 MB, free: 2.512 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0323/0.0323, allocations: 8.791 MB / 348.1 MB, free: 4.902 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 74.64 kB / 410.4 MB, free: 42.43 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08591/0.08717, allocations: 51.56 MB / 462 MB, free: 14.92 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_MTPA): time 0.02618/0.1134, allocations: 27.16 MB / 489.1 MB, free: 3.625 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01502/0.1285, allocations: 7.945 MB / 497.1 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004637/0.1331, allocations: 199.4 kB / 497.3 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0152/0.1483, allocations: 7.489 MB / 0.4929 GB, free: 3.957 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01082/0.1592, allocations: 2.471 MB / 0.4953 GB, free: 1.48 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005811/0.165, allocations: 1.702 MB / 0.497 GB, free: 15.78 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01433/0.1793, allocations: 9.606 MB / 0.5064 GB, free: 6.141 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02995/0.2093, allocations: 17.69 MB / 0.5236 GB, free: 4.305 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2143/0.4237, allocations: 4.583 MB / 0.5281 GB, free: 18.06 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008031/0.4318, allocations: 5.673 MB / 0.5337 GB, free: 17.83 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003161/0.435, allocations: 1.035 MB / 0.5347 GB, free: 17.83 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004746/0.4397, allocations: 1.39 MB / 0.536 GB, free: 17.83 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003152/0.4429, allocations: 2.438 MB / 0.5384 GB, free: 17.5 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008971/0.4519, allocations: 5.215 MB / 0.5435 GB, free: 16.18 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01887/0.4708, allocations: 19.83 MB / 0.5629 GB, free: 9.887 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.4708, allocations: 0.9375 kB / 0.5629 GB, free: 9.887 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.4708, allocations: 0 / 0.5629 GB, free: 9.887 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005456/0.4714, allocations: 0 / 0.5629 GB, free: 9.887 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.03113/0.5025, allocations: 11.64 MB / 0.5742 GB, free: 3.895 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.5026, allocations: 14.09 kB / 0.5742 GB, free: 3.895 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02712/0.5297, allocations: 5.568 MB / 0.5797 GB, free: 1.387 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01127/0.541, allocations: 6.001 MB / 0.5855 GB, free: 13.51 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005174/0.5416, allocations: 0.6966 MB / 0.5862 GB, free: 13.15 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003501/0.5451, allocations: 0.9077 MB / 0.5871 GB, free: 12.25 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03569/0.5808, allocations: 14.86 MB / 0.6016 GB, free: 13.38 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002796/0.5811, allocations: 23.8 kB / 0.6017 GB, free: 13.36 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002292/0.5834, allocations: 383.3 kB / 0.602 GB, free: 12.99 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004632/0.5839, allocations: 0.5068 MB / 0.6025 GB, free: 12.49 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02942/0.6133, allocations: 13.56 MB / 0.6158 GB, free: 14.92 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0744/0.6877, allocations: 46.61 MB / 0.6613 GB, free: 80 kB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0189/0.7067, allocations: 28.3 MB / 0.6889 GB, free: 108 kB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004489/0.7112, allocations: 3.023 MB / 0.6919 GB, free: 13.08 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003399/0.7115, allocations: 237.1 kB / 0.6921 GB, free: 12.82 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.991e-05/0.7116, allocations: 77.45 kB / 0.6922 GB, free: 12.73 MB / 494.1 MB Notification: Performance of pre-optimization done (n=375): time 5.18e-06/0.7116, allocations: 0 / 0.6922 GB, free: 12.73 MB / 494.1 MB Notification: Performance of matching and sorting (n=382): time 0.2087/0.9203, allocations: 14.56 MB / 0.7064 GB, free: 162.9 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.401e-05/0.9204, allocations: 90.78 kB / 0.7065 GB, free: 162.8 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005205/0.9256, allocations: 3.476 MB / 0.7099 GB, free: 162.6 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006657/0.9263, allocations: 86.2 kB / 0.7099 GB, free: 162.5 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002457/0.9287, allocations: 3.953 MB / 0.7138 GB, free: 161 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001378/0.9301, allocations: 1.31 MB / 0.7151 GB, free: 160.2 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00178/0.9319, allocations: 1.146 MB / 0.7162 GB, free: 160.1 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 6.25e-05/0.932, allocations: 309.2 kB / 0.7165 GB, free: 159.8 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003807/0.9358, allocations: 2.547 MB / 0.719 GB, free: 159.8 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004408/0.9402, allocations: 5.009 MB / 0.7239 GB, free: 156.8 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008629/0.9489, allocations: 8.21 MB / 0.7319 GB, free: 152.5 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001262/0.949, allocations: 23.19 kB / 0.7319 GB, free: 152.5 MB / 494.1 MB Notification: Performance of matching and sorting (n=755) (initialization): time 0.0124/0.9614, allocations: 8.481 MB / 0.7402 GB, free: 149.1 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.244e-05/0.9615, allocations: 42.75 kB / 0.7402 GB, free: 149.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001267/0.9616, allocations: 88.34 kB / 0.7403 GB, free: 149.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001984/0.9636, allocations: 0.8309 MB / 0.7411 GB, free: 148.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004051/0.9677, allocations: 1.345 MB / 0.7425 GB, free: 148.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007976/0.9757, allocations: 7.075 MB / 0.7494 GB, free: 144.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003983/0.9797, allocations: 323.8 kB / 0.7497 GB, free: 144.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006564/0.9804, allocations: 298.5 kB / 0.75 GB, free: 144.6 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.004851/0.9852, allocations: 3.477 MB / 0.7533 GB, free: 142.9 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007757/0.986, allocations: 397.7 kB / 0.7537 GB, free: 142.7 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007903/0.9939, allocations: 5.854 MB / 0.7594 GB, free: 138.5 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-05/0.9939, allocations: 36 kB / 0.7595 GB, free: 138.5 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.253e-05/0.994, allocations: 8 kB / 0.7595 GB, free: 138.5 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.757e-05/0.994, allocations: 22.27 kB / 0.7595 GB, free: 138.5 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01853/1.013, allocations: 14.78 MB / 0.7739 GB, free: 125 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.197e-05/1.013, allocations: 4 kB / 0.7739 GB, free: 125 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002203/1.015, allocations: 0.6709 MB / 0.7746 GB, free: 124.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001615/1.016, allocations: 0.7009 MB / 0.7753 GB, free: 123.7 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001797/1.017, allocations: 83.98 kB / 0.7754 GB, free: 123.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006318/1.023, allocations: 6.135 MB / 0.7814 GB, free: 117.3 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.479e-06/1.023, allocations: 11.94 kB / 0.7814 GB, free: 117.3 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009324/1.032, allocations: 8.536 MB / 0.7897 GB, free: 108.7 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001595/1.034, allocations: 0.8514 MB / 0.7905 GB, free: 107.8 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004702/1.034, allocations: 75.94 kB / 0.7906 GB, free: 107.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001494/1.036, allocations: 187.8 kB / 0.7908 GB, free: 107.5 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004193/1.036, allocations: 254.6 kB / 0.791 GB, free: 107.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001834/1.036, allocations: 112 kB / 0.7911 GB, free: 107.2 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00282/1.039, allocations: 2.33 MB / 0.7934 GB, free: 104.8 MB / 494.1 MB Notification: Performance of sort global known variables: time 4.71e-07/1.039, allocations: 8 kB / 0.7934 GB, free: 104.8 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005043/1.044, allocations: 1.508 MB / 0.7949 GB, free: 103.3 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.0004392/1.045, allocations: 252.8 kB / 0.7951 GB, free: 103.1 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007657/1.052, allocations: 6.383 MB / 0.8014 GB, free: 96.69 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/1.053, allocations: 4.125 kB / 0.8014 GB, free: 96.68 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003232/1.056, allocations: 2.87 MB / 0.8042 GB, free: 93.8 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003864/1.06, allocations: 0.8441 MB / 0.805 GB, free: 92.99 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02181/1.081, allocations: 19.35 MB / 0.8239 GB, free: 73.57 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004415/1.086, allocations: 5.894 MB / 0.8296 GB, free: 67.63 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004297/1.09, allocations: 1.857 MB / 0.8315 GB, free: 65.77 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008811/1.091, allocations: 335.3 kB / 0.8318 GB, free: 65.44 MB / 494.1 MB Notification: Performance of SimCode: time 1.052e-06/1.091, allocations: 0 / 0.8318 GB, free: 65.44 MB / 494.1 MB Notification: Performance of Templates: time 0.2454/1.337, allocations: 58.13 MB / 0.8885 GB, free: 143.7 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)