Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001885/0.001885, allocations: 109 kB / 21.23 MB, free: 0.6641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002295/0.002295, allocations: 213.9 kB / 24.54 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.539/1.539, allocations: 230.6 MB / 258.3 MB, free: 8.043 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002039/0.002039, allocations: 56.78 kB / 378.6 MB, free: 3.098 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2892/0.2912, allocations: 53.37 MB / 432 MB, free: 6.867 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.0522/0.3434, allocations: 42.02 MB / 474 MB, free: 12.67 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02731/0.3707, allocations: 11.44 MB / 485.4 MB, free: 1.191 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01006/0.3808, allocations: 362.1 kB / 485.8 MB, free: 0.8359 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02091/0.4017, allocations: 8.026 MB / 493.8 MB, free: 8.793 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01505/0.4167, allocations: 3.735 MB / 497.5 MB, free: 5.039 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009607/0.4263, allocations: 2.376 MB / 499.9 MB, free: 2.668 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02044/0.4468, allocations: 12.63 MB / 0.5005 GB, free: 5.996 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03099/0.4778, allocations: 15.77 MB / 0.5159 GB, free: 6.082 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01188/0.4896, allocations: 6.522 MB / 0.5223 GB, free: 15.54 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01307/0.5027, allocations: 7.35 MB / 0.5295 GB, free: 8.168 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005634/0.5083, allocations: 1.828 MB / 0.5313 GB, free: 6.34 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007572/0.5159, allocations: 2.281 MB / 0.5335 GB, free: 4.059 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006545/0.5225, allocations: 3.655 MB / 0.5371 GB, free: 404 kB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.3358/0.8583, allocations: 7.095 MB / 0.544 GB, free: 29.99 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03252/0.8908, allocations: 24.11 MB / 0.5675 GB, free: 24.84 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.073e-06/0.8908, allocations: 0 / 0.5675 GB, free: 24.84 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.8908, allocations: 0.9062 kB / 0.5675 GB, free: 24.84 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0007858/0.8916, allocations: 5.625 kB / 0.5675 GB, free: 24.83 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3043 * Number of variables: 3043 Notification: Performance of Generate backend data structure: time 0.04901/0.9406, allocations: 14.45 MB / 0.5817 GB, free: 17.03 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.468e-05/0.9407, allocations: 10.19 kB / 0.5817 GB, free: 17.03 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007438/0.9481, allocations: 1.739 MB / 0.5834 GB, free: 15.9 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02949/0.9776, allocations: 5.224 MB / 0.5885 GB, free: 13.49 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0182/0.9958, allocations: 7.746 MB / 0.596 GB, free: 8.609 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007464/0.9965, allocations: 0.8279 MB / 0.5968 GB, free: 8.238 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004778/1.001, allocations: 1.087 MB / 0.5979 GB, free: 7.875 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04941/1.051, allocations: 16.64 MB / 0.6141 GB, free: 7.254 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005324/1.051, allocations: 11.95 kB / 0.6142 GB, free: 7.242 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005188/1.056, allocations: 461.9 kB / 0.6146 GB, free: 6.801 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007162/1.057, allocations: 0.5773 MB / 0.6152 GB, free: 6.219 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03937/1.097, allocations: 14.79 MB / 0.6296 GB, free: 7.418 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1135/1.21, allocations: 53.89 MB / 0.6822 GB, free: 1.195 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01772/1.228, allocations: 7.623 MB / 0.6897 GB, free: 10.22 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006833/1.235, allocations: 3.03 MB / 0.6926 GB, free: 7.188 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02142/1.256, allocations: 9.058 MB / 0.7015 GB, free: 14.25 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.191e-05/1.256, allocations: 65.56 kB / 0.7015 GB, free: 14.18 MB / 0.545 GB Notification: Performance of pre-optimization done (n=313): time 7.023e-06/1.256, allocations: 0 / 0.7015 GB, free: 14.18 MB / 0.545 GB Notification: Performance of matching and sorting (n=340): time 0.04057/1.297, allocations: 16.33 MB / 0.7175 GB, free: 13.88 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.412e-05/1.297, allocations: 116.2 kB / 0.7176 GB, free: 13.76 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01052/1.307, allocations: 5.195 MB / 0.7227 GB, free: 8.574 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0007428/1.308, allocations: 81.7 kB / 0.7227 GB, free: 8.488 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.004675/1.313, allocations: 5.353 MB / 0.728 GB, free: 3.125 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001764/1.314, allocations: 1.253 MB / 0.7292 GB, free: 1.887 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002353/1.317, allocations: 1.271 MB / 0.7304 GB, free: 0.6055 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001357/1.317, allocations: 313.1 kB / 0.7307 GB, free: 304 kB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004746/1.322, allocations: 2.633 MB / 0.7333 GB, free: 13.66 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007201/1.329, allocations: 5.444 MB / 0.7386 GB, free: 6.93 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2804/1.609, allocations: 8.508 MB / 0.7469 GB, free: 200.2 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001146/1.609, allocations: 26.91 kB / 0.747 GB, free: 200.2 MB / 0.5762 GB Notification: Performance of matching and sorting (n=816) (initialization): time 0.02052/1.63, allocations: 9.168 MB / 0.7559 GB, free: 199.4 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 9.24e-05/1.63, allocations: 45.81 kB / 0.756 GB, free: 199.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001829/1.63, allocations: 96.19 kB / 0.756 GB, free: 199.4 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002261/1.633, allocations: 0.9083 MB / 0.7569 GB, free: 199.4 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005774/1.638, allocations: 1.48 MB / 0.7584 GB, free: 199.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0116/1.65, allocations: 10.21 MB / 0.7683 GB, free: 192.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006263/1.656, allocations: 401.5 kB / 0.7687 GB, free: 192.4 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001442/1.658, allocations: 345.5 kB / 0.7691 GB, free: 192.4 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 431 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (767): * Single equations (assignments): 762 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * 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): 3 systems {(8,26,67.2%), (2,8,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007877/1.665, allocations: 3.75 MB / 0.7727 GB, free: 190.5 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001498/1.667, allocations: 0.5346 MB / 0.7732 GB, free: 190.5 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01057/1.678, allocations: 5.7 MB / 0.7788 GB, free: 188.2 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004815/1.682, allocations: 3.042 MB / 0.7818 GB, free: 187.1 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.739e-05/1.682, allocations: 11.66 kB / 0.7818 GB, free: 187.1 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-05/1.682, allocations: 20.22 kB / 0.7818 GB, free: 187.1 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03007/1.712, allocations: 14.45 MB / 0.7959 GB, free: 178.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.129e-05/1.713, allocations: 7.938 kB / 0.7959 GB, free: 178.8 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002741/1.715, allocations: 0.5978 MB / 0.7965 GB, free: 178.3 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002405/1.718, allocations: 0.8956 MB / 0.7974 GB, free: 177.6 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006189/1.718, allocations: 75.55 kB / 0.7975 GB, free: 177.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01236/1.731, allocations: 13.5 MB / 0.8106 GB, free: 164.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/1.731, allocations: 12.06 kB / 0.8107 GB, free: 164.7 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01318/1.744, allocations: 8.362 MB / 0.8188 GB, free: 156.9 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002834/1.747, allocations: 0.9409 MB / 0.8197 GB, free: 156 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001127/1.748, allocations: 64 kB / 0.8198 GB, free: 155.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002775/1.751, allocations: 191.8 kB / 0.82 GB, free: 155.7 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006756/1.751, allocations: 274.3 kB / 0.8202 GB, free: 155.4 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002349/1.751, allocations: 112 kB / 0.8204 GB, free: 155.3 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.005997/1.757, allocations: 3.439 MB / 0.8237 GB, free: 151.9 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.1e-07/1.757, allocations: 0 / 0.8237 GB, free: 151.9 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.009947/1.767, allocations: 1.775 MB / 0.8254 GB, free: 150.1 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (smee.phiMechanical,smee.stator.zeroInductor.i0,smee.stator.core.Phi.im,smee.excitation.electroMagneticConverter.Phi.re,smeeQS.short.port_p.reference.gamma,mechanicalPowerSensorQS.relSpeedSensor.phi_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (298): * Single equations (assignments): 292 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(2,8,100.0%), (1,4,100.0%), (1,8,100.0%), (3,4,77.8%), (8,26,64.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01466/1.782, allocations: 9.084 MB / 0.8343 GB, free: 140.9 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01189/1.794, allocations: 6.54 MB / 0.8407 GB, free: 134.3 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.109e-05/1.794, allocations: 0 / 0.8407 GB, free: 134.3 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.006194/1.8, allocations: 3.21 MB / 0.8438 GB, free: 131.1 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008231/1.808, allocations: 1.177 MB / 0.845 GB, free: 129.9 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.112/1.92, allocations: 61.43 MB / 0.905 GB, free: 64.74 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01308/1.933, allocations: 6.564 MB / 0.9114 GB, free: 58.14 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.006306/1.94, allocations: 1.846 MB / 0.9132 GB, free: 56.29 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006952/1.947, allocations: 4.061 MB / 0.9172 GB, free: 52.22 MB / 0.5762 GB Notification: Performance of SimCode: time 2.114e-06/1.947, allocations: 0 / 0.9172 GB, free: 52.22 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4739/2.421, allocations: 146.3 MB / 1.06 GB, free: 140.6 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.66/25.08, allocations: 9.875 kB / 1.06 GB, free: 140.6 MB / 0.5762 GB " [Timeout remaining time 635] (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.csv --start-time 0 --stop-time 30 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 27.97727371379733] Failed to read output from testmodel.py, exit status != 0: ['time', 'constantSpeed.phi', 'constantSpeedQS.phi', 'smee.excitation.electroMagneticConverter.Phi.re', 'smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter[1].Phi.re', 'smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im', 'smee.stator.stray.port_p.Phi.im', 'smee.stator.stray.port_p.Phi.re', 'smee.stator.zeroInductor.i0', 'smeeQS.short.port_p.reference.gamma'] 25.25374894309789 25.265808512 24.371822344 Calling exit ...