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: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMR_MTPA,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMR_MTPA",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMR_MTPA,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMR_MTPA",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008107/0.008107, allocations: 98.69 kB / 15.73 MB, free: 6.07 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.449/1.449, allocations: 222.9 MB / 239.4 MB, free: 4.516 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.001474/0.001474, allocations: 188.5 kB / 289.7 MB, free: 2.238 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 / 348.7 MB, free: 4.602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00175/0.00175, allocations: 75.88 kB / 463.4 MB, free: 13.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1093, allocations: 51.56 MB / 0.5029 GB, free: 9.969 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_MTPA): time 0.2659/0.3753, allocations: 27.67 MB / 0.5299 GB, free: 4.402 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01726/0.3926, allocations: 8.016 MB / 0.5378 GB, free: 4.277 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006572/0.3993, allocations: 212.8 kB / 0.538 GB, free: 4.277 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01806/0.4174, allocations: 7.973 MB / 0.5458 GB, free: 3.215 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01073/0.4281, allocations: 2.739 MB / 0.5484 GB, free: 2.445 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006044/0.4342, allocations: 1.823 MB / 0.5502 GB, free: 2.254 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01481/0.449, allocations: 9.686 MB / 0.5597 GB, free: 14.18 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0376/0.4867, allocations: 21.2 MB / 0.5804 GB, free: 400 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009401/0.4961, allocations: 5.264 MB / 0.5855 GB, free: 11.21 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009869/0.506, allocations: 5.922 MB / 0.5913 GB, free: 5.445 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004076/0.5102, allocations: 1.516 MB / 0.5928 GB, free: 3.93 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006446/0.5166, allocations: 1.875 MB / 0.5946 GB, free: 2.066 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005287/0.522, allocations: 2.947 MB / 0.5975 GB, free: 15.18 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01114/0.5331, allocations: 5.722 MB / 0.6031 GB, free: 9.469 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02782/0.561, allocations: 20.32 MB / 0.6229 GB, free: 5.484 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.227e-06/0.5611, allocations: 0 / 0.6229 GB, free: 5.484 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.5611, allocations: 0 / 0.6229 GB, free: 5.484 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006298/0.5617, allocations: 0 / 0.6229 GB, free: 5.484 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.03673/0.5985, allocations: 11.81 MB / 0.6345 GB, free: 9.656 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.06e-05/0.5985, allocations: 12.03 kB / 0.6345 GB, free: 9.645 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004981/0.6035, allocations: 1.323 MB / 0.6358 GB, free: 8.32 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04959/0.6531, allocations: 5.634 MB / 0.6413 GB, free: 2.738 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01594/0.6691, allocations: 6.204 MB / 0.6473 GB, free: 12.52 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000704/0.6699, allocations: 0.6894 MB / 0.648 GB, free: 11.84 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004382/0.6743, allocations: 0.9099 MB / 0.6489 GB, free: 10.93 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0413/0.7156, allocations: 14.86 MB / 0.6634 GB, free: 12.06 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003285/0.716, allocations: 15.95 kB / 0.6634 GB, free: 12.04 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002452/0.7185, allocations: 385.9 kB / 0.6638 GB, free: 11.68 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005144/0.719, allocations: 0.5113 MB / 0.6643 GB, free: 11.16 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02799/0.747, allocations: 13.58 MB / 0.6775 GB, free: 13.58 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5489/1.296, allocations: 46.21 MB / 0.7227 GB, free: 135.7 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01879/1.315, allocations: 28.3 MB / 0.7503 GB, free: 110.6 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00531/1.32, allocations: 3.028 MB / 0.7533 GB, free: 110.6 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004019/1.321, allocations: 234.4 kB / 0.7535 GB, free: 110.4 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.055e-05/1.321, allocations: 76.44 kB / 0.7536 GB, free: 110.4 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=375): time 6.522e-06/1.321, allocations: 0 / 0.7536 GB, free: 110.4 MB / 0.5138 GB Notification: Performance of matching and sorting (n=382): time 0.03171/1.352, allocations: 14.75 MB / 0.768 GB, free: 109 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.201e-05/1.352, allocations: 94.03 kB / 0.768 GB, free: 108.9 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004601/1.357, allocations: 3.489 MB / 0.7715 GB, free: 108.6 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0004603/1.358, allocations: 83.02 kB / 0.7715 GB, free: 108.6 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.001764/1.359, allocations: 4.097 MB / 0.7755 GB, free: 106.2 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009857/1.36, allocations: 1.373 MB / 0.7769 GB, free: 105.1 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001308/1.362, allocations: 1.148 MB / 0.778 GB, free: 104.6 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 3.653e-05/1.362, allocations: 305.1 kB / 0.7783 GB, free: 104.3 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003223/1.365, allocations: 2.559 MB / 0.7808 GB, free: 103.3 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004051/1.369, allocations: 5.009 MB / 0.7857 GB, free: 99.14 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007964/1.377, allocations: 8.219 MB / 0.7937 GB, free: 93.27 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.813e-05/1.377, allocations: 22 kB / 0.7937 GB, free: 93.27 MB / 0.5138 GB Notification: Performance of matching and sorting (n=755) (initialization): time 0.01265/1.39, allocations: 8.513 MB / 0.802 GB, free: 89.85 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 5.644e-05/1.39, allocations: 41.44 kB / 0.8021 GB, free: 89.85 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001193/1.39, allocations: 82.44 kB / 0.8022 GB, free: 89.85 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002146/1.392, allocations: 0.8524 MB / 0.803 GB, free: 89.68 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004085/1.396, allocations: 1.342 MB / 0.8043 GB, free: 89.52 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008848/1.405, allocations: 7.672 MB / 0.8118 GB, free: 84.62 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004296/1.409, allocations: 323.9 kB / 0.8121 GB, free: 84.46 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007552/1.41, allocations: 301.6 kB / 0.8124 GB, free: 84.25 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.005615/1.416, allocations: 3.482 MB / 0.8158 GB, free: 80.76 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001109/1.417, allocations: 409.3 kB / 0.8162 GB, free: 80.36 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00823/1.425, allocations: 5.85 MB / 0.8219 GB, free: 74.47 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.319e-05/1.425, allocations: 43.98 kB / 0.8219 GB, free: 74.43 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.584e-05/1.425, allocations: 10.62 kB / 0.8219 GB, free: 74.42 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.48e-05/1.425, allocations: 23.86 kB / 0.822 GB, free: 74.4 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.022/1.447, allocations: 14.5 MB / 0.8361 GB, free: 59.86 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.67e-05/1.447, allocations: 4 kB / 0.8361 GB, free: 59.86 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002475/1.45, allocations: 0.6709 MB / 0.8368 GB, free: 59.18 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001868/1.452, allocations: 0.7059 MB / 0.8375 GB, free: 58.48 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002766/1.452, allocations: 91.91 kB / 0.8376 GB, free: 58.39 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007496/1.459, allocations: 6.7 MB / 0.8441 GB, free: 51.54 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/1.46, allocations: 4 kB / 0.8441 GB, free: 51.54 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01118/1.471, allocations: 8.583 MB / 0.8525 GB, free: 42.83 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00204/1.473, allocations: 0.8731 MB / 0.8533 GB, free: 41.94 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000589/1.473, allocations: 77.45 kB / 0.8534 GB, free: 41.86 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001766/1.475, allocations: 175.8 kB / 0.8536 GB, free: 41.69 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004636/1.476, allocations: 262.7 kB / 0.8538 GB, free: 41.43 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001985/1.476, allocations: 108 kB / 0.8539 GB, free: 41.33 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.002862/1.479, allocations: 2.338 MB / 0.8562 GB, free: 39 MB / 0.5138 GB Notification: Performance of sort global known variables: time 2.41e-07/1.479, allocations: 0 / 0.8562 GB, free: 39 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.005421/1.484, allocations: 1.508 MB / 0.8577 GB, free: 37.49 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.011/1.495, allocations: 9.284 MB / 0.8668 GB, free: 28.08 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.009131/1.504, allocations: 6.44 MB / 0.873 GB, free: 21.64 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.066e-05/1.504, allocations: 0 / 0.873 GB, free: 21.64 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.004195/1.509, allocations: 2.886 MB / 0.8759 GB, free: 18.75 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004718/1.513, allocations: 0.9046 MB / 0.8768 GB, free: 17.87 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08361/1.597, allocations: 51.36 MB / 0.9269 GB, free: 11.46 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007484/1.605, allocations: 5.89 MB / 0.9327 GB, free: 5.527 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.004953/1.61, allocations: 1.852 MB / 0.9345 GB, free: 3.668 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004658/1.614, allocations: 3.085 MB / 0.9375 GB, free: 0.5859 MB / 0.5607 GB Notification: Performance of SimCode: time 1.272e-06/1.614, allocations: 4 kB / 0.9375 GB, free: 0.582 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3982/2.012, allocations: 115.7 MB / 1.05 GB, free: 103.4 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.04/21.05, allocations: 0 / 1.05 GB, free: 103.4 MB / 0.5607 GB (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 & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 HanserModelica_HanserModelica_SynchronousMachines_SMR_MTPA.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe 2>&1)