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.0009423/0.0009424, allocations: 92.31 kB / 15.06 MB, free: 1.098 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.417/1.417, allocations: 223.2 MB / 239 MB, free: 5.453 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.00116/0.00116, allocations: 172.6 kB / 290.3 MB, free: 2.133 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03262/0.03262, allocations: 8.782 MB / 350.1 MB, free: 4.652 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000377/0.000377, allocations: 13.91 kB / 413.3 MB, free: 42.95 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1028, allocations: 52.56 MB / 465.8 MB, free: 13.39 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_DOL): time 0.01527/0.1181, allocations: 14.72 MB / 480.6 MB, free: 14.61 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01135/0.1295, allocations: 5.074 MB / 485.6 MB, free: 9.52 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00317/0.1327, allocations: 95.62 kB / 485.7 MB, free: 9.426 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003463/0.1362, allocations: 0.9633 MB / 486.7 MB, free: 8.457 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.005322/0.1415, allocations: 1.323 MB / 488 MB, free: 7.129 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002553/0.1441, allocations: 0.7195 MB / 488.7 MB, free: 6.414 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007565/0.1517, allocations: 4.941 MB / 493.7 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005193/0.1569, allocations: 2.737 MB / 496.4 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002997/0.1599, allocations: 1.576 MB / 498 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003673/0.1636, allocations: 2.046 MB / 0.4883 GB, free: 11.03 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001175/0.1648, allocations: 252 kB / 0.4886 GB, free: 10.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002232/0.1671, allocations: 467.8 kB / 0.489 GB, free: 10.33 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001343/0.1684, allocations: 0.9691 MB / 0.4899 GB, free: 9.355 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001666/0.1701, allocations: 0.9096 MB / 0.4908 GB, free: 8.438 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007679/0.1778, allocations: 6.603 MB / 0.4973 GB, free: 1.816 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.1778, allocations: 0 / 0.4973 GB, free: 1.816 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.295e-06/0.1778, allocations: 0 / 0.4973 GB, free: 1.816 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002267/0.1781, allocations: 0 / 0.4973 GB, free: 1.816 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.0116/0.1897, allocations: 4.614 MB / 0.5018 GB, free: 13.12 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.662e-05/0.1898, allocations: 11.97 kB / 0.5018 GB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001476/0.1912, allocations: 0.5517 MB / 0.5023 GB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005193/0.1964, allocations: 0.9977 MB / 0.5033 GB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006174/0.2026, allocations: 2.789 MB / 0.506 GB, free: 8.703 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002832/0.2029, allocations: 304.1 kB / 0.5063 GB, free: 8.402 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008857/0.2038, allocations: 403.9 kB / 0.5067 GB, free: 8.008 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01007/0.2139, allocations: 5.209 MB / 0.5118 GB, free: 2.711 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.585e-05/0.214, allocations: 7.906 kB / 0.5118 GB, free: 2.703 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003428/0.2144, allocations: 160 kB / 0.512 GB, free: 2.547 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001561/0.2146, allocations: 172 kB / 0.5121 GB, free: 2.375 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008007/0.2226, allocations: 4.47 MB / 0.5165 GB, free: 13.88 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2271/0.4497, allocations: 16.93 MB / 0.533 GB, free: 55.16 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006704/0.4564, allocations: 8.44 MB / 0.5413 GB, free: 48.82 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002958/0.4594, allocations: 1.725 MB / 0.543 GB, free: 48.79 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008462/0.4679, allocations: 5.044 MB / 0.5479 GB, free: 47.64 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.277e-05/0.468, allocations: 52.64 kB / 0.5479 GB, free: 47.6 MB / 366.1 MB Notification: Performance of pre-optimization done (n=158): time 3.567e-06/0.468, allocations: 3.469 kB / 0.5479 GB, free: 47.6 MB / 366.1 MB Notification: Performance of matching and sorting (n=161): time 0.01293/0.4809, allocations: 6.278 MB / 0.5541 GB, free: 46.07 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.902e-05/0.4811, allocations: 68 kB / 0.5541 GB, free: 46 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005823/0.4869, allocations: 2.296 MB / 0.5564 GB, free: 45.49 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002794/0.4872, allocations: 49.58 kB / 0.5564 GB, free: 45.44 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00121/0.4884, allocations: 1.847 MB / 0.5582 GB, free: 44.03 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006009/0.489, allocations: 0.5552 MB / 0.5588 GB, free: 43.6 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001818/0.4892, allocations: 43.91 kB / 0.5588 GB, free: 43.57 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001437/0.4894, allocations: 382.7 kB / 0.5592 GB, free: 43.23 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001433/0.4908, allocations: 0.8641 MB / 0.56 GB, free: 42.91 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001645/0.4925, allocations: 1.574 MB / 0.5616 GB, free: 41.67 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001806/0.4943, allocations: 1.134 MB / 0.5627 GB, free: 41.16 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.681e-05/0.4943, allocations: 7.969 kB / 0.5627 GB, free: 41.15 MB / 366.1 MB Notification: Performance of matching and sorting (n=276) (initialization): time 0.004617/0.4989, allocations: 2.912 MB / 0.5655 GB, free: 39.59 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.316e-05/0.499, allocations: 14.69 kB / 0.5655 GB, free: 39.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.611e-05/0.499, allocations: 26.28 kB / 0.5655 GB, free: 39.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003049/0.4993, allocations: 131.6 kB / 0.5657 GB, free: 39.53 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0018/0.5012, allocations: 0.5513 MB / 0.5662 GB, free: 39.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0015/0.5027, allocations: 1.837 MB / 0.568 GB, free: 37.67 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002449/0.5051, allocations: 118.4 kB / 0.5681 GB, free: 37.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002411/0.5054, allocations: 98.17 kB / 0.5682 GB, free: 37.6 MB / 366.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 (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.002527/0.5079, allocations: 1.203 MB / 0.5694 GB, free: 36.8 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007783/0.5087, allocations: 242 kB / 0.5696 GB, free: 36.67 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004576/0.5133, allocations: 2.492 MB / 0.5721 GB, free: 35.15 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.434e-05/0.5133, allocations: 17.5 kB / 0.5721 GB, free: 35.15 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.965e-05/0.5134, allocations: 2.812 kB / 0.5721 GB, free: 35.15 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.671e-05/0.5134, allocations: 15.09 kB / 0.5721 GB, free: 35.14 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01108/0.5245, allocations: 5.857 MB / 0.5778 GB, free: 31.4 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.256e-06/0.5245, allocations: 0 / 0.5778 GB, free: 31.4 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001166/0.5257, allocations: 307.1 kB / 0.5781 GB, free: 31.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007689/0.5265, allocations: 310.6 kB / 0.5784 GB, free: 30.96 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001169/0.5266, allocations: 47.84 kB / 0.5784 GB, free: 30.92 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004996/0.5316, allocations: 6.399 MB / 0.5847 GB, free: 24.13 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.746e-06/0.5317, allocations: 48 / 0.5847 GB, free: 24.13 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00512/0.5368, allocations: 3.619 MB / 0.5882 GB, free: 20.44 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001294/0.5381, allocations: 0.5018 MB / 0.5887 GB, free: 19.91 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006564/0.5388, allocations: 36 kB / 0.5887 GB, free: 19.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001335/0.5401, allocations: 95.86 kB / 0.5888 GB, free: 19.79 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002409/0.5404, allocations: 125.1 kB / 0.589 GB, free: 19.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.256e-05/0.5404, allocations: 39.98 kB / 0.589 GB, free: 19.62 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002115/0.5426, allocations: 1.553 MB / 0.5905 GB, free: 18.05 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5426, allocations: 0 / 0.5905 GB, free: 18.05 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00253/0.5451, allocations: 0.6847 MB / 0.5912 GB, free: 17.37 MB / 366.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 (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.004844/0.55, allocations: 4.253 MB / 0.5953 GB, free: 13.03 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003229/0.5532, allocations: 2.307 MB / 0.5976 GB, free: 10.7 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.5532, allocations: 0 / 0.5976 GB, free: 10.7 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001807/0.5551, allocations: 1.463 MB / 0.599 GB, free: 9.199 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002738/0.5578, allocations: 0.5734 MB / 0.5996 GB, free: 8.633 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04221/0.6, allocations: 20.72 MB / 0.6198 GB, free: 2.43 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003795/0.6039, allocations: 2.665 MB / 0.6224 GB, free: 15.74 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002313/0.6062, allocations: 0.5527 MB / 0.6229 GB, free: 15.19 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002296/0.6085, allocations: 1.476 MB / 0.6244 GB, free: 13.71 MB / 398.1 MB Notification: Performance of SimCode: time 8.21e-07/0.6085, allocations: 0 / 0.6244 GB, free: 13.71 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1012/0.7098, allocations: 57.15 MB / 0.6802 GB, free: 4.988 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001928/0.71, allocations: 196.3 kB / 0.6804 GB, free: 4.75 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.835/3.545, allocations: 0 / 0.6804 GB, free: 4.75 MB / 446.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: