Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.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_DOL,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_DOL,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_DOL",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.007085/0.007086, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.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.001604/0.001604, allocations: 184.5 kB / 289.7 MB, free: 2.246 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03618/0.03618, allocations: 8.798 MB / 348.7 MB, free: 4.602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001717/0.001717, allocations: 83.88 kB / 463.4 MB, free: 13.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1272/0.1289, allocations: 51.56 MB / 0.5029 GB, free: 9.949 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_DOL): time 0.01982/0.1488, allocations: 16.71 MB / 0.5192 GB, free: 9.16 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01292/0.1618, allocations: 5.453 MB / 0.5246 GB, free: 3.691 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004133/0.1659, allocations: 99.62 kB / 0.5247 GB, free: 3.594 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004631/0.1706, allocations: 1.312 MB / 0.5259 GB, free: 2.27 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/SynchronousMachines/SMEE_DOL.mo:12:3-13:30:writable] Warning: Conditional component 'ir' is used in a non-connect context. Notification: Performance of NFTyping.typeBindings: time 0.007112/0.1778, allocations: 1.662 MB / 0.5276 GB, free: 0.5977 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2837/0.4615, allocations: 1.032 MB / 0.5286 GB, free: 5.586 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007576/0.4691, allocations: 5.012 MB / 0.5335 GB, free: 5.582 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005928/0.4751, allocations: 4.311 MB / 0.5377 GB, free: 4.734 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005042/0.4802, allocations: 2.286 MB / 0.5399 GB, free: 4.414 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006286/0.4865, allocations: 2.645 MB / 0.5425 GB, free: 3.953 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003065/0.4896, allocations: 0.619 MB / 0.5431 GB, free: 3.953 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004442/0.494, allocations: 0.8407 MB / 0.5439 GB, free: 3.953 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00269/0.4968, allocations: 1.434 MB / 0.5453 GB, free: 3.789 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006387/0.5032, allocations: 2.652 MB / 0.5479 GB, free: 3.125 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01239/0.5156, allocations: 8.144 MB / 0.5559 GB, free: 0.6328 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.318e-06/0.5156, allocations: 0 / 0.5559 GB, free: 0.6328 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.5156, allocations: 4.75 kB / 0.5559 GB, free: 0.6328 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003236/0.516, allocations: 0 / 0.5559 GB, free: 0.6328 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: 1052 * Number of variables: 1052 Notification: Performance of Generate backend data structure: time 0.02089/0.5369, allocations: 5.517 MB / 0.5613 GB, free: 12.93 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.014e-05/0.537, allocations: 9.812 kB / 0.5613 GB, free: 12.93 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001619/0.5386, allocations: 0.5576 MB / 0.5618 GB, free: 12.51 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00595/0.5445, allocations: 1.011 MB / 0.5628 GB, free: 12.02 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008826/0.5534, allocations: 3.046 MB / 0.5658 GB, free: 9.984 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003193/0.5538, allocations: 305 kB / 0.5661 GB, free: 9.848 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001391/0.5552, allocations: 397.3 kB / 0.5664 GB, free: 9.715 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01214/0.5673, allocations: 5.227 MB / 0.5715 GB, free: 5.645 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-05/0.5675, allocations: 7.953 kB / 0.5716 GB, free: 5.637 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004103/0.5679, allocations: 167.8 kB / 0.5717 GB, free: 5.477 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001726/0.5681, allocations: 172 kB / 0.5719 GB, free: 5.305 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009449/0.5775, allocations: 4.462 MB / 0.5762 GB, free: 0.832 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02853/0.6061, allocations: 16.65 MB / 0.5925 GB, free: 64 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008079/0.6142, allocations: 8.436 MB / 0.6007 GB, free: 6.602 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002983/0.6172, allocations: 1.694 MB / 0.6024 GB, free: 4.91 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008951/0.6262, allocations: 4.994 MB / 0.6073 GB, free: 15.79 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.048e-05/0.6263, allocations: 55.44 kB / 0.6073 GB, free: 15.73 MB / 430.1 MB Notification: Performance of pre-optimization done (n=158): time 6.051e-06/0.6263, allocations: 3.984 kB / 0.6073 GB, free: 15.73 MB / 430.1 MB Notification: Performance of matching and sorting (n=161): time 0.01394/0.6403, allocations: 6.204 MB / 0.6134 GB, free: 9.387 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.583e-05/0.6403, allocations: 72.72 kB / 0.6134 GB, free: 9.305 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004128/0.6445, allocations: 2.294 MB / 0.6157 GB, free: 6.984 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000275/0.6448, allocations: 49.7 kB / 0.6157 GB, free: 6.93 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001421/0.6462, allocations: 1.898 MB / 0.6176 GB, free: 5.023 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006301/0.6468, allocations: 0.5743 MB / 0.6181 GB, free: 4.457 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000672/0.6475, allocations: 407.7 kB / 0.6185 GB, free: 4.051 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.872e-05/0.6476, allocations: 301.1 kB / 0.6188 GB, free: 3.754 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001421/0.6491, allocations: 0.8514 MB / 0.6197 GB, free: 2.898 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001828/0.6509, allocations: 1.569 MB / 0.6212 GB, free: 1.016 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00337/0.6543, allocations: 2.557 MB / 0.6237 GB, free: 14.23 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-05/0.6543, allocations: 8 kB / 0.6237 GB, free: 14.23 MB / 446.1 MB Notification: Performance of matching and sorting (n=276) (initialization): time 0.00504/0.6594, allocations: 2.909 MB / 0.6265 GB, free: 11.43 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.36e-05/0.6594, allocations: 12 kB / 0.6265 GB, free: 11.41 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.664e-05/0.6595, allocations: 24 kB / 0.6266 GB, free: 11.39 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003361/0.6598, allocations: 129.6 kB / 0.6267 GB, free: 11.26 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002004/0.6618, allocations: 0.5427 MB / 0.6272 GB, free: 10.75 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001892/0.6637, allocations: 2.011 MB / 0.6292 GB, free: 8.605 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002263/0.666, allocations: 115.9 kB / 0.6293 GB, free: 8.492 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002766/0.6663, allocations: 99.98 kB / 0.6294 GB, free: 8.395 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 103 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (270): * Single equations (assignments): 268 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002756/0.6691, allocations: 1.195 MB / 0.6306 GB, free: 7.223 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008093/0.6699, allocations: 258.4 kB / 0.6308 GB, free: 6.969 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005137/0.675, allocations: 2.462 MB / 0.6332 GB, free: 4.473 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.452e-05/0.6751, allocations: 20 kB / 0.6332 GB, free: 4.453 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.629e-05/0.6751, allocations: 4 kB / 0.6332 GB, free: 4.449 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.79e-05/0.6751, allocations: 7.969 kB / 0.6332 GB, free: 4.441 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01223/0.6873, allocations: 5.792 MB / 0.6389 GB, free: 14.58 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-05/0.6874, allocations: 0 / 0.6389 GB, free: 14.58 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001491/0.6889, allocations: 290 kB / 0.6392 GB, free: 14.31 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008299/0.6897, allocations: 311.7 kB / 0.6395 GB, free: 14 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001224/0.6899, allocations: 39.98 kB / 0.6395 GB, free: 13.96 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007656/0.6975, allocations: 6.988 MB / 0.6463 GB, free: 6.59 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.285e-05/0.6976, allocations: 3.984 kB / 0.6463 GB, free: 6.586 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006718/0.7043, allocations: 3.589 MB / 0.6498 GB, free: 2.918 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001585/0.7059, allocations: 0.507 MB / 0.6503 GB, free: 2.391 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008478/0.7068, allocations: 39.98 kB / 0.6504 GB, free: 2.352 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001756/0.7086, allocations: 83.86 kB / 0.6505 GB, free: 2.27 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003607/0.709, allocations: 117.3 kB / 0.6506 GB, free: 2.152 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001133/0.7091, allocations: 47.98 kB / 0.6506 GB, free: 2.105 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002643/0.7117, allocations: 1.552 MB / 0.6521 GB, free: 0.5391 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.7117, allocations: 0 / 0.6521 GB, free: 0.5391 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003337/0.7151, allocations: 0.6758 MB / 0.6528 GB, free: 15.86 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smee.excitation.electroMagneticConverter.Phi.re,mechanicalSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,5,100.0%), (1,8,100.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006257/0.7214, allocations: 4.194 MB / 0.6569 GB, free: 11.58 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004192/0.7256, allocations: 2.289 MB / 0.6591 GB, free: 9.262 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.749e-06/0.7256, allocations: 4 kB / 0.6591 GB, free: 9.258 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00231/0.7279, allocations: 1.452 MB / 0.6605 GB, free: 7.77 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003387/0.7313, allocations: 0.5974 MB / 0.6611 GB, free: 7.176 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04404/0.7754, allocations: 24.23 MB / 0.6848 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003519/0.7789, allocations: 2.661 MB / 0.6874 GB, free: 11.26 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.002236/0.7812, allocations: 0.5591 MB / 0.6879 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00221/0.7834, allocations: 1.479 MB / 0.6894 GB, free: 9.219 MB / 0.4981 GB Notification: Performance of SimCode: time 1.032e-06/0.7834, allocations: 0 / 0.6894 GB, free: 9.219 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3876/1.171, allocations: 59.58 MB / 0.7476 GB, free: 183.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.28/15.45, allocations: 7.531 kB / 0.7476 GB, free: 183.7 MB / 0.5294 GB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL_res.csv --start-time 0 --stop-time 2.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 HanserModelica_HanserModelica_SynchronousMachines_SMEE_DOL.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe 2>&1)