Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.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_VCurve3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3",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.005532/0.005532, allocations: 103 kB / 15.74 MB, free: 6.496 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.366/1.366, allocations: 222.9 MB / 239.4 MB, free: 4.523 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.001446/0.001446, allocations: 184.5 kB / 289.7 MB, free: 2.25 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03503/0.03503, allocations: 8.802 MB / 348.7 MB, free: 4.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001568/0.001568, allocations: 83.88 kB / 463.5 MB, free: 13.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.1065, allocations: 51.56 MB / 0.503 GB, free: 9.949 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve3): time 0.02932/0.1359, allocations: 25.44 MB / 0.5278 GB, free: 396 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2916/0.4275, allocations: 7.936 MB / 0.5356 GB, free: 4.34 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007122/0.4347, allocations: 169.8 kB / 0.5357 GB, free: 4.34 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01953/0.4543, allocations: 7.691 MB / 0.5432 GB, free: 3.48 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01378/0.4681, allocations: 3.101 MB / 0.5463 GB, free: 2.625 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008009/0.4761, allocations: 2.016 MB / 0.5482 GB, free: 2.43 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01904/0.4952, allocations: 9.226 MB / 0.5572 GB, free: 15.01 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03439/0.5297, allocations: 17.27 MB / 0.5741 GB, free: 5.777 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01162/0.5414, allocations: 4.762 MB / 0.5788 GB, free: 1.129 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01087/0.5523, allocations: 5.243 MB / 0.5839 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004723/0.5571, allocations: 1.355 MB / 0.5852 GB, free: 10.68 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007113/0.5642, allocations: 1.72 MB / 0.5869 GB, free: 8.969 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005296/0.5696, allocations: 2.667 MB / 0.5895 GB, free: 6.336 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01339/0.583, allocations: 5.083 MB / 0.5944 GB, free: 1.273 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03096/0.614, allocations: 18.2 MB / 0.6122 GB, free: 15.39 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.564e-06/0.6141, allocations: 0 / 0.6122 GB, free: 15.39 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.6141, allocations: 0 / 0.6122 GB, free: 15.39 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0007324/0.6148, allocations: 0 / 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.03782/0.6527, allocations: 10.95 MB / 0.6229 GB, free: 4.426 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.593e-05/0.6528, allocations: 8.031 kB / 0.6229 GB, free: 4.418 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005634/0.6584, allocations: 1.267 MB / 0.6242 GB, free: 3.152 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03366/0.6921, allocations: 5.712 MB / 0.6297 GB, free: 13.5 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01653/0.7087, allocations: 5.827 MB / 0.6354 GB, free: 7.652 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007121/0.7094, allocations: 0.5837 MB / 0.636 GB, free: 7.082 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00426/0.7137, allocations: 0.7643 MB / 0.6367 GB, free: 6.328 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03931/0.7531, allocations: 12.77 MB / 0.6492 GB, free: 9.543 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003629/0.7535, allocations: 15.95 kB / 0.6492 GB, free: 9.527 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003211/0.7567, allocations: 320.8 kB / 0.6495 GB, free: 9.227 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006738/0.7574, allocations: 0.5006 MB / 0.65 GB, free: 8.723 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02845/0.7859, allocations: 12.26 MB / 0.662 GB, free: 12.45 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08571/0.8716, allocations: 43.36 MB / 0.7043 GB, free: 8 kB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02685/0.8985, allocations: 25.19 MB / 0.7289 GB, free: 3.906 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005479/0.9041, allocations: 2.968 MB / 0.7318 GB, free: 0.9336 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005343/0.9047, allocations: 244.3 kB / 0.7321 GB, free: 0.668 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.4865/1.391, allocations: 2.572 MB / 0.7346 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=391): time 1.352e-05/1.391, allocations: 2.438 kB / 0.7346 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=397): time 0.04793/1.439, allocations: 18.42 MB / 0.7526 GB, free: 160.6 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001328/1.439, allocations: 357.4 kB / 0.7529 GB, free: 160.2 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007641/1.447, allocations: 3.525 MB / 0.7563 GB, free: 158.9 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007768/1.448, allocations: 95.48 kB / 0.7564 GB, free: 158.8 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002502/1.45, allocations: 3.499 MB / 0.7599 GB, free: 156.6 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001812/1.452, allocations: 1.419 MB / 0.7612 GB, free: 155.5 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002596/1.455, allocations: 1.086 MB / 0.7623 GB, free: 155 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 6.23e-05/1.455, allocations: 305.1 kB / 0.7626 GB, free: 154.7 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004452/1.459, allocations: 2.554 MB / 0.7651 GB, free: 153.7 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005915/1.465, allocations: 4.513 MB / 0.7695 GB, free: 150.3 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01151/1.477, allocations: 7.449 MB / 0.7768 GB, free: 145.2 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00013/1.477, allocations: 15.88 kB / 0.7768 GB, free: 145.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01909/1.496, allocations: 8.295 MB / 0.7849 GB, free: 141.8 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001571/1.496, allocations: 59.69 kB / 0.7849 GB, free: 141.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001553/1.496, allocations: 58.41 kB / 0.785 GB, free: 141.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003058/1.5, allocations: 1.006 MB / 0.786 GB, free: 141.6 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005067/1.505, allocations: 1.256 MB / 0.7872 GB, free: 141.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0145/1.519, allocations: 8.816 MB / 0.7958 GB, free: 136 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008309/1.528, allocations: 359.7 kB / 0.7962 GB, free: 135.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00154/1.529, allocations: 267.6 kB / 0.7964 GB, free: 135.5 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.007543/1.537, allocations: 2.91 MB / 0.7993 GB, free: 132.9 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001496/1.538, allocations: 401.4 kB / 0.7996 GB, free: 132.5 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009788/1.548, allocations: 6.174 MB / 0.8057 GB, free: 126.3 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.455e-05/1.548, allocations: 40 kB / 0.8057 GB, free: 126.2 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.508e-05/1.548, allocations: 14.19 kB / 0.8057 GB, free: 126.2 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.713e-05/1.548, allocations: 24.42 kB / 0.8057 GB, free: 126.2 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02482/1.573, allocations: 14.65 MB / 0.82 GB, free: 111.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.791e-05/1.573, allocations: 8.594 kB / 0.8201 GB, free: 111.5 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002582/1.576, allocations: 0.6826 MB / 0.8207 GB, free: 110.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002246/1.578, allocations: 0.873 MB / 0.8216 GB, free: 109.9 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003946/1.578, allocations: 95.59 kB / 0.8217 GB, free: 109.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008945/1.587, allocations: 7.755 MB / 0.8292 GB, free: 101.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/1.587, allocations: 8 kB / 0.8292 GB, free: 101.9 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01193/1.599, allocations: 8.791 MB / 0.8378 GB, free: 93 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002526/1.602, allocations: 0.9317 MB / 0.8387 GB, free: 92.05 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009664/1.603, allocations: 76 kB / 0.8388 GB, free: 91.97 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002201/1.605, allocations: 195.8 kB / 0.839 GB, free: 91.78 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005377/1.606, allocations: 279.1 kB / 0.8393 GB, free: 91.51 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002201/1.606, allocations: 112 kB / 0.8394 GB, free: 91.4 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00327/1.609, allocations: 2.367 MB / 0.8417 GB, free: 89.04 MB / 0.5294 GB Notification: Performance of sort global known variables: time 5.01e-07/1.609, allocations: 0 / 0.8417 GB, free: 89.04 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006535/1.616, allocations: 1.453 MB / 0.8431 GB, free: 87.59 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.0131/1.629, allocations: 9.513 MB / 0.8524 GB, free: 77.96 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01028/1.639, allocations: 6.49 MB / 0.8587 GB, free: 71.44 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.07e-05/1.639, allocations: 1.875 kB / 0.8587 GB, free: 71.44 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005354/1.645, allocations: 3.08 MB / 0.8617 GB, free: 68.33 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00623/1.651, allocations: 0.8303 MB / 0.8626 GB, free: 67.55 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07977/1.731, allocations: 48.23 MB / 0.9097 GB, free: 17.21 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006709/1.737, allocations: 5.005 MB / 0.9145 GB, free: 12.16 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004606/1.742, allocations: 1.59 MB / 0.9161 GB, free: 10.57 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00465/1.747, allocations: 2.753 MB / 0.9188 GB, free: 7.816 MB / 0.5294 GB Notification: Performance of SimCode: time 1.363e-06/1.747, allocations: 0 / 0.9188 GB, free: 7.816 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4133/2.16, allocations: 111.7 MB / 1.028 GB, free: 107.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.01/22.17, allocations: 6.828 kB / 1.028 GB, free: 107.9 MB / 0.545 GB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3_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_VCurve3.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe 2>&1)