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.004207/0.004211, allocations: 99.52 kB / 15.73 MB, free: 6.035 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.249/1.249, allocations: 222.9 MB / 239.4 MB, free: 4.551 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.001323/0.001323, allocations: 188.4 kB / 289.7 MB, free: 2.27 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03345/0.03345, allocations: 8.809 MB / 348.7 MB, free: 4.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001394/0.001394, allocations: 83.88 kB / 463.9 MB, free: 13.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08148/0.08288, allocations: 51.56 MB / 0.5034 GB, free: 9.484 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_MTPA): time 0.2011/0.2841, allocations: 27.66 MB / 0.5304 GB, free: 4.977 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01491/0.299, allocations: 8.022 MB / 0.5383 GB, free: 4.852 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005405/0.3044, allocations: 207.8 kB / 0.5384 GB, free: 4.852 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01481/0.3193, allocations: 7.916 MB / 0.5462 GB, free: 3.672 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007507/0.3268, allocations: 2.695 MB / 0.5488 GB, free: 2.902 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004195/0.331, allocations: 1.828 MB / 0.5506 GB, free: 2.711 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009947/0.341, allocations: 9.68 MB / 0.56 GB, free: 14.64 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02334/0.3644, allocations: 21.19 MB / 0.5807 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006748/0.3711, allocations: 5.251 MB / 0.5859 GB, free: 11.45 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00774/0.3789, allocations: 5.919 MB / 0.5917 GB, free: 5.68 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002405/0.3813, allocations: 1.516 MB / 0.5931 GB, free: 4.164 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003659/0.385, allocations: 1.875 MB / 0.595 GB, free: 2.301 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002271/0.3873, allocations: 2.939 MB / 0.5978 GB, free: 15.4 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006029/0.3933, allocations: 5.729 MB / 0.6034 GB, free: 9.691 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0179/0.4112, allocations: 20.32 MB / 0.6233 GB, free: 5.703 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.4113, allocations: 0 / 0.6233 GB, free: 5.703 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.4113, allocations: 4 kB / 0.6233 GB, free: 5.699 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003787/0.4117, allocations: 3.938 kB / 0.6233 GB, free: 5.695 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.02888/0.4405, allocations: 11.79 MB / 0.6348 GB, free: 9.883 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.76e-05/0.4406, allocations: 12.03 kB / 0.6348 GB, free: 9.871 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02881/0.4694, allocations: 5.639 MB / 0.6403 GB, free: 4.281 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01075/0.4802, allocations: 6.2 MB / 0.6464 GB, free: 14.07 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004666/0.4807, allocations: 0.6915 MB / 0.647 GB, free: 13.38 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002227/0.4829, allocations: 0.9064 MB / 0.6479 GB, free: 12.48 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0256/0.5085, allocations: 14.86 MB / 0.6624 GB, free: 13.61 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001922/0.5088, allocations: 11.89 kB / 0.6625 GB, free: 13.6 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009231/0.5097, allocations: 387.7 kB / 0.6628 GB, free: 13.23 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004046/0.5101, allocations: 0.5035 MB / 0.6633 GB, free: 12.72 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02241/0.5325, allocations: 13.58 MB / 0.6766 GB, free: 15.13 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0663/0.5989, allocations: 46.23 MB / 0.7217 GB, free: 96 kB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3559/0.9548, allocations: 28.29 MB / 0.7494 GB, free: 121.9 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00439/0.9592, allocations: 3.032 MB / 0.7523 GB, free: 121.9 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003491/0.9596, allocations: 235 kB / 0.7525 GB, free: 121.7 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.771e-05/0.9597, allocations: 75.56 kB / 0.7526 GB, free: 121.6 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=375): time 5.28e-06/0.9597, allocations: 0 / 0.7526 GB, free: 121.6 MB / 0.5138 GB Notification: Performance of matching and sorting (n=382): time 0.02756/0.9872, allocations: 14.74 MB / 0.767 GB, free: 117.6 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.807e-05/0.9873, allocations: 93.94 kB / 0.7671 GB, free: 117.5 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005096/0.9924, allocations: 3.489 MB / 0.7705 GB, free: 116.3 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0004129/0.9929, allocations: 88.17 kB / 0.7706 GB, free: 116.2 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.001975/0.9948, allocations: 4.092 MB / 0.7746 GB, free: 113.6 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001039/0.9959, allocations: 1.375 MB / 0.7759 GB, free: 112.5 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00176/0.9977, allocations: 1.15 MB / 0.7771 GB, free: 112 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 3.486e-05/0.9977, allocations: 301.1 kB / 0.7773 GB, free: 111.7 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003063/1.001, allocations: 2.552 MB / 0.7798 GB, free: 110.7 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004082/1.005, allocations: 5.015 MB / 0.7847 GB, free: 106.6 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007155/1.012, allocations: 8.217 MB / 0.7928 GB, free: 100.7 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.537e-05/1.012, allocations: 23.47 kB / 0.7928 GB, free: 100.7 MB / 0.5138 GB Notification: Performance of matching and sorting (n=755) (initialization): time 0.01179/1.024, allocations: 8.516 MB / 0.8011 GB, free: 97 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001064/1.024, allocations: 40 kB / 0.8011 GB, free: 96.96 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001297/1.024, allocations: 84 kB / 0.8012 GB, free: 96.88 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002145/1.026, allocations: 0.8485 MB / 0.802 GB, free: 96.22 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004105/1.03, allocations: 1.34 MB / 0.8034 GB, free: 95.06 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008494/1.039, allocations: 7.68 MB / 0.8109 GB, free: 87.66 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004045/1.043, allocations: 328.4 kB / 0.8112 GB, free: 87.34 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008411/1.044, allocations: 300 kB / 0.8115 GB, free: 87.05 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.005146/1.049, allocations: 3.478 MB / 0.8148 GB, free: 83.56 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001183/1.05, allocations: 409.4 kB / 0.8152 GB, free: 83.16 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008898/1.059, allocations: 5.862 MB / 0.821 GB, free: 77.26 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-05/1.059, allocations: 36 kB / 0.821 GB, free: 77.23 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.021e-05/1.059, allocations: 8 kB / 0.821 GB, free: 77.22 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.6e-05/1.059, allocations: 19.92 kB / 0.821 GB, free: 77.2 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02199/1.081, allocations: 14.5 MB / 0.8352 GB, free: 62.66 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.444e-05/1.081, allocations: 4 kB / 0.8352 GB, free: 62.66 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002331/1.084, allocations: 0.667 MB / 0.8358 GB, free: 61.99 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001756/1.085, allocations: 0.7095 MB / 0.8365 GB, free: 61.28 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003/1.086, allocations: 83.98 kB / 0.8366 GB, free: 61.2 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007239/1.093, allocations: 6.703 MB / 0.8432 GB, free: 54.35 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.6e-06/1.093, allocations: 15.88 kB / 0.8432 GB, free: 54.33 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01053/1.104, allocations: 8.568 MB / 0.8515 GB, free: 45.64 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001773/1.105, allocations: 0.8788 MB / 0.8524 GB, free: 44.74 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008387/1.106, allocations: 84.44 kB / 0.8525 GB, free: 44.66 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002081/1.108, allocations: 179.8 kB / 0.8527 GB, free: 44.49 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004658/1.109, allocations: 258.6 kB / 0.8529 GB, free: 44.23 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002253/1.109, allocations: 116 kB / 0.853 GB, free: 44.12 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.003421/1.112, allocations: 2.326 MB / 0.8553 GB, free: 41.8 MB / 0.5138 GB Notification: Performance of sort global known variables: time 1.5e-07/1.112, allocations: 0 / 0.8553 GB, free: 41.8 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.005155/1.118, allocations: 1.512 MB / 0.8568 GB, free: 40.29 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.0005723/1.118, allocations: 254.3 kB / 0.857 GB, free: 40.04 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.008052/1.126, allocations: 6.432 MB / 0.8633 GB, free: 33.61 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 5.791e-06/1.126, allocations: 0 / 0.8633 GB, free: 33.61 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.003427/1.13, allocations: 2.888 MB / 0.8661 GB, free: 30.71 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004591/1.134, allocations: 0.8899 MB / 0.867 GB, free: 29.86 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02212/1.156, allocations: 15.59 MB / 0.8822 GB, free: 14.16 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004664/1.161, allocations: 5.89 MB / 0.888 GB, free: 8.223 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.003809/1.165, allocations: 1.868 MB / 0.8898 GB, free: 6.348 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008753/1.166, allocations: 335.4 kB / 0.8901 GB, free: 6.02 MB / 0.5138 GB Notification: Performance of SimCode: time 8.31e-07/1.166, allocations: 4 kB / 0.8901 GB, free: 6.016 MB / 0.5138 GB Notification: Performance of Templates: time 0.2912/1.457, allocations: 57.57 MB / 0.9463 GB, free: 162.2 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)