Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3.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_ShortCircuit3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_ShortCircuit3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit3",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.004903/0.004903, allocations: 99.83 kB / 15.73 MB, free: 6.043 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.345/1.345, 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.002055/0.002055, allocations: 180.5 kB / 289.7 MB, free: 2.273 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03697/0.03697, allocations: 8.802 MB / 348.7 MB, free: 4.629 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001688/0.001688, allocations: 79.88 kB / 463.5 MB, free: 13.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1039, allocations: 51.56 MB / 0.503 GB, free: 9.945 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit3): time 0.01775/0.1217, allocations: 15.93 MB / 0.5186 GB, free: 9.934 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01105/0.1328, allocations: 5.294 MB / 0.5237 GB, free: 4.625 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002708/0.1356, allocations: 91.69 kB / 0.5238 GB, free: 4.535 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003766/0.1394, allocations: 1.219 MB / 0.525 GB, free: 3.305 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/SynchronousMachines/Templates/SMEE_ShortCircuit.mo:18:3-19:30:writable] Warning: Conditional component 'ir' is used in a non-connect context. Notification: Performance of NFTyping.typeBindings: time 0.005193/0.1446, allocations: 1.534 MB / 0.5265 GB, free: 1.762 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002994/0.1476, allocations: 0.9818 MB / 0.5275 GB, free: 0.7812 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2216/0.3693, allocations: 4.587 MB / 0.5319 GB, free: 5.656 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004637/0.374, allocations: 3.486 MB / 0.5353 GB, free: 5.059 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003482/0.3775, allocations: 2.061 MB / 0.5374 GB, free: 4.812 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003768/0.3813, allocations: 2.333 MB / 0.5396 GB, free: 4.395 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001162/0.3824, allocations: 0.5597 MB / 0.5402 GB, free: 4.395 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001965/0.3844, allocations: 0.7707 MB / 0.5409 GB, free: 4.395 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001086/0.3855, allocations: 1.24 MB / 0.5421 GB, free: 4.242 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003676/0.3892, allocations: 2.373 MB / 0.5445 GB, free: 3.66 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009605/0.3988, allocations: 7.322 MB / 0.5516 GB, free: 2.895 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.3989, allocations: 0 / 0.5516 GB, free: 2.895 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.3989, allocations: 1.25 kB / 0.5516 GB, free: 2.895 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001926/0.3991, allocations: 0 / 0.5516 GB, free: 2.895 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: 962 * Number of variables: 962 Notification: Performance of Generate backend data structure: time 0.01371/0.4128, allocations: 4.819 MB / 0.5563 GB, free: 52 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.4128, allocations: 9.594 kB / 0.5563 GB, free: 52 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001337/0.4142, allocations: 0.5542 MB / 0.5569 GB, free: 15.66 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005587/0.4198, allocations: 0.9399 MB / 0.5578 GB, free: 15.22 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005911/0.4257, allocations: 2.752 MB / 0.5605 GB, free: 13.35 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001843/0.4259, allocations: 279.1 kB / 0.5607 GB, free: 13.22 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006101/0.4265, allocations: 363.8 kB / 0.5611 GB, free: 13.1 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008232/0.4348, allocations: 4.689 MB / 0.5657 GB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.363e-05/0.4349, allocations: 1.5 kB / 0.5657 GB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003837/0.4353, allocations: 158.7 kB / 0.5658 GB, free: 10.22 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001145/0.4354, allocations: 154.7 kB / 0.566 GB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00653/0.4419, allocations: 3.899 MB / 0.5698 GB, free: 7.566 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02405/0.466, allocations: 15.34 MB / 0.5847 GB, free: 8.078 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005895/0.4719, allocations: 6.057 MB / 0.5907 GB, free: 1.273 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0024/0.4743, allocations: 1.386 MB / 0.592 GB, free: 15.89 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008052/0.4824, allocations: 4.182 MB / 0.5961 GB, free: 11.58 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.675e-05/0.4825, allocations: 51.88 kB / 0.5961 GB, free: 11.52 MB / 414.1 MB Notification: Performance of pre-optimization done (n=133): time 3.086e-06/0.4825, allocations: 0 / 0.5961 GB, free: 11.52 MB / 414.1 MB Notification: Performance of matching and sorting (n=137): time 0.01134/0.4938, allocations: 5.134 MB / 0.6012 GB, free: 6.266 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.093e-05/0.4939, allocations: 76.7 kB / 0.6012 GB, free: 6.18 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004304/0.4983, allocations: 1.984 MB / 0.6032 GB, free: 4.156 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000148/0.4984, allocations: 49.7 kB / 0.6032 GB, free: 4.102 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001276/0.4997, allocations: 1.663 MB / 0.6048 GB, free: 2.426 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004566/0.5002, allocations: 486 kB / 0.6053 GB, free: 1.957 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006222/0.5008, allocations: 359.1 kB / 0.6057 GB, free: 1.602 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.987e-05/0.5009, allocations: 309.1 kB / 0.6059 GB, free: 1.297 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001175/0.5021, allocations: 0.6628 MB / 0.6066 GB, free: 0.6367 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001661/0.5038, allocations: 1.385 MB / 0.6079 GB, free: 14.93 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002929/0.5067, allocations: 2.184 MB / 0.6101 GB, free: 12.52 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-05/0.5067, allocations: 8 kB / 0.6101 GB, free: 12.51 MB / 430.1 MB Notification: Performance of matching and sorting (n=251) (initialization): time 0.00428/0.511, allocations: 2.475 MB / 0.6125 GB, free: 10.15 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.204e-05/0.5111, allocations: 16 kB / 0.6125 GB, free: 10.13 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.814e-05/0.5111, allocations: 24 kB / 0.6125 GB, free: 10.11 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003861/0.5115, allocations: 147.2 kB / 0.6127 GB, free: 9.961 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001711/0.5132, allocations: 460.1 kB / 0.6131 GB, free: 9.543 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00212/0.5154, allocations: 2.123 MB / 0.6152 GB, free: 7.312 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001754/0.5171, allocations: 83.88 kB / 0.6153 GB, free: 7.23 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001915/0.5174, allocations: 88 kB / 0.6154 GB, free: 7.145 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 106 * 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 (242): * Single equations (assignments): 240 * 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,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002038/0.5194, allocations: 1.063 MB / 0.6164 GB, free: 6.102 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004963/0.5199, allocations: 225.4 kB / 0.6166 GB, free: 5.879 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003679/0.5236, allocations: 2.01 MB / 0.6186 GB, free: 3.824 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.328e-05/0.5236, allocations: 16 kB / 0.6186 GB, free: 3.809 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.689e-05/0.5237, allocations: 8 kB / 0.6186 GB, free: 3.801 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.408e-05/0.5237, allocations: 7.969 kB / 0.6186 GB, free: 3.793 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009332/0.533, allocations: 4.91 MB / 0.6234 GB, free: 14.81 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.167e-06/0.533, allocations: 8.031 kB / 0.6234 GB, free: 14.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009784/0.534, allocations: 202.4 kB / 0.6236 GB, free: 14.62 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009082/0.535, allocations: 330.3 kB / 0.6239 GB, free: 14.29 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001113/0.5351, allocations: 31.98 kB / 0.6239 GB, free: 14.26 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007421/0.5425, allocations: 7.092 MB / 0.6309 GB, free: 6.793 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.963e-06/0.5425, allocations: 7.938 kB / 0.6309 GB, free: 6.785 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004782/0.5473, allocations: 2.887 MB / 0.6337 GB, free: 3.836 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001218/0.5486, allocations: 430.4 kB / 0.6341 GB, free: 3.395 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005888/0.5492, allocations: 31.98 kB / 0.6341 GB, free: 3.363 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001283/0.5505, allocations: 51.97 kB / 0.6342 GB, free: 3.312 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002322/0.5507, allocations: 108.7 kB / 0.6343 GB, free: 3.207 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.138e-05/0.5508, allocations: 39.98 kB / 0.6343 GB, free: 3.168 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002545/0.5534, allocations: 1.343 MB / 0.6356 GB, free: 1.805 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5534, allocations: 0 / 0.6356 GB, free: 1.805 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002673/0.556, allocations: 0.5977 MB / 0.6362 GB, free: 1.207 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (smee.phiMechanical,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) * 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 (106): * Single equations (assignments): 103 * 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,8,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.005097/0.5612, allocations: 3.503 MB / 0.6396 GB, free: 13.64 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003175/0.5643, allocations: 1.884 MB / 0.6415 GB, free: 11.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.6e-06/0.5644, allocations: 8 kB / 0.6415 GB, free: 11.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001963/0.5663, allocations: 1.219 MB / 0.6427 GB, free: 10.56 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003113/0.5695, allocations: 0.5688 MB / 0.6432 GB, free: 9.996 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03829/0.6078, allocations: 20.85 MB / 0.6636 GB, free: 4.348 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003531/0.6113, allocations: 2.405 MB / 0.6659 GB, free: 1.906 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001855/0.6132, allocations: 466.7 kB / 0.6664 GB, free: 1.445 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002347/0.6156, allocations: 1.292 MB / 0.6677 GB, free: 156 kB / 478.1 MB Notification: Performance of SimCode: time 1.553e-06/0.6156, allocations: 0 / 0.6677 GB, free: 156 kB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1044/0.72, allocations: 55.22 MB / 0.7216 GB, free: 9.332 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.63/14.35, allocations: 3.953 kB / 0.7216 GB, free: 9.328 MB / 0.5294 GB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit3_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit3.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3.pipe 2>&1)