Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.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.SMEE_VCurve2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve2",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.009379/0.009379, allocations: 105 kB / 15.74 MB, free: 6.02 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.435/1.435, 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.001425/0.001425, allocations: 196.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.03532/0.03532, allocations: 8.781 MB / 348.7 MB, free: 4.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001856/0.001856, allocations: 83.88 kB / 463.5 MB, free: 13.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.115, allocations: 51.56 MB / 0.503 GB, free: 9.934 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve2): time 0.02595/0.141, allocations: 25.44 MB / 0.5278 GB, free: 384 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2371/0.3781, allocations: 7.936 MB / 0.5356 GB, free: 4.383 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006328/0.3845, allocations: 175.1 kB / 0.5357 GB, free: 4.383 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01798/0.4025, allocations: 7.684 MB / 0.5432 GB, free: 3.527 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01083/0.4133, allocations: 3.103 MB / 0.5463 GB, free: 2.672 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006504/0.4199, allocations: 2.017 MB / 0.5482 GB, free: 2.473 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01432/0.4342, allocations: 9.228 MB / 0.5572 GB, free: 15.01 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0331/0.4674, allocations: 17.27 MB / 0.5741 GB, free: 5.773 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0117/0.4791, allocations: 4.76 MB / 0.5788 GB, free: 1.129 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009712/0.4889, allocations: 5.236 MB / 0.5839 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004475/0.4934, allocations: 1.352 MB / 0.5852 GB, free: 10.69 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005865/0.4993, allocations: 1.726 MB / 0.5869 GB, free: 8.973 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004498/0.5038, allocations: 2.663 MB / 0.5895 GB, free: 6.344 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01119/0.5151, allocations: 5.087 MB / 0.5944 GB, free: 1.277 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02503/0.5401, allocations: 18.2 MB / 0.6122 GB, free: 15.39 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.955e-06/0.5402, allocations: 0 / 0.6122 GB, free: 15.39 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.5402, allocations: 3.938 kB / 0.6122 GB, free: 15.39 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.00054/0.5408, allocations: 4 kB / 0.6122 GB, free: 15.39 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: 2183 * Number of variables: 2183 Notification: Performance of Generate backend data structure: time 0.03406/0.5748, allocations: 10.94 MB / 0.6229 GB, free: 4.43 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.022e-05/0.5749, allocations: 8.031 kB / 0.6229 GB, free: 4.422 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004243/0.5792, allocations: 1.265 MB / 0.6242 GB, free: 3.16 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0335/0.6127, allocations: 5.724 MB / 0.6297 GB, free: 13.5 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01397/0.6267, allocations: 5.827 MB / 0.6354 GB, free: 7.648 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005394/0.6273, allocations: 0.5811 MB / 0.636 GB, free: 7.078 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002847/0.6301, allocations: 0.7608 MB / 0.6367 GB, free: 6.328 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03435/0.6645, allocations: 12.77 MB / 0.6492 GB, free: 9.543 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000354/0.6649, allocations: 15.88 kB / 0.6492 GB, free: 9.527 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00256/0.6675, allocations: 327.3 kB / 0.6495 GB, free: 9.219 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005773/0.6681, allocations: 0.4928 MB / 0.65 GB, free: 8.723 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02725/0.6953, allocations: 12.25 MB / 0.662 GB, free: 12.45 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08386/0.7792, allocations: 43.36 MB / 0.7043 GB, free: 8 kB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02625/0.8055, allocations: 25.18 MB / 0.7289 GB, free: 3.914 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005359/0.8109, allocations: 2.971 MB / 0.7318 GB, free: 0.9375 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000426/0.8114, allocations: 250.5 kB / 0.7321 GB, free: 0.668 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.4656/1.277, allocations: 2.571 MB / 0.7346 GB, free: 164.5 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=391): time 9.468e-06/1.277, allocations: 0.5938 kB / 0.7346 GB, free: 164.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=397): time 0.04281/1.32, allocations: 18.42 MB / 0.7526 GB, free: 160.8 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001072/1.32, allocations: 354.1 kB / 0.7529 GB, free: 160.4 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00612/1.326, allocations: 3.527 MB / 0.7563 GB, free: 159.1 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0006551/1.327, allocations: 91.61 kB / 0.7564 GB, free: 159 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002267/1.329, allocations: 3.5 MB / 0.7599 GB, free: 156.8 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001517/1.331, allocations: 1.413 MB / 0.7612 GB, free: 155.7 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002051/1.333, allocations: 1.096 MB / 0.7623 GB, free: 155.2 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.528e-05/1.333, allocations: 305.1 kB / 0.7626 GB, free: 154.9 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003818/1.337, allocations: 2.551 MB / 0.7651 GB, free: 153.9 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005301/1.342, allocations: 4.509 MB / 0.7695 GB, free: 150.5 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009087/1.351, allocations: 7.452 MB / 0.7768 GB, free: 145.4 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.771e-05/1.351, allocations: 19.81 kB / 0.7768 GB, free: 145.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=721) (initialization): time 0.0155/1.367, allocations: 8.294 MB / 0.7849 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.505e-05/1.367, allocations: 66.61 kB / 0.7849 GB, free: 142 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001072/1.367, allocations: 60.34 kB / 0.785 GB, free: 142 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002803/1.37, allocations: 0.9984 MB / 0.786 GB, free: 141.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004734/1.374, allocations: 1.26 MB / 0.7872 GB, free: 141.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01173/1.386, allocations: 8.811 MB / 0.7958 GB, free: 136 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005225/1.392, allocations: 366.7 kB / 0.7962 GB, free: 135.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001089/1.393, allocations: 267.5 kB / 0.7964 GB, free: 135.4 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 275 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (664): * Single equations (assignments): 662 * Array equations: 0 * Algorithm blocks: 1 * 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 {(10,48,52.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005966/1.399, allocations: 2.897 MB / 0.7992 GB, free: 132.9 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001391/1.4, allocations: 406.9 kB / 0.7996 GB, free: 132.5 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01136/1.411, allocations: 6.181 MB / 0.8057 GB, free: 126.3 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.566e-05/1.412, allocations: 42.19 kB / 0.8057 GB, free: 126.2 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.098e-05/1.412, allocations: 12 kB / 0.8057 GB, free: 126.2 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.421e-05/1.412, allocations: 19.92 kB / 0.8057 GB, free: 126.2 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02937/1.441, allocations: 14.65 MB / 0.8201 GB, free: 111.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.103e-05/1.441, allocations: 4 kB / 0.8201 GB, free: 111.5 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002983/1.444, allocations: 0.6801 MB / 0.8207 GB, free: 110.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002486/1.447, allocations: 0.8813 MB / 0.8216 GB, free: 109.9 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005162/1.447, allocations: 87.98 kB / 0.8217 GB, free: 109.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009365/1.456, allocations: 7.756 MB / 0.8292 GB, free: 101.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.149e-06/1.457, allocations: 8.031 kB / 0.8292 GB, free: 101.9 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01241/1.469, allocations: 8.791 MB / 0.8378 GB, free: 93 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002532/1.472, allocations: 0.9278 MB / 0.8387 GB, free: 92.05 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001039/1.473, allocations: 79.98 kB / 0.8388 GB, free: 91.98 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002663/1.475, allocations: 199.8 kB / 0.839 GB, free: 91.78 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006497/1.476, allocations: 271.1 kB / 0.8393 GB, free: 91.52 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002747/1.476, allocations: 112.9 kB / 0.8394 GB, free: 91.41 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003513/1.48, allocations: 2.359 MB / 0.8417 GB, free: 89.05 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.8e-07/1.48, allocations: 4 kB / 0.8417 GB, free: 89.05 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006569/1.486, allocations: 1.453 MB / 0.8431 GB, free: 87.6 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 3 (smee.inertiaRotor.w,smee.rotorCage.port_p.reference.gamma,constantTorque.phi) * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 1 ($whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (371): * Single equations (assignments): 369 * Array equations: 0 * Algorithm blocks: 1 * 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 {(10,46,50.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0145/1.501, allocations: 9.515 MB / 0.8524 GB, free: 77.96 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01142/1.512, allocations: 6.496 MB / 0.8587 GB, free: 71.45 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.839e-06/1.512, allocations: 4.062 kB / 0.8587 GB, free: 71.45 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005826/1.518, allocations: 3.078 MB / 0.8617 GB, free: 68.34 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006135/1.524, allocations: 0.8133 MB / 0.8625 GB, free: 67.56 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08497/1.609, allocations: 48.24 MB / 0.9096 GB, free: 17.21 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0075/1.617, allocations: 5.008 MB / 0.9145 GB, free: 12.16 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004969/1.622, allocations: 1.586 MB / 0.9161 GB, free: 10.57 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005169/1.627, allocations: 2.753 MB / 0.9188 GB, free: 7.82 MB / 0.5294 GB Notification: Performance of SimCode: time 1.783e-06/1.627, allocations: 4 kB / 0.9188 GB, free: 7.816 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4413/2.069, allocations: 111.7 MB / 1.028 GB, free: 107.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.48/22.55, allocations: 14.27 kB / 1.028 GB, free: 107.3 MB / 0.545 GB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2_res.csv --start-time 0 --stop-time 200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve2.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe 2>&1)