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.005192/0.005192, allocations: 100.8 kB / 15.73 MB, free: 6.016 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.37/1.37, allocations: 222.9 MB / 239.4 MB, free: 4.508 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.001399/0.001399, allocations: 192.5 kB / 289.7 MB, free: 2.215 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03559/0.03559, allocations: 8.799 MB / 348.7 MB, free: 4.602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001643/0.001643, allocations: 79.88 kB / 463.5 MB, free: 13.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1029, allocations: 51.57 MB / 0.503 GB, free: 9.891 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit3): time 0.01608/0.1191, allocations: 15.94 MB / 0.5186 GB, free: 9.871 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009477/0.1286, allocations: 5.294 MB / 0.5237 GB, free: 4.562 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002435/0.1311, allocations: 91.69 kB / 0.5238 GB, free: 4.473 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003725/0.1348, allocations: 1.258 MB / 0.525 GB, free: 3.203 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.005299/0.1402, allocations: 1.569 MB / 0.5266 GB, free: 1.625 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002954/0.1431, allocations: 0.9949 MB / 0.5275 GB, free: 0.6328 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2212/0.3643, allocations: 4.586 MB / 0.532 GB, free: 5.699 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006539/0.3709, allocations: 3.492 MB / 0.5354 GB, free: 5.098 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005433/0.3764, allocations: 2.056 MB / 0.5374 GB, free: 4.844 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005295/0.3818, allocations: 2.328 MB / 0.5397 GB, free: 4.43 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002175/0.384, allocations: 0.561 MB / 0.5403 GB, free: 4.43 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003697/0.3877, allocations: 0.7736 MB / 0.541 GB, free: 4.426 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001968/0.3897, allocations: 1.237 MB / 0.5422 GB, free: 4.277 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004623/0.3943, allocations: 2.378 MB / 0.5445 GB, free: 3.695 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009387/0.4037, allocations: 7.343 MB / 0.5517 GB, free: 2.809 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.852e-06/0.4038, allocations: 0 / 0.5517 GB, free: 2.809 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.176e-06/0.4038, allocations: 3.938 kB / 0.5517 GB, free: 2.809 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002501/0.4041, allocations: 1.969 kB / 0.5517 GB, free: 2.809 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.0155/0.4196, allocations: 4.92 MB / 0.5565 GB, free: 15.83 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.574e-05/0.4196, allocations: 13.25 kB / 0.5565 GB, free: 15.83 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001349/0.421, allocations: 0.5511 MB / 0.5571 GB, free: 15.44 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005439/0.4264, allocations: 0.9606 MB / 0.558 GB, free: 14.98 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006358/0.4328, allocations: 2.758 MB / 0.5607 GB, free: 13.1 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002028/0.4331, allocations: 285.1 kB / 0.561 GB, free: 12.97 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009341/0.434, allocations: 360.7 kB / 0.5613 GB, free: 12.86 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009934/0.444, allocations: 4.686 MB / 0.5659 GB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001317/0.4441, allocations: 7.172 kB / 0.5659 GB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005199/0.4447, allocations: 154.5 kB / 0.5661 GB, free: 9.973 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001373/0.4448, allocations: 159.3 kB / 0.5662 GB, free: 9.949 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007782/0.4526, allocations: 3.899 MB / 0.57 GB, free: 7.246 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02897/0.4816, allocations: 15.37 MB / 0.585 GB, free: 7.727 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005986/0.4876, allocations: 6.067 MB / 0.5909 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002511/0.4902, allocations: 1.378 MB / 0.5923 GB, free: 15.53 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00731/0.4975, allocations: 4.195 MB / 0.5964 GB, free: 11.21 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.76e-05/0.4976, allocations: 51.88 kB / 0.5964 GB, free: 11.16 MB / 414.1 MB Notification: Performance of pre-optimization done (n=133): time 3.667e-06/0.4976, allocations: 0 / 0.5964 GB, free: 11.16 MB / 414.1 MB Notification: Performance of matching and sorting (n=137): time 0.009639/0.5073, allocations: 5.183 MB / 0.6015 GB, free: 5.855 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.064e-05/0.5074, allocations: 72.72 kB / 0.6016 GB, free: 5.773 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002884/0.5102, allocations: 1.985 MB / 0.6035 GB, free: 3.75 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001517/0.5104, allocations: 53.7 kB / 0.6036 GB, free: 3.691 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001015/0.5114, allocations: 1.716 MB / 0.6052 GB, free: 1.969 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003772/0.5118, allocations: 0.4936 MB / 0.6057 GB, free: 1.48 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004957/0.5123, allocations: 363.4 kB / 0.6061 GB, free: 1.121 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 7.993e-05/0.5124, allocations: 301.1 kB / 0.6064 GB, free: 0.8242 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009867/0.5134, allocations: 0.6688 MB / 0.607 GB, free: 160 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001384/0.5148, allocations: 1.382 MB / 0.6084 GB, free: 14.46 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002657/0.5175, allocations: 2.185 MB / 0.6105 GB, free: 12.04 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-05/0.5175, allocations: 8 kB / 0.6105 GB, free: 12.04 MB / 430.1 MB Notification: Performance of matching and sorting (n=251) (initialization): time 0.004119/0.5217, allocations: 2.487 MB / 0.6129 GB, free: 9.66 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.309e-05/0.5217, allocations: 19.98 kB / 0.6129 GB, free: 9.641 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.135e-05/0.5218, allocations: 20 kB / 0.613 GB, free: 9.621 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003725/0.5221, allocations: 153.6 kB / 0.6131 GB, free: 9.469 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00156/0.5237, allocations: 459.6 kB / 0.6135 GB, free: 9.055 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001914/0.5256, allocations: 2.128 MB / 0.6156 GB, free: 6.816 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001886/0.5275, allocations: 79.89 kB / 0.6157 GB, free: 6.738 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001856/0.5277, allocations: 95.98 kB / 0.6158 GB, free: 6.645 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.002544/0.5303, allocations: 1.063 MB / 0.6168 GB, free: 5.602 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007044/0.531, allocations: 226.5 kB / 0.617 GB, free: 5.379 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003617/0.5346, allocations: 2.01 MB / 0.619 GB, free: 3.324 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.514e-05/0.5347, allocations: 16 kB / 0.619 GB, free: 3.309 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.522e-05/0.5347, allocations: 4 kB / 0.619 GB, free: 3.305 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.59e-05/0.5347, allocations: 3.984 kB / 0.619 GB, free: 3.301 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009273/0.544, allocations: 4.921 MB / 0.6238 GB, free: 14.31 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.394e-06/0.544, allocations: 0 / 0.6238 GB, free: 14.31 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008851/0.5449, allocations: 206.5 kB / 0.624 GB, free: 14.12 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008564/0.5458, allocations: 321.8 kB / 0.6243 GB, free: 13.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001021/0.5459, allocations: 39.92 kB / 0.6244 GB, free: 13.76 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006506/0.5524, allocations: 7.095 MB / 0.6313 GB, free: 6.297 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.5525, allocations: 0 / 0.6313 GB, free: 6.297 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004459/0.5569, allocations: 2.906 MB / 0.6341 GB, free: 3.332 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001185/0.5582, allocations: 439.6 kB / 0.6346 GB, free: 2.883 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003817/0.5585, allocations: 32 kB / 0.6346 GB, free: 2.852 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001009/0.5596, allocations: 64.33 kB / 0.6347 GB, free: 2.789 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002626/0.5598, allocations: 100.5 kB / 0.6348 GB, free: 2.691 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.275e-05/0.5599, allocations: 36 kB / 0.6348 GB, free: 2.656 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002124/0.5621, allocations: 1.343 MB / 0.6361 GB, free: 1.293 MB / 446.1 MB Notification: Performance of sort global known variables: time 6.32e-07/0.5621, allocations: 3.938 kB / 0.6361 GB, free: 1.289 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002549/0.5646, allocations: 0.6015 MB / 0.6367 GB, free: 0.6875 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.004641/0.5693, allocations: 3.506 MB / 0.6401 GB, free: 13.12 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002929/0.5723, allocations: 1.894 MB / 0.642 GB, free: 11.27 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.55e-06/0.5723, allocations: 0 / 0.642 GB, free: 11.27 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001734/0.574, allocations: 1.23 MB / 0.6432 GB, free: 10.03 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002871/0.5769, allocations: 0.5678 MB / 0.6437 GB, free: 9.465 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03625/0.6132, allocations: 20.96 MB / 0.6642 GB, free: 3.664 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003511/0.6167, allocations: 2.399 MB / 0.6665 GB, free: 1.23 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001743/0.6185, allocations: 466.7 kB / 0.667 GB, free: 0.7695 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001836/0.6204, allocations: 1.297 MB / 0.6682 GB, free: 15.48 MB / 494.1 MB Notification: Performance of SimCode: time 8.02e-07/0.6204, allocations: 0 / 0.6682 GB, free: 15.48 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1008/0.7212, allocations: 54.92 MB / 0.7219 GB, free: 8.961 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.38/15.1, allocations: 10.98 kB / 0.7219 GB, free: 8.953 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 & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3_res.csv --start-time 0 --stop-time 0.5 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0001 HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit3.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3.pipe 2>&1)