Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.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_ShortCircuit2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_ShortCircuit2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit2",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.0008809/0.000881, allocations: 86.56 kB / 15.06 MB, free: 1.09 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.342/1.342, allocations: 223.2 MB / 239 MB, free: 5.449 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.0009683/0.0009684, allocations: 176.5 kB / 290.3 MB, free: 2.129 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03342/0.03342, allocations: 8.776 MB / 350.1 MB, free: 4.66 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000366/0.000366, allocations: 11.27 kB / 413.3 MB, free: 42.91 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0842/0.08459, allocations: 52.57 MB / 465.8 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit2): time 0.01364/0.09827, allocations: 14.03 MB / 479.9 MB, free: 15.29 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009044/0.1074, allocations: 4.926 MB / 484.8 MB, free: 10.35 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002114/0.1095, allocations: 91.69 kB / 484.9 MB, free: 10.26 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002654/0.1122, allocations: 0.9284 MB / 485.8 MB, free: 9.328 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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.003717/0.1159, allocations: 1.253 MB / 487.1 MB, free: 8.07 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001824/0.1177, allocations: 0.6771 MB / 487.7 MB, free: 7.398 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005926/0.1237, allocations: 4.514 MB / 492.3 MB, free: 2.867 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003317/0.127, allocations: 2.413 MB / 494.7 MB, free: 416 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002249/0.1293, allocations: 1.424 MB / 496.1 MB, free: 14.97 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002188/0.1315, allocations: 1.797 MB / 497.9 MB, free: 13.17 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003928/0.1319, allocations: 232 kB / 498.1 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001189/0.1331, allocations: 419.8 kB / 498.5 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000712/0.1338, allocations: 0.8368 MB / 499.4 MB, free: 11.69 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008918/0.1347, allocations: 0.8161 MB / 0.4885 GB, free: 10.87 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005174/0.1399, allocations: 5.972 MB / 0.4943 GB, free: 4.883 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.1399, allocations: 0 / 0.4943 GB, free: 4.883 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.582e-06/0.1399, allocations: 0 / 0.4943 GB, free: 4.883 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001059/0.14, allocations: 0 / 0.4943 GB, free: 4.883 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: 962 * Number of variables: 962 Notification: Performance of Generate backend data structure: time 0.009154/0.1492, allocations: 4.097 MB / 0.4983 GB, free: 0.7148 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/0.1492, allocations: 12.03 kB / 0.4983 GB, free: 0.7031 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009355/0.1502, allocations: 0.5527 MB / 0.4988 GB, free: 144 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004736/0.1549, allocations: 0.9516 MB / 0.4998 GB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004518/0.1595, allocations: 2.503 MB / 0.5022 GB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001999/0.1597, allocations: 287.1 kB / 0.5025 GB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005405/0.1602, allocations: 371.9 kB / 0.5028 GB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007974/0.1682, allocations: 4.653 MB / 0.5074 GB, free: 7.277 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.859e-05/0.1683, allocations: 0 / 0.5074 GB, free: 7.277 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003293/0.1686, allocations: 152 kB / 0.5075 GB, free: 7.129 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001393/0.1688, allocations: 155.3 kB / 0.5077 GB, free: 6.977 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006542/0.1753, allocations: 3.882 MB / 0.5115 GB, free: 3.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02142/0.1968, allocations: 15.6 MB / 0.5267 GB, free: 3.035 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1796/0.3764, allocations: 6.129 MB / 0.5327 GB, free: 58.4 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002439/0.3789, allocations: 1.389 MB / 0.5341 GB, free: 58.39 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006036/0.3849, allocations: 4.28 MB / 0.5382 GB, free: 57.24 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.285e-05/0.385, allocations: 46.66 kB / 0.5383 GB, free: 57.2 MB / 366.1 MB Notification: Performance of pre-optimization done (n=125): time 2.725e-06/0.385, allocations: 1.438 kB / 0.5383 GB, free: 57.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=156): time 0.01202/0.397, allocations: 6.205 MB / 0.5443 GB, free: 56.07 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.658e-05/0.3971, allocations: 67 kB / 0.5444 GB, free: 56 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003243/0.4003, allocations: 2.072 MB / 0.5464 GB, free: 55.75 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001162/0.4004, allocations: 55.36 kB / 0.5465 GB, free: 55.72 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009237/0.4014, allocations: 1.703 MB / 0.5481 GB, free: 54.74 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003683/0.4017, allocations: 0.5327 MB / 0.5487 GB, free: 54.33 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.739e-05/0.4018, allocations: 44.47 kB / 0.5487 GB, free: 54.3 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.402, allocations: 392.6 kB / 0.5491 GB, free: 53.96 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00123/0.4032, allocations: 0.7715 MB / 0.5498 GB, free: 53.65 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00149/0.4047, allocations: 1.544 MB / 0.5513 GB, free: 52.34 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00954/0.4143, allocations: 2.732 MB / 0.554 GB, free: 51.52 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.229e-05/0.4143, allocations: 7.344 kB / 0.554 GB, free: 51.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=283) (initialization): time 0.004607/0.419, allocations: 2.865 MB / 0.5568 GB, free: 50.28 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.971e-05/0.419, allocations: 19.7 kB / 0.5568 GB, free: 50.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.716e-05/0.419, allocations: 27.34 kB / 0.5569 GB, free: 50.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008172/0.4199, allocations: 367.4 kB / 0.5572 GB, free: 50.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001463/0.4213, allocations: 487 kB / 0.5577 GB, free: 50.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003809/0.4252, allocations: 3.822 MB / 0.5614 GB, free: 47.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001686/0.4269, allocations: 95.16 kB / 0.5615 GB, free: 47.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001626/0.427, allocations: 96.38 kB / 0.5616 GB, free: 47.18 MB / 366.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: smee.is[1] = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 112 * 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 (256): * Single equations (assignments): 254 * 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 {(3,77.8%) 24} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001744/0.4288, allocations: 1.093 MB / 0.5627 GB, free: 46.44 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003301/0.4291, allocations: 231.4 kB / 0.5629 GB, free: 46.32 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002919/0.432, allocations: 1.993 MB / 0.5648 GB, free: 45.16 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.719e-06/0.4321, allocations: 14.22 kB / 0.5648 GB, free: 45.16 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.4321, allocations: 3.062 kB / 0.5648 GB, free: 45.16 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.46e-05/0.4321, allocations: 10.39 kB / 0.5648 GB, free: 45.15 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006631/0.4387, allocations: 5.474 MB / 0.5702 GB, free: 41.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.556e-06/0.4388, allocations: 7.953 kB / 0.5702 GB, free: 41.33 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001021/0.4398, allocations: 272.6 kB / 0.5705 GB, free: 41.06 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006886/0.4405, allocations: 292.9 kB / 0.5707 GB, free: 40.78 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.207e-05/0.4406, allocations: 39.98 kB / 0.5708 GB, free: 40.74 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003402/0.444, allocations: 3.586 MB / 0.5743 GB, free: 37.03 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.444, allocations: 4 kB / 0.5743 GB, free: 37.02 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003619/0.4477, allocations: 2.937 MB / 0.5772 GB, free: 34.04 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000801/0.4485, allocations: 482.1 kB / 0.5776 GB, free: 33.54 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002645/0.4488, allocations: 39.84 kB / 0.5776 GB, free: 33.51 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008735/0.4496, allocations: 63.95 kB / 0.5777 GB, free: 33.45 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001639/0.4498, allocations: 102 kB / 0.5778 GB, free: 33.35 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.845e-05/0.4499, allocations: 55.67 kB / 0.5779 GB, free: 33.3 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001669/0.4516, allocations: 1.395 MB / 0.5792 GB, free: 31.88 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4516, allocations: 0 / 0.5792 GB, free: 31.88 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001967/0.4536, allocations: 0.6445 MB / 0.5799 GB, free: 31.24 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 5 (smee.phiMechanical,smee.is[2],smee.stator.core.Phi.re,smee.stator.core.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 (132): * Single equations (assignments): 131 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 22} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003612/0.4572, allocations: 3.554 MB / 0.5833 GB, free: 27.63 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002886/0.4601, allocations: 2.28 MB / 0.5855 GB, free: 25.32 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.4601, allocations: 4 kB / 0.5856 GB, free: 25.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001332/0.4614, allocations: 1.077 MB / 0.5866 GB, free: 24.23 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002266/0.4637, allocations: 0.5634 MB / 0.5872 GB, free: 23.7 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02899/0.4927, allocations: 18.35 MB / 0.6051 GB, free: 3.961 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001538/0.4943, allocations: 2.431 MB / 0.6074 GB, free: 1.5 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001619/0.4959, allocations: 0.4918 MB / 0.6079 GB, free: 1.004 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001392/0.4973, allocations: 1.332 MB / 0.6092 GB, free: 15.68 MB / 382.1 MB Notification: Performance of SimCode: time 8.92e-07/0.4973, allocations: 0 / 0.6092 GB, free: 15.68 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07885/0.5762, allocations: 54.01 MB / 0.662 GB, free: 10.11 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001567/0.5764, allocations: 220 kB / 0.6622 GB, free: 9.859 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.852/3.429, allocations: 0 / 0.6622 GB, free: 9.859 MB / 430.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit2_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit2.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.pipe 2>&1) Environment - environmentSimulation: