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.006698/0.006698, allocations: 95.58 kB / 15.73 MB, free: 6.047 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.622/1.622, 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.001646/0.001646, allocations: 188.5 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.03678/0.03678, allocations: 8.801 MB / 348.7 MB, free: 4.633 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002335/0.002335, allocations: 75.88 kB / 463.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1262/0.1286, allocations: 51.55 MB / 0.5029 GB, free: 10.02 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_DOL): time 0.02156/0.1502, allocations: 16.71 MB / 0.5192 GB, free: 9.223 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01442/0.1647, allocations: 5.457 MB / 0.5246 GB, free: 3.75 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004859/0.1696, allocations: 103.6 kB / 0.5247 GB, free: 3.648 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005094/0.1747, allocations: 1.266 MB / 0.5259 GB, free: 2.371 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.007821/0.1826, allocations: 1.619 MB / 0.5275 GB, free: 0.7461 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.285/0.4676, allocations: 1.033 MB / 0.5285 GB, free: 5.594 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.008587/0.4762, allocations: 5.009 MB / 0.5334 GB, free: 5.59 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006314/0.4825, allocations: 4.31 MB / 0.5376 GB, free: 4.746 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00487/0.4874, allocations: 2.263 MB / 0.5398 GB, free: 4.43 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006231/0.4937, allocations: 2.65 MB / 0.5424 GB, free: 3.969 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002704/0.4964, allocations: 0.6238 MB / 0.543 GB, free: 3.965 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004262/0.5007, allocations: 0.845 MB / 0.5438 GB, free: 3.965 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002563/0.5033, allocations: 1.433 MB / 0.5452 GB, free: 3.801 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007141/0.5105, allocations: 2.649 MB / 0.5478 GB, free: 3.141 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01695/0.5274, allocations: 8.153 MB / 0.5558 GB, free: 0.7656 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.895e-06/0.5275, allocations: 0 / 0.5558 GB, free: 0.7656 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.5275, allocations: 0 / 0.5558 GB, free: 0.7656 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003869/0.5279, allocations: 1.344 kB / 0.5558 GB, free: 0.7656 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.02401/0.5519, allocations: 5.509 MB / 0.5612 GB, free: 13.07 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.465e-05/0.552, allocations: 10.25 kB / 0.5612 GB, free: 13.07 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002133/0.5541, allocations: 0.5567 MB / 0.5617 GB, free: 12.65 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006524/0.5607, allocations: 1.011 MB / 0.5627 GB, free: 12.16 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008472/0.5692, allocations: 3.048 MB / 0.5657 GB, free: 10.12 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004427/0.5697, allocations: 307.4 kB / 0.566 GB, free: 9.98 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00172/0.5714, allocations: 394.1 kB / 0.5663 GB, free: 9.852 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01673/0.5881, allocations: 5.234 MB / 0.5715 GB, free: 5.738 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000219/0.5884, allocations: 3.953 kB / 0.5715 GB, free: 5.734 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001647/0.5901, allocations: 164 kB / 0.5716 GB, free: 5.574 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002453/0.5903, allocations: 172 kB / 0.5718 GB, free: 5.402 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0129/0.6032, allocations: 4.462 MB / 0.5761 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0389/0.6422, allocations: 16.65 MB / 0.5924 GB, free: 164 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009176/0.6514, allocations: 8.424 MB / 0.6006 GB, free: 6.707 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003297/0.6547, allocations: 1.702 MB / 0.6023 GB, free: 5.008 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009494/0.6643, allocations: 4.989 MB / 0.6072 GB, free: 15.89 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.701e-05/0.6643, allocations: 51.44 kB / 0.6072 GB, free: 15.84 MB / 430.1 MB Notification: Performance of pre-optimization done (n=158): time 3.146e-06/0.6643, allocations: 0 / 0.6072 GB, free: 15.84 MB / 430.1 MB Notification: Performance of matching and sorting (n=161): time 0.01383/0.6782, allocations: 6.212 MB / 0.6133 GB, free: 9.488 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.453e-05/0.6783, allocations: 68.72 kB / 0.6133 GB, free: 9.41 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004138/0.6824, allocations: 2.29 MB / 0.6156 GB, free: 7.094 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002348/0.6827, allocations: 49.7 kB / 0.6156 GB, free: 7.039 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001578/0.6843, allocations: 1.902 MB / 0.6175 GB, free: 5.129 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006502/0.6849, allocations: 0.5716 MB / 0.618 GB, free: 4.562 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006597/0.6856, allocations: 399.9 kB / 0.6184 GB, free: 4.164 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.6857, allocations: 305.1 kB / 0.6187 GB, free: 3.863 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001569/0.6873, allocations: 0.8474 MB / 0.6195 GB, free: 3.012 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002203/0.6895, allocations: 1.569 MB / 0.6211 GB, free: 1.129 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003968/0.6935, allocations: 2.569 MB / 0.6236 GB, free: 14.34 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.13e-05/0.6935, allocations: 8 kB / 0.6236 GB, free: 14.33 MB / 446.1 MB Notification: Performance of matching and sorting (n=276) (initialization): time 0.005455/0.699, allocations: 2.904 MB / 0.6264 GB, free: 11.53 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.523e-05/0.699, allocations: 17.88 kB / 0.6264 GB, free: 11.52 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.198e-05/0.6991, allocations: 20 kB / 0.6265 GB, free: 11.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003515/0.6994, allocations: 129.6 kB / 0.6266 GB, free: 11.36 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002059/0.7015, allocations: 0.5391 MB / 0.6271 GB, free: 10.86 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002098/0.7036, allocations: 2.022 MB / 0.6291 GB, free: 8.707 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002411/0.706, allocations: 115.9 kB / 0.6292 GB, free: 8.594 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001934/0.7063, allocations: 99.98 kB / 0.6293 GB, free: 8.496 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.002978/0.7092, allocations: 1.188 MB / 0.6305 GB, free: 7.332 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000718/0.71, allocations: 266.3 kB / 0.6307 GB, free: 7.07 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00493/0.7149, allocations: 2.462 MB / 0.6331 GB, free: 4.574 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.92e-05/0.7149, allocations: 16 kB / 0.6331 GB, free: 4.559 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.212e-05/0.715, allocations: 4 kB / 0.6331 GB, free: 4.555 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.805e-05/0.715, allocations: 7.969 kB / 0.6331 GB, free: 4.547 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01124/0.7262, allocations: 5.798 MB / 0.6388 GB, free: 14.68 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.652e-06/0.7263, allocations: 0 / 0.6388 GB, free: 14.68 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001311/0.7276, allocations: 290.4 kB / 0.6391 GB, free: 14.41 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008775/0.7285, allocations: 301.8 kB / 0.6394 GB, free: 14.11 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001194/0.7286, allocations: 39.98 kB / 0.6394 GB, free: 14.07 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007481/0.7361, allocations: 6.994 MB / 0.6462 GB, free: 6.711 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.7361, allocations: 0 / 0.6462 GB, free: 6.711 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006649/0.7428, allocations: 3.589 MB / 0.6497 GB, free: 3.051 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001729/0.7445, allocations: 0.5032 MB / 0.6502 GB, free: 2.527 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004004/0.7449, allocations: 39.98 kB / 0.6503 GB, free: 2.488 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001171/0.7461, allocations: 87.94 kB / 0.6504 GB, free: 2.402 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000332/0.7465, allocations: 129.1 kB / 0.6505 GB, free: 2.273 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001004/0.7466, allocations: 39.98 kB / 0.6505 GB, free: 2.234 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002786/0.7494, allocations: 1.552 MB / 0.652 GB, free: 0.668 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7494, allocations: 0 / 0.652 GB, free: 0.668 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002905/0.7523, allocations: 0.6719 MB / 0.6527 GB, free: 15.99 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.006756/0.7591, allocations: 4.203 MB / 0.6568 GB, free: 11.7 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005093/0.7642, allocations: 2.285 MB / 0.659 GB, free: 9.391 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.418e-05/0.7642, allocations: 4 kB / 0.659 GB, free: 9.387 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002806/0.767, allocations: 1.454 MB / 0.6604 GB, free: 7.895 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003534/0.7706, allocations: 0.595 MB / 0.661 GB, free: 7.301 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04582/0.8164, allocations: 24.23 MB / 0.6847 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003031/0.8195, allocations: 2.665 MB / 0.6873 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.002062/0.8216, allocations: 0.5591 MB / 0.6878 GB, free: 10.82 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002108/0.8237, allocations: 1.476 MB / 0.6893 GB, free: 9.348 MB / 0.4981 GB Notification: Performance of SimCode: time 9.42e-07/0.8237, allocations: 0 / 0.6893 GB, free: 9.348 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3995/1.223, allocations: 59.58 MB / 0.7475 GB, free: 183.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.3/15.53, allocations: 13.2 kB / 0.7475 GB, free: 183.8 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)