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/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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.00096/0.00096, allocations: 99.94 kB / 15.05 MB, free: 1.105 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.38/1.38, allocations: 223.2 MB / 238.9 MB, free: 5.512 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.001193/0.001194, allocations: 185 kB / 290.2 MB, free: 2.195 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03256/0.03256, allocations: 8.781 MB / 350 MB, free: 4.703 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004206/0.0004207, allocations: 15.47 kB / 413.2 MB, free: 42.98 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1028, allocations: 52.56 MB / 465.7 MB, free: 13.44 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_DOL): time 0.0142/0.117, allocations: 13.48 MB / 479.2 MB, free: 15.9 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0104/0.1274, allocations: 5.224 MB / 484.4 MB, free: 10.66 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003048/0.1305, allocations: 87.69 kB / 484.5 MB, free: 10.58 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00312/0.1337, allocations: 0.9677 MB / 485.5 MB, free: 9.605 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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.004752/0.1384, allocations: 1.445 MB / 486.9 MB, free: 8.156 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002218/0.1407, allocations: 0.7125 MB / 487.6 MB, free: 7.449 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005847/0.1465, allocations: 3.387 MB / 491 MB, free: 4.059 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003448/0.15, allocations: 2.733 MB / 493.8 MB, free: 1.273 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002756/0.1528, allocations: 1.537 MB / 495.3 MB, free: 15.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002675/0.1555, allocations: 1.879 MB / 497.2 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005921/0.1561, allocations: 248 kB / 497.4 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001624/0.1577, allocations: 439.7 kB / 497.9 MB, free: 13.17 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008839/0.1586, allocations: 0.9422 MB / 498.8 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001068/0.1597, allocations: 0.9096 MB / 499.7 MB, free: 11.31 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006425/0.1661, allocations: 6.568 MB / 0.4944 GB, free: 4.723 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.1662, allocations: 0 / 0.4944 GB, free: 4.723 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.1662, allocations: 0 / 0.4944 GB, free: 4.723 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002131/0.1664, allocations: 0 / 0.4944 GB, free: 4.723 MB / 334.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.01206/0.1785, allocations: 4.614 MB / 0.4989 GB, free: 32 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.933e-05/0.1785, allocations: 8.031 kB / 0.4989 GB, free: 24 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001736/0.1803, allocations: 0.5478 MB / 0.4995 GB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005344/0.1856, allocations: 1.002 MB / 0.5004 GB, free: 14.46 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006356/0.192, allocations: 2.8 MB / 0.5032 GB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002752/0.1923, allocations: 308.1 kB / 0.5035 GB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007262/0.193, allocations: 403.9 kB / 0.5038 GB, free: 10.9 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009435/0.2025, allocations: 5.178 MB / 0.5089 GB, free: 5.637 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.247e-05/0.2026, allocations: 7.844 kB / 0.5089 GB, free: 5.629 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003482/0.2029, allocations: 168 kB / 0.5091 GB, free: 5.465 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001542/0.2031, allocations: 168 kB / 0.5092 GB, free: 5.297 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008032/0.2111, allocations: 4.478 MB / 0.5136 GB, free: 0.8008 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2551/0.4662, allocations: 16.9 MB / 0.5301 GB, free: 57.46 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006764/0.473, allocations: 8.449 MB / 0.5384 GB, free: 51.12 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008303/0.4814, allocations: 4.248 MB / 0.5425 GB, free: 50.07 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.718e-05/0.4815, allocations: 51.98 kB / 0.5426 GB, free: 50.03 MB / 366.1 MB Notification: Performance of pre-optimization done (n=168): time 6.562e-06/0.4815, allocations: 2.344 kB / 0.5426 GB, free: 50.03 MB / 366.1 MB Notification: Performance of matching and sorting (n=172): time 0.01508/0.4966, allocations: 6.606 MB / 0.549 GB, free: 48.65 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.068e-05/0.4967, allocations: 69.97 kB / 0.5491 GB, free: 48.59 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003941/0.5006, allocations: 2.262 MB / 0.5513 GB, free: 48.34 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002906/0.5009, allocations: 55.27 kB / 0.5513 GB, free: 48.31 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001291/0.5022, allocations: 1.827 MB / 0.5531 GB, free: 47.45 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005599/0.5028, allocations: 0.5836 MB / 0.5537 GB, free: 47.08 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001023/0.5029, allocations: 47.31 kB / 0.5537 GB, free: 47.08 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.5031, allocations: 397.1 kB / 0.5541 GB, free: 46.77 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001592/0.5047, allocations: 0.8939 MB / 0.555 GB, free: 46.65 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001884/0.5066, allocations: 1.575 MB / 0.5565 GB, free: 45.44 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001677/0.5082, allocations: 1.171 MB / 0.5577 GB, free: 44.92 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.368e-05/0.5083, allocations: 3.938 kB / 0.5577 GB, free: 44.92 MB / 366.1 MB Notification: Performance of matching and sorting (n=283) (initialization): time 0.004424/0.5127, allocations: 2.979 MB / 0.5606 GB, free: 43.62 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.262e-05/0.5128, allocations: 13.84 kB / 0.5606 GB, free: 43.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.048e-05/0.5128, allocations: 22.94 kB / 0.5606 GB, free: 43.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000317/0.5131, allocations: 136.8 kB / 0.5608 GB, free: 43.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001944/0.5151, allocations: 0.5633 MB / 0.5613 GB, free: 43.51 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001355/0.5165, allocations: 1.855 MB / 0.5631 GB, free: 41.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00206/0.5185, allocations: 129.4 kB / 0.5632 GB, free: 41.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000164/0.5187, allocations: 90.16 kB / 0.5633 GB, free: 41.82 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 99 * 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 (277): * Single equations (assignments): 275 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002273/0.521, allocations: 1.195 MB / 0.5645 GB, free: 41.16 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005926/0.5216, allocations: 245.1 kB / 0.5647 GB, free: 41.04 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004057/0.5256, allocations: 2.618 MB / 0.5673 GB, free: 39.59 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.439e-05/0.5257, allocations: 18.83 kB / 0.5673 GB, free: 39.59 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.164e-05/0.5257, allocations: 7.438 kB / 0.5673 GB, free: 39.59 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.591e-05/0.5257, allocations: 11.95 kB / 0.5673 GB, free: 39.57 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009042/0.5348, allocations: 6.097 MB / 0.5733 GB, free: 35.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.075e-06/0.5348, allocations: 3.875 kB / 0.5733 GB, free: 35.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001251/0.5361, allocations: 318.8 kB / 0.5736 GB, free: 35.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007302/0.5368, allocations: 321.2 kB / 0.5739 GB, free: 35.43 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001023/0.5369, allocations: 44.22 kB / 0.5739 GB, free: 35.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004758/0.5417, allocations: 6.462 MB / 0.5802 GB, free: 29 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.5417, allocations: 3.594 kB / 0.5802 GB, free: 29 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004976/0.5467, allocations: 3.954 MB / 0.5841 GB, free: 24.89 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001279/0.548, allocations: 0.5096 MB / 0.5846 GB, free: 24.36 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003312/0.5484, allocations: 39.98 kB / 0.5846 GB, free: 24.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001111/0.5495, allocations: 95.92 kB / 0.5847 GB, free: 24.23 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002661/0.5498, allocations: 133.1 kB / 0.5849 GB, free: 24.1 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.805e-05/0.5499, allocations: 47.98 kB / 0.5849 GB, free: 24.05 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001905/0.5518, allocations: 1.525 MB / 0.5864 GB, free: 22.52 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5518, allocations: 0 / 0.5864 GB, free: 22.52 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002336/0.5541, allocations: 0.6887 MB / 0.5871 GB, free: 21.83 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (144): * Single equations (assignments): 141 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00485/0.559, allocations: 5.159 MB / 0.5921 GB, free: 16.54 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003219/0.5622, allocations: 2.379 MB / 0.5944 GB, free: 14.13 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.5622, allocations: 4.062 kB / 0.5944 GB, free: 14.12 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001865/0.5641, allocations: 1.52 MB / 0.5959 GB, free: 12.56 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002369/0.5665, allocations: 0.5475 MB / 0.5964 GB, free: 12.02 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04356/0.6101, allocations: 35.4 MB / 0.631 GB, free: 7.016 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002372/0.6125, allocations: 2.739 MB / 0.6337 GB, free: 4.254 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00209/0.6146, allocations: 0.5669 MB / 0.6342 GB, free: 3.684 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001758/0.6164, allocations: 1.468 MB / 0.6357 GB, free: 2.215 MB / 398.1 MB Notification: Performance of SimCode: time 1.012e-06/0.6164, allocations: 0 / 0.6357 GB, free: 2.215 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09358/0.71, allocations: 57.38 MB / 0.6917 GB, free: 9.25 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002047/0.7102, allocations: 187.4 kB / 0.6919 GB, free: 9.016 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.839/3.55, allocations: 6.938 kB / 0.6919 GB, free: 9.012 MB / 462.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_DOL_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_DOL.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe 2>&1) Environment - environmentSimulation: