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.001697/0.001698, allocations: 115.6 kB / 16.37 MB, free: 6.004 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.466/1.466, allocations: 222.9 MB / 240 MB, free: 4.484 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.001259/0.001259, allocations: 196.5 kB / 290.3 MB, free: 2.211 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03361/0.03361, allocations: 8.792 MB / 349.3 MB, free: 4.609 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001534/0.001534, allocations: 82.09 kB / 412.5 MB, free: 41.68 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1033, allocations: 51.57 MB / 464.1 MB, free: 13.55 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_MTPA): time 0.02887/0.1322, allocations: 27.65 MB / 491.7 MB, free: 1.762 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01694/0.1492, allocations: 8.026 MB / 499.8 MB, free: 9.711 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006467/0.1557, allocations: 207.4 kB / 500 MB, free: 9.508 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01911/0.1749, allocations: 7.921 MB / 0.496 GB, free: 1.566 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01135/0.1862, allocations: 2.698 MB / 0.4986 GB, free: 14.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005977/0.1922, allocations: 1.821 MB / 0.5004 GB, free: 13.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01402/0.2063, allocations: 9.68 MB / 0.5099 GB, free: 3.324 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2161/0.4224, allocations: 21.19 MB / 0.5305 GB, free: 13.96 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007374/0.4298, allocations: 5.245 MB / 0.5357 GB, free: 13.66 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009029/0.4389, allocations: 5.92 MB / 0.5415 GB, free: 12.71 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004486/0.4434, allocations: 1.522 MB / 0.5429 GB, free: 12.71 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006244/0.4496, allocations: 1.877 MB / 0.5448 GB, free: 12.71 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003568/0.4532, allocations: 2.941 MB / 0.5476 GB, free: 12.38 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00781/0.4611, allocations: 5.721 MB / 0.5532 GB, free: 11.07 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01758/0.4787, allocations: 20.27 MB / 0.573 GB, free: 3.777 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.782e-06/0.4787, allocations: 2.75 kB / 0.573 GB, free: 3.777 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.4787, allocations: 0 / 0.573 GB, free: 3.777 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0006106/0.4793, allocations: 0 / 0.573 GB, free: 3.777 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.03618/0.5155, allocations: 11.59 MB / 0.5844 GB, free: 12.43 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.687e-05/0.5156, allocations: 14.41 kB / 0.5844 GB, free: 12.43 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03085/0.5464, allocations: 5.59 MB / 0.5898 GB, free: 9.836 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01466/0.5611, allocations: 6.18 MB / 0.5959 GB, free: 3.875 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007313/0.5619, allocations: 0.6964 MB / 0.5965 GB, free: 3.188 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003947/0.5659, allocations: 0.9032 MB / 0.5974 GB, free: 2.293 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03929/0.6052, allocations: 14.86 MB / 0.6119 GB, free: 3.422 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003096/0.6055, allocations: 19.81 kB / 0.612 GB, free: 3.402 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002662/0.6082, allocations: 383 kB / 0.6123 GB, free: 3.035 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005413/0.6087, allocations: 0.5113 MB / 0.6128 GB, free: 2.523 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03152/0.6403, allocations: 13.58 MB / 0.6261 GB, free: 4.941 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08614/0.7264, allocations: 46.08 MB / 0.6711 GB, free: 6.566 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02134/0.7478, allocations: 28.31 MB / 0.6987 GB, free: 6.602 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005183/0.7531, allocations: 3.026 MB / 0.7017 GB, free: 3.57 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003947/0.7535, allocations: 238 kB / 0.7019 GB, free: 3.312 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.63e-05/0.7535, allocations: 73.52 kB / 0.702 GB, free: 3.23 MB / 494.1 MB Notification: Performance of pre-optimization done (n=375): time 5.049e-06/0.7536, allocations: 0 / 0.702 GB, free: 3.23 MB / 494.1 MB Notification: Performance of matching and sorting (n=382): time 0.2453/0.9989, allocations: 14.62 MB / 0.7163 GB, free: 160.2 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.545e-05/0.999, allocations: 100.2 kB / 0.7164 GB, free: 160.1 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006253/1.005, allocations: 3.48 MB / 0.7198 GB, free: 159.8 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005669/1.006, allocations: 87.77 kB / 0.7198 GB, free: 159.7 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002343/1.008, allocations: 3.95 MB / 0.7237 GB, free: 157.5 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001373/1.01, allocations: 1.306 MB / 0.725 GB, free: 156.7 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001914/1.011, allocations: 1.14 MB / 0.7261 GB, free: 156.6 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.11e-05/1.012, allocations: 301.1 kB / 0.7264 GB, free: 156.3 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004717/1.016, allocations: 2.556 MB / 0.7289 GB, free: 156.3 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004971/1.021, allocations: 5.01 MB / 0.7338 GB, free: 152.6 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0102/1.032, allocations: 8.217 MB / 0.7418 GB, free: 146.8 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001245/1.032, allocations: 26.47 kB / 0.7418 GB, free: 146.8 MB / 494.1 MB Notification: Performance of matching and sorting (n=755) (initialization): time 0.01537/1.047, allocations: 8.501 MB / 0.7501 GB, free: 143.4 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.456e-05/1.047, allocations: 39.19 kB / 0.7501 GB, free: 143.4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000143/1.047, allocations: 81.56 kB / 0.7502 GB, free: 143.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00226/1.05, allocations: 0.8465 MB / 0.7511 GB, free: 143.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004525/1.054, allocations: 1.345 MB / 0.7524 GB, free: 143.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009768/1.064, allocations: 7.658 MB / 0.7598 GB, free: 138.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004545/1.069, allocations: 320.6 kB / 0.7601 GB, free: 138.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001093/1.07, allocations: 304.4 kB / 0.7604 GB, free: 138.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.007085/1.077, allocations: 3.49 MB / 0.7638 GB, free: 136 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001286/1.078, allocations: 393.2 kB / 0.7642 GB, free: 135.6 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01014/1.088, allocations: 5.864 MB / 0.7699 GB, free: 130.7 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.381e-05/1.088, allocations: 36 kB / 0.77 GB, free: 130.6 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.937e-05/1.088, allocations: 8.812 kB / 0.77 GB, free: 130.6 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.342e-05/1.088, allocations: 18.33 kB / 0.77 GB, free: 130.6 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02717/1.116, allocations: 14.49 MB / 0.7842 GB, free: 116.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.692e-05/1.116, allocations: 8.344 kB / 0.7842 GB, free: 116.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002507/1.118, allocations: 0.667 MB / 0.7848 GB, free: 115.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001948/1.12, allocations: 0.7136 MB / 0.7855 GB, free: 115.2 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004541/1.121, allocations: 83.98 kB / 0.7856 GB, free: 115.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007665/1.128, allocations: 6.694 MB / 0.7921 GB, free: 108.3 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.42e-06/1.128, allocations: 7.938 kB / 0.7921 GB, free: 108.3 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01267/1.141, allocations: 8.555 MB / 0.8005 GB, free: 99.59 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002384/1.143, allocations: 0.8597 MB / 0.8013 GB, free: 98.71 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001029/1.144, allocations: 75.92 kB / 0.8014 GB, free: 98.64 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002143/1.147, allocations: 187.8 kB / 0.8016 GB, free: 98.45 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004961/1.147, allocations: 246.7 kB / 0.8018 GB, free: 98.21 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002555/1.147, allocations: 123.8 kB / 0.8019 GB, free: 98.09 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003732/1.151, allocations: 2.33 MB / 0.8042 GB, free: 95.77 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/1.151, allocations: 0 / 0.8042 GB, free: 95.77 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005347/1.156, allocations: 1.512 MB / 0.8057 GB, free: 94.26 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.000527/1.157, allocations: 248.6 kB / 0.8059 GB, free: 94.01 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008835/1.166, allocations: 6.421 MB / 0.8122 GB, free: 87.59 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/1.166, allocations: 0 / 0.8122 GB, free: 87.59 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004199/1.17, allocations: 2.876 MB / 0.815 GB, free: 84.7 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005319/1.175, allocations: 0.895 MB / 0.8159 GB, free: 83.86 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03247/1.208, allocations: 15.36 MB / 0.8309 GB, free: 68.42 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01154/1.219, allocations: 5.898 MB / 0.8366 GB, free: 62.48 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005702/1.225, allocations: 1.858 MB / 0.8385 GB, free: 60.65 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001457/1.227, allocations: 331.4 kB / 0.8388 GB, free: 60.32 MB / 494.1 MB Notification: Performance of SimCode: time 7.32e-07/1.227, allocations: 0 / 0.8388 GB, free: 60.32 MB / 494.1 MB Notification: Performance of Templates: time 0.3032/1.53, allocations: 55.28 MB / 0.8928 GB, free: 147.4 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 -s cvode -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe 2>&1)