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.001075/0.001075, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.358/1.358, allocations: 223.2 MB / 238.9 MB, free: 5.664 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.001263/0.001263, allocations: 185 kB / 290.2 MB, free: 2.352 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03555/0.03555, allocations: 8.798 MB / 350.1 MB, free: 4.781 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005596/0.0005596, allocations: 16.36 kB / 413.1 MB, free: 43.14 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.134/0.1346, allocations: 52.55 MB / 465.6 MB, free: 13.65 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_MTPA): time 0.03281/0.1674, allocations: 22.2 MB / 487.8 MB, free: 7.367 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01523/0.1827, allocations: 7.587 MB / 495.4 MB, free: 15.76 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004996/0.1877, allocations: 187.4 kB / 495.6 MB, free: 15.58 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00614/0.1939, allocations: 1.586 MB / 497.2 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00947/0.2034, allocations: 2.678 MB / 499.9 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004806/0.2082, allocations: 1.399 MB / 0.4895 GB, free: 9.914 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01213/0.2204, allocations: 7.791 MB / 0.4971 GB, free: 2.109 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0331/0.2535, allocations: 17.03 MB / 0.5138 GB, free: 0.9922 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007185/0.2607, allocations: 3.446 MB / 0.5171 GB, free: 13.54 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007619/0.2684, allocations: 3.883 MB / 0.5209 GB, free: 9.637 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002376/0.2708, allocations: 0.582 MB / 0.5215 GB, free: 9.055 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004612/0.2755, allocations: 0.8862 MB / 0.5224 GB, free: 8.168 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003559/0.279, allocations: 1.713 MB / 0.524 GB, free: 6.449 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00394/0.283, allocations: 1.915 MB / 0.5259 GB, free: 4.523 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2416/0.5246, allocations: 17.06 MB / 0.5426 GB, free: 21.23 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.5246, allocations: 0 / 0.5426 GB, free: 21.23 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.5247, allocations: 0 / 0.5426 GB, free: 21.23 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0006602/0.5253, allocations: 1.281 kB / 0.5426 GB, free: 21.23 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.03145/0.5568, allocations: 9.639 MB / 0.552 GB, free: 16.45 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.655e-05/0.5568, allocations: 10.44 kB / 0.552 GB, free: 16.45 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03232/0.5892, allocations: 5.489 MB / 0.5573 GB, free: 14.34 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01569/0.6049, allocations: 5.949 MB / 0.5632 GB, free: 12.78 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009059/0.6059, allocations: 0.6864 MB / 0.5638 GB, free: 12.76 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005996/0.6119, allocations: 0.9124 MB / 0.5647 GB, free: 12.75 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04939/0.6613, allocations: 14.71 MB / 0.5791 GB, free: 9.543 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003666/0.6617, allocations: 17.45 kB / 0.5791 GB, free: 9.535 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003338/0.665, allocations: 387.4 kB / 0.5795 GB, free: 9.535 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004705/0.6655, allocations: 0.5109 MB / 0.58 GB, free: 9.34 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.028/0.6935, allocations: 13.5 MB / 0.5931 GB, free: 0.7852 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09789/0.7915, allocations: 46.69 MB / 0.6387 GB, free: 3.285 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02356/0.8151, allocations: 28.26 MB / 0.6663 GB, free: 3.332 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006447/0.8158, allocations: 238.7 kB / 0.6666 GB, free: 3.074 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.682e-05/0.8159, allocations: 73.52 kB / 0.6666 GB, free: 2.992 MB / 446.1 MB Notification: Performance of pre-optimization done (n=375): time 6.673e-06/0.8159, allocations: 0 / 0.6666 GB, free: 2.992 MB / 446.1 MB Notification: Performance of matching and sorting (n=382): time 0.03328/0.8492, allocations: 14.46 MB / 0.6808 GB, free: 4.469 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.591e-05/0.8493, allocations: 90.41 kB / 0.6809 GB, free: 4.367 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00527/0.8546, allocations: 3.412 MB / 0.6842 GB, free: 0.9531 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006169/0.8552, allocations: 89.08 kB / 0.6843 GB, free: 0.8633 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002576/0.8578, allocations: 3.958 MB / 0.6881 GB, free: 12.88 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001375/0.8592, allocations: 1.304 MB / 0.6894 GB, free: 11.58 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002762/0.8595, allocations: 120 kB / 0.6895 GB, free: 11.46 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0003656/0.8598, allocations: 0.5457 MB / 0.6901 GB, free: 10.91 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004271/0.8641, allocations: 2.541 MB / 0.6925 GB, free: 8.367 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00585/0.87, allocations: 4.966 MB / 0.6974 GB, free: 2.285 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006258/0.8763, allocations: 3.724 MB / 0.701 GB, free: 14.62 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.64e-05/0.8764, allocations: 24 kB / 0.701 GB, free: 14.6 MB / 494.1 MB Notification: Performance of matching and sorting (n=755) (initialization): time 0.01632/0.8927, allocations: 8.453 MB / 0.7093 GB, free: 6.621 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.38e-05/0.8928, allocations: 40 kB / 0.7093 GB, free: 6.582 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001734/0.893, allocations: 80 kB / 0.7094 GB, free: 6.504 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002366/0.8954, allocations: 0.8329 MB / 0.7102 GB, free: 5.672 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005439/0.9008, allocations: 1.339 MB / 0.7115 GB, free: 4.43 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2282/1.129, allocations: 7.143 MB / 0.7185 GB, free: 165.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004423/1.134, allocations: 323.3 kB / 0.7188 GB, free: 165.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008842/1.134, allocations: 297.3 kB / 0.7191 GB, free: 165.2 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 371 * 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 (710): * Single equations (assignments): 709 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006829/1.141, allocations: 3.479 MB / 0.7225 GB, free: 165.1 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009656/1.142, allocations: 397.7 kB / 0.7229 GB, free: 165.1 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009799/1.152, allocations: 5.864 MB / 0.7286 GB, free: 163.2 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.36e-05/1.152, allocations: 38.47 kB / 0.7286 GB, free: 163.2 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.429e-05/1.152, allocations: 11.83 kB / 0.7287 GB, free: 163.1 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.097e-05/1.152, allocations: 18.38 kB / 0.7287 GB, free: 163.1 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02277/1.175, allocations: 14.38 MB / 0.7427 GB, free: 157.3 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.351e-05/1.175, allocations: 3.969 kB / 0.7427 GB, free: 157.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002428/1.177, allocations: 0.6765 MB / 0.7434 GB, free: 157.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001679/1.179, allocations: 0.6836 MB / 0.744 GB, free: 157.1 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002087/1.179, allocations: 86.86 kB / 0.7441 GB, free: 157.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006991/1.186, allocations: 6.316 MB / 0.7503 GB, free: 153.6 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.93e-06/1.186, allocations: 7.156 kB / 0.7503 GB, free: 153.6 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01043/1.197, allocations: 8.923 MB / 0.759 GB, free: 148 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002098/1.199, allocations: 0.8575 MB / 0.7599 GB, free: 147.2 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000587/1.2, allocations: 72 kB / 0.7599 GB, free: 147.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00168/1.201, allocations: 182.6 kB / 0.7601 GB, free: 147 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004228/1.202, allocations: 260.2 kB / 0.7603 GB, free: 146.9 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002063/1.202, allocations: 114.7 kB / 0.7605 GB, free: 146.8 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002975/1.205, allocations: 2.276 MB / 0.7627 GB, free: 144.9 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.21e-07/1.205, allocations: 0 / 0.7627 GB, free: 144.9 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004843/1.21, allocations: 1.507 MB / 0.7641 GB, free: 143.4 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004931/1.21, allocations: 249.3 kB / 0.7644 GB, free: 143.2 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008573/1.219, allocations: 6.374 MB / 0.7706 GB, free: 137.2 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.892e-06/1.219, allocations: 0.5 kB / 0.7706 GB, free: 137.2 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00396/1.223, allocations: 2.865 MB / 0.7734 GB, free: 134.3 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004123/1.227, allocations: 0.8008 MB / 0.7742 GB, free: 133.5 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02611/1.253, allocations: 18.51 MB / 0.7923 GB, free: 114.9 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004737/1.258, allocations: 6.034 MB / 0.7982 GB, free: 108.9 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004514/1.262, allocations: 1.857 MB / 0.8 GB, free: 107 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008407/1.263, allocations: 331.4 kB / 0.8003 GB, free: 106.7 MB / 494.1 MB Notification: Performance of SimCode: time 7.42e-07/1.263, allocations: 0 / 0.8003 GB, free: 106.7 MB / 494.1 MB Notification: Performance of Templates: time 0.08278/1.346, allocations: 55.38 MB / 0.8544 GB, free: 51.6 MB / 494.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: