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.006963/0.006963, allocations: 100.9 kB / 15.73 MB, free: 6.031 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.491/1.491, allocations: 222.9 MB / 239.4 MB, free: 4.562 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.001619/0.001618, allocations: 184.5 kB / 289.7 MB, free: 2.281 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03491/0.03491, allocations: 8.804 MB / 348.7 MB, free: 4.637 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00179/0.00179, allocations: 79.88 kB / 463.4 MB, free: 13.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.12, allocations: 51.56 MB / 0.5029 GB, free: 10.02 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_DOL): time 0.01974/0.1398, allocations: 16.7 MB / 0.5192 GB, free: 9.242 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01594/0.1558, allocations: 5.465 MB / 0.5246 GB, free: 3.762 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005252/0.1611, allocations: 95.69 kB / 0.5247 GB, free: 3.668 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005147/0.1662, allocations: 1.273 MB / 0.5259 GB, free: 2.383 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.007033/0.1734, allocations: 1.607 MB / 0.5275 GB, free: 0.7656 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2882/0.4616, allocations: 1.039 MB / 0.5285 GB, free: 5.668 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007027/0.4686, allocations: 5.006 MB / 0.5334 GB, free: 5.664 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005954/0.4746, allocations: 4.311 MB / 0.5376 GB, free: 4.824 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006934/0.4816, allocations: 2.278 MB / 0.5398 GB, free: 4.508 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006845/0.4885, allocations: 2.656 MB / 0.5424 GB, free: 4.043 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002322/0.4908, allocations: 0.6199 MB / 0.543 GB, free: 4.043 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003673/0.4945, allocations: 0.8433 MB / 0.5438 GB, free: 4.043 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001923/0.4964, allocations: 1.434 MB / 0.5452 GB, free: 3.879 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005559/0.502, allocations: 2.647 MB / 0.5478 GB, free: 3.219 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0116/0.5136, allocations: 8.131 MB / 0.5558 GB, free: 0.8789 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.117e-06/0.5137, allocations: 3.625 kB / 0.5558 GB, free: 0.8789 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.5137, allocations: 0 / 0.5558 GB, free: 0.8789 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003246/0.514, allocations: 0 / 0.5558 GB, free: 0.8789 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.02427/0.5383, allocations: 5.391 MB / 0.561 GB, free: 13.3 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.47e-05/0.5384, allocations: 14.34 kB / 0.561 GB, free: 13.3 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001343/0.5397, allocations: 0.5542 MB / 0.5616 GB, free: 12.89 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005851/0.5456, allocations: 0.9835 MB / 0.5625 GB, free: 12.43 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008046/0.5536, allocations: 3.038 MB / 0.5655 GB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003219/0.554, allocations: 301.4 kB / 0.5658 GB, free: 10.26 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001189/0.5552, allocations: 403 kB / 0.5662 GB, free: 10.12 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01245/0.5677, allocations: 5.223 MB / 0.5713 GB, free: 6.027 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.16e-05/0.5678, allocations: 0 / 0.5713 GB, free: 6.027 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004089/0.5682, allocations: 160 kB / 0.5714 GB, free: 5.871 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001709/0.5684, allocations: 176 kB / 0.5716 GB, free: 5.695 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00828/0.5767, allocations: 4.469 MB / 0.576 GB, free: 1.219 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03262/0.6093, allocations: 16.6 MB / 0.5922 GB, free: 500 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008721/0.6181, allocations: 8.431 MB / 0.6004 GB, free: 7.027 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003215/0.6213, allocations: 1.697 MB / 0.6021 GB, free: 5.336 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01005/0.6314, allocations: 4.982 MB / 0.6069 GB, free: 232 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.68e-05/0.6315, allocations: 51.88 kB / 0.607 GB, free: 172 kB / 414.1 MB Notification: Performance of pre-optimization done (n=158): time 3.456e-06/0.6315, allocations: 0 / 0.607 GB, free: 172 kB / 414.1 MB Notification: Performance of matching and sorting (n=161): time 0.01384/0.6454, allocations: 6.151 MB / 0.613 GB, free: 9.875 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.967e-05/0.6454, allocations: 69.47 kB / 0.6131 GB, free: 9.797 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00557/0.651, allocations: 2.29 MB / 0.6153 GB, free: 7.48 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001566/0.6512, allocations: 53.7 kB / 0.6153 GB, free: 7.422 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001587/0.6528, allocations: 1.838 MB / 0.6171 GB, free: 5.566 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005543/0.6534, allocations: 0.5517 MB / 0.6177 GB, free: 5.02 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007308/0.6541, allocations: 399.6 kB / 0.6181 GB, free: 4.621 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.6542, allocations: 305.1 kB / 0.6184 GB, free: 4.32 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001686/0.6559, allocations: 0.8548 MB / 0.6192 GB, free: 3.465 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002032/0.658, allocations: 1.562 MB / 0.6207 GB, free: 1.59 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003676/0.6617, allocations: 2.569 MB / 0.6232 GB, free: 14.8 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.177e-05/0.6617, allocations: 8 kB / 0.6232 GB, free: 14.79 MB / 446.1 MB Notification: Performance of matching and sorting (n=276) (initialization): time 0.005483/0.6672, allocations: 2.888 MB / 0.6261 GB, free: 12.01 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.737e-05/0.6673, allocations: 21.34 kB / 0.6261 GB, free: 11.99 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.351e-05/0.6673, allocations: 24 kB / 0.6261 GB, free: 11.97 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003873/0.6677, allocations: 134.1 kB / 0.6262 GB, free: 11.83 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002062/0.6698, allocations: 0.5379 MB / 0.6267 GB, free: 11.33 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001849/0.6717, allocations: 2.015 MB / 0.6287 GB, free: 9.184 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002333/0.674, allocations: 115.8 kB / 0.6288 GB, free: 9.07 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002563/0.6743, allocations: 95.98 kB / 0.6289 GB, free: 8.977 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.002817/0.6771, allocations: 1.204 MB / 0.6301 GB, free: 7.797 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007777/0.6779, allocations: 241.1 kB / 0.6303 GB, free: 7.559 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004782/0.6827, allocations: 2.458 MB / 0.6327 GB, free: 5.062 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.529e-05/0.6827, allocations: 16 kB / 0.6327 GB, free: 5.047 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.538e-05/0.6827, allocations: 4 kB / 0.6327 GB, free: 5.043 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.722e-05/0.6828, allocations: 7.969 kB / 0.6327 GB, free: 5.035 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.013/0.6958, allocations: 5.798 MB / 0.6384 GB, free: 15.16 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.279e-05/0.6958, allocations: 0 / 0.6384 GB, free: 15.16 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00134/0.6972, allocations: 291.8 kB / 0.6387 GB, free: 14.87 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008564/0.6981, allocations: 306.2 kB / 0.639 GB, free: 14.56 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001298/0.6982, allocations: 35.98 kB / 0.639 GB, free: 14.53 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006894/0.7051, allocations: 6.99 MB / 0.6458 GB, free: 7.133 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/0.7051, allocations: 4.031 kB / 0.6458 GB, free: 7.129 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006282/0.7114, allocations: 3.572 MB / 0.6493 GB, free: 3.477 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001558/0.713, allocations: 498 kB / 0.6498 GB, free: 2.969 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009394/0.714, allocations: 36 kB / 0.6498 GB, free: 2.934 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001757/0.7158, allocations: 95.92 kB / 0.6499 GB, free: 2.84 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003275/0.7161, allocations: 121.1 kB / 0.6501 GB, free: 2.719 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001193/0.7162, allocations: 40 kB / 0.6501 GB, free: 2.68 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003618/0.7199, allocations: 1.549 MB / 0.6516 GB, free: 1.117 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.7199, allocations: 0 / 0.6516 GB, free: 1.117 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003451/0.7233, allocations: 0.6797 MB / 0.6523 GB, free: 448 kB / 462.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.006776/0.7301, allocations: 4.186 MB / 0.6564 GB, free: 12.16 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004214/0.7344, allocations: 2.278 MB / 0.6586 GB, free: 9.852 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.804e-06/0.7344, allocations: 448 / 0.6586 GB, free: 9.852 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002405/0.7368, allocations: 1.46 MB / 0.66 GB, free: 8.352 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004177/0.741, allocations: 0.5997 MB / 0.6606 GB, free: 7.754 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05517/0.7962, allocations: 24.1 MB / 0.6841 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004472/0.8007, allocations: 2.661 MB / 0.6867 GB, free: 11.97 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.002412/0.8032, allocations: 0.5591 MB / 0.6873 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002853/0.806, allocations: 1.479 MB / 0.6887 GB, free: 9.93 MB / 0.4981 GB Notification: Performance of SimCode: time 1.452e-06/0.8061, allocations: 0 / 0.6887 GB, free: 9.93 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4176/1.224, allocations: 59.92 MB / 0.7472 GB, free: 184.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.18/15.4, allocations: 20.11 kB / 0.7473 GB, free: 184.6 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 & /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)