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.001023/0.001026, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.298/1.298, allocations: 222.9 MB / 239 MB, free: 4.73 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.001257/0.001256, allocations: 200.4 kB / 289.3 MB, free: 2.473 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03468/0.03468, allocations: 8.794 MB / 348.2 MB, free: 4.859 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001637/0.001638, allocations: 76.33 kB / 410.7 MB, free: 42.34 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08252/0.08418, allocations: 51.57 MB / 462.3 MB, free: 14.69 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_DOL): time 0.01621/0.1004, allocations: 16.49 MB / 478.7 MB, free: 14.11 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01069/0.1112, allocations: 5.368 MB / 484.1 MB, free: 8.723 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002846/0.114, allocations: 103.6 kB / 484.2 MB, free: 8.621 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003531/0.1176, allocations: 1.115 MB / 485.3 MB, free: 7.504 MB / 318.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.004622/0.1223, allocations: 1.453 MB / 486.8 MB, free: 6.043 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002474/0.1248, allocations: 0.9527 MB / 487.7 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005689/0.1305, allocations: 5.104 MB / 492.8 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004353/0.1348, allocations: 4.311 MB / 497.2 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002471/0.1373, allocations: 2.172 MB / 499.3 MB, free: 9.395 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002827/0.1402, allocations: 2.627 MB / 0.4902 GB, free: 6.758 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007368/0.1409, allocations: 0.6172 MB / 0.4908 GB, free: 6.141 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00147/0.1424, allocations: 0.8513 MB / 0.4916 GB, free: 5.289 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001086/0.1435, allocations: 1.426 MB / 0.493 GB, free: 3.859 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002585/0.1461, allocations: 2.649 MB / 0.4956 GB, free: 1.199 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007475/0.1536, allocations: 8.027 MB / 0.5034 GB, free: 9.148 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.1536, allocations: 0 / 0.5034 GB, free: 9.148 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1536, allocations: 0 / 0.5034 GB, free: 9.148 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001415/0.1538, allocations: 0 / 0.5034 GB, free: 9.148 MB / 350.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.01177/0.1655, allocations: 5.378 MB / 0.5087 GB, free: 3.691 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.1656, allocations: 8.031 kB / 0.5087 GB, free: 3.684 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006684/0.1663, allocations: 0.5519 MB / 0.5092 GB, free: 3.121 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004979/0.1713, allocations: 0.9947 MB / 0.5102 GB, free: 2.121 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00503/0.1763, allocations: 2.859 MB / 0.513 GB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002562/0.1766, allocations: 308.3 kB / 0.5133 GB, free: 14.9 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000644/0.1772, allocations: 400 kB / 0.5137 GB, free: 14.51 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008517/0.1858, allocations: 5.221 MB / 0.5188 GB, free: 9.203 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.938e-05/0.1859, allocations: 3.906 kB / 0.5188 GB, free: 9.199 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000352/0.1862, allocations: 168 kB / 0.5189 GB, free: 9.035 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000154/0.1864, allocations: 172 kB / 0.5191 GB, free: 8.863 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007156/0.1936, allocations: 4.47 MB / 0.5235 GB, free: 4.375 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2044/0.398, allocations: 16.84 MB / 0.5399 GB, free: 58.27 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005753/0.4038, allocations: 8.444 MB / 0.5482 GB, free: 51.89 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002765/0.4066, allocations: 1.707 MB / 0.5498 GB, free: 51.62 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007789/0.4144, allocations: 5.029 MB / 0.5547 GB, free: 47.91 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.233e-05/0.4144, allocations: 50.44 kB / 0.5548 GB, free: 47.86 MB / 366.1 MB Notification: Performance of pre-optimization done (n=158): time 3.887e-06/0.4144, allocations: 1.219 kB / 0.5548 GB, free: 47.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=161): time 0.01024/0.4247, allocations: 6.179 MB / 0.5608 GB, free: 44.04 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.009e-05/0.4247, allocations: 72.86 kB / 0.5609 GB, free: 43.98 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002629/0.4274, allocations: 2.307 MB / 0.5631 GB, free: 42.73 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.822e-05/0.4275, allocations: 51.98 kB / 0.5632 GB, free: 42.68 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007877/0.4283, allocations: 1.857 MB / 0.565 GB, free: 41.05 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002813/0.4286, allocations: 0.5467 MB / 0.5655 GB, free: 40.57 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005089/0.4291, allocations: 396 kB / 0.5659 GB, free: 40.34 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.744e-05/0.4291, allocations: 310.9 kB / 0.5662 GB, free: 40.04 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00119/0.4303, allocations: 0.8452 MB / 0.567 GB, free: 39.6 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001499/0.4318, allocations: 1.57 MB / 0.5686 GB, free: 38.21 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002673/0.4345, allocations: 2.578 MB / 0.5711 GB, free: 36.25 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.111e-05/0.4346, allocations: 7.312 kB / 0.5711 GB, free: 36.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=276) (initialization): time 0.003658/0.4382, allocations: 2.894 MB / 0.5739 GB, free: 34.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.463e-05/0.4383, allocations: 16 kB / 0.5739 GB, free: 34.17 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.941e-05/0.4383, allocations: 20 kB / 0.574 GB, free: 34.15 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002841/0.4386, allocations: 134.2 kB / 0.5741 GB, free: 34.01 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001763/0.4403, allocations: 0.5343 MB / 0.5746 GB, free: 33.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001234/0.4416, allocations: 2.021 MB / 0.5766 GB, free: 31.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001458/0.4431, allocations: 112.4 kB / 0.5767 GB, free: 31.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001232/0.4432, allocations: 99.98 kB / 0.5768 GB, free: 31.11 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 (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.001583/0.4448, allocations: 1.196 MB / 0.5779 GB, free: 29.9 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002844/0.4451, allocations: 245.1 kB / 0.5782 GB, free: 29.66 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003342/0.4484, allocations: 2.468 MB / 0.5806 GB, free: 27.14 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.147e-06/0.4484, allocations: 12 kB / 0.5806 GB, free: 27.12 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.4485, allocations: 13.53 kB / 0.5806 GB, free: 27.11 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.302e-05/0.4485, allocations: 7.969 kB / 0.5806 GB, free: 27.11 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006938/0.4554, allocations: 5.827 MB / 0.5863 GB, free: 21.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.682e-06/0.4555, allocations: 4 kB / 0.5863 GB, free: 21.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001194/0.4567, allocations: 291.9 kB / 0.5866 GB, free: 20.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007713/0.4574, allocations: 326.2 kB / 0.5869 GB, free: 20.56 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.866e-05/0.4575, allocations: 41.52 kB / 0.5869 GB, free: 20.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004821/0.4624, allocations: 7.035 MB / 0.5938 GB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.4624, allocations: 4.031 kB / 0.5938 GB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004863/0.4673, allocations: 3.586 MB / 0.5973 GB, free: 9.422 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008953/0.4682, allocations: 0.4941 MB / 0.5978 GB, free: 8.906 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002855/0.4685, allocations: 47.97 kB / 0.5979 GB, free: 8.859 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001143/0.4696, allocations: 79.92 kB / 0.5979 GB, free: 8.781 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002556/0.4699, allocations: 121 kB / 0.598 GB, free: 8.664 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.288e-05/0.47, allocations: 47.98 kB / 0.5981 GB, free: 8.617 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001864/0.4718, allocations: 1.572 MB / 0.5996 GB, free: 7.031 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4719, allocations: 0 / 0.5996 GB, free: 7.031 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002035/0.4739, allocations: 0.6748 MB / 0.6003 GB, free: 6.359 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 (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.004503/0.4784, allocations: 4.208 MB / 0.6044 GB, free: 2.059 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005187/0.4836, allocations: 2.923 MB / 0.6072 GB, free: 15.12 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.4836, allocations: 0 / 0.6072 GB, free: 15.12 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002088/0.4857, allocations: 1.451 MB / 0.6087 GB, free: 13.64 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002521/0.4882, allocations: 0.599 MB / 0.6092 GB, free: 13.05 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05/0.5383, allocations: 29.64 MB / 0.6382 GB, free: 12.82 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002625/0.541, allocations: 2.657 MB / 0.6408 GB, free: 10.14 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002029/0.543, allocations: 0.5552 MB / 0.6413 GB, free: 9.582 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001953/0.545, allocations: 1.483 MB / 0.6428 GB, free: 8.098 MB / 414.1 MB Notification: Performance of SimCode: time 8.91e-07/0.545, allocations: 0 / 0.6428 GB, free: 8.098 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3203/0.8652, allocations: 60.09 MB / 0.7015 GB, free: 138.8 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001399/0.8654, allocations: 215.3 kB / 0.7017 GB, free: 138.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.02/3.886, allocations: 0 / 0.7017 GB, free: 138.6 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/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)