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.001772/0.001772, allocations: 120.2 kB / 18.5 MB, free: 4.578 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.002386/0.002386, allocations: 205 kB / 21.45 MB, free: 1.629 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.549/1.549, allocations: 230.5 MB / 254.8 MB, free: 15.1 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.002064/0.002064, allocations: 71.83 kB / 373.7 MB, free: 10.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1241/0.1261, allocations: 53.33 MB / 427.1 MB, free: 4.746 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.2638/0.3899, allocations: 41.93 MB / 469 MB, free: 15.59 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03169/0.4216, allocations: 11.42 MB / 480.4 MB, free: 6.957 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0138/0.4354, allocations: 354.5 kB / 480.7 MB, free: 6.844 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02215/0.4575, allocations: 8.002 MB / 488.8 MB, free: 0.8242 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01607/0.4736, allocations: 3.668 MB / 492.4 MB, free: 13.83 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008438/0.4821, allocations: 2.315 MB / 494.7 MB, free: 11.95 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02171/0.5038, allocations: 12.56 MB / 0.4954 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03228/0.536, allocations: 17.86 MB / 0.5128 GB, free: 14.55 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01317/0.5492, allocations: 6.498 MB / 0.5192 GB, free: 8.031 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01345/0.5627, allocations: 7.33 MB / 0.5264 GB, free: 0.6758 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005333/0.568, allocations: 1.824 MB / 0.5281 GB, free: 14.85 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007809/0.5758, allocations: 2.269 MB / 0.5303 GB, free: 12.58 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006334/0.5821, allocations: 3.651 MB / 0.5339 GB, free: 8.922 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01589/0.598, allocations: 7.1 MB / 0.5408 GB, free: 1.793 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03598/0.634, allocations: 24.12 MB / 0.5644 GB, free: 9.598 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.173e-06/0.634, allocations: 0 / 0.5644 GB, free: 9.598 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.634, allocations: 0 / 0.5644 GB, free: 9.598 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0007686/0.6348, allocations: 0 / 0.5644 GB, free: 9.598 MB / 478.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.04679/0.6816, allocations: 14.52 MB / 0.5786 GB, free: 10.95 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.685e-05/0.6816, allocations: 8.031 kB / 0.5786 GB, free: 10.95 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006067/0.6877, allocations: 1.745 MB / 0.5803 GB, free: 9.188 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03093/0.7186, allocations: 5.221 MB / 0.5854 GB, free: 3.953 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01904/0.7377, allocations: 7.769 MB / 0.593 GB, free: 12.11 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001315/0.739, allocations: 0.8385 MB / 0.5938 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005323/0.7443, allocations: 1.086 MB / 0.5949 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04848/0.7928, allocations: 16.63 MB / 0.6111 GB, free: 9.48 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005635/0.7934, allocations: 19.94 kB / 0.6111 GB, free: 9.461 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003786/0.7971, allocations: 456 kB / 0.6115 GB, free: 9.016 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007973/0.7979, allocations: 0.5851 MB / 0.6121 GB, free: 8.426 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4801/1.278, allocations: 14.78 MB / 0.6266 GB, free: 146.9 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1004/1.378, allocations: 57.4 MB / 0.6826 GB, free: 108.2 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01751/1.396, allocations: 20.8 MB / 0.7029 GB, free: 88.23 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00532/1.401, allocations: 3.037 MB / 0.7059 GB, free: 86.21 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01649/1.418, allocations: 10.01 MB / 0.7157 GB, free: 76.19 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.225e-05/1.418, allocations: 65.56 kB / 0.7157 GB, free: 76.11 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=313): time 6.052e-06/1.418, allocations: 3.938 kB / 0.7157 GB, free: 76.11 MB / 0.5138 GB Notification: Performance of matching and sorting (n=340): time 0.03448/1.452, allocations: 16.94 MB / 0.7323 GB, free: 59.46 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.384e-05/1.452, allocations: 116.4 kB / 0.7324 GB, free: 59.33 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009108/1.462, allocations: 5.19 MB / 0.7374 GB, free: 54.22 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0006918/1.462, allocations: 85.64 kB / 0.7375 GB, free: 54.13 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.00271/1.465, allocations: 5.356 MB / 0.7428 GB, free: 48.87 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001184/1.466, allocations: 1.25 MB / 0.744 GB, free: 47.63 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002746/1.469, allocations: 1.271 MB / 0.7452 GB, free: 46.35 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.171e-05/1.469, allocations: 305.1 kB / 0.7455 GB, free: 46.05 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003943/1.473, allocations: 2.636 MB / 0.7481 GB, free: 43.41 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004744/1.478, allocations: 5.445 MB / 0.7534 GB, free: 36.63 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008582/1.486, allocations: 8.515 MB / 0.7617 GB, free: 26.79 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.992e-05/1.486, allocations: 24 kB / 0.7617 GB, free: 26.77 MB / 0.5138 GB Notification: Performance of matching and sorting (n=816) (initialization): time 0.01475/1.501, allocations: 9.239 MB / 0.7708 GB, free: 17.49 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 9.958e-05/1.501, allocations: 52.08 kB / 0.7708 GB, free: 17.44 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001272/1.501, allocations: 96 kB / 0.7709 GB, free: 17.34 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002259/1.503, allocations: 0.9164 MB / 0.7718 GB, free: 16.42 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005306/1.509, allocations: 1.482 MB / 0.7732 GB, free: 14.93 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01055/1.519, allocations: 10.53 MB / 0.7835 GB, free: 4 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006207/1.526, allocations: 407.3 kB / 0.7839 GB, free: 3.602 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001397/1.527, allocations: 339.9 kB / 0.7842 GB, free: 3.27 MB / 0.5138 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.008409/1.535, allocations: 3.745 MB / 0.7879 GB, free: 15.51 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001911/1.537, allocations: 0.5317 MB / 0.7884 GB, free: 14.98 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01405/1.551, allocations: 5.851 MB / 0.7941 GB, free: 9.059 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006132/1.557, allocations: 3.041 MB / 0.7971 GB, free: 6.012 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.434e-05/1.557, allocations: 11.98 kB / 0.7971 GB, free: 6 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.546e-05/1.558, allocations: 15.94 kB / 0.7971 GB, free: 5.984 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0356/1.593, allocations: 14.57 MB / 0.8114 GB, free: 7.305 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.816e-05/1.593, allocations: 4 kB / 0.8114 GB, free: 7.301 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003091/1.596, allocations: 0.5973 MB / 0.8119 GB, free: 6.703 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002857/1.599, allocations: 0.9017 MB / 0.8128 GB, free: 5.789 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005728/1.6, allocations: 83.97 kB / 0.8129 GB, free: 5.707 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01905/1.619, allocations: 14.03 MB / 0.8266 GB, free: 7.004 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.087e-05/1.619, allocations: 8 kB / 0.8266 GB, free: 6.996 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2688/1.888, allocations: 8.518 MB / 0.8349 GB, free: 178.7 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003227/1.891, allocations: 1 MB / 0.8359 GB, free: 178.6 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001347/1.892, allocations: 64.52 kB / 0.836 GB, free: 178.6 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003253/1.895, allocations: 199 kB / 0.8361 GB, free: 178.6 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007485/1.896, allocations: 252.8 kB / 0.8364 GB, free: 178.6 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002767/1.896, allocations: 103.1 kB / 0.8365 GB, free: 178.6 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.007/1.903, allocations: 3.441 MB / 0.8398 GB, free: 178.4 MB / 0.5607 GB Notification: Performance of sort global known variables: time 4.61e-07/1.903, allocations: 0 / 0.8398 GB, free: 178.4 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.009601/1.913, allocations: 1.774 MB / 0.8416 GB, free: 178.4 MB / 0.5607 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.01608/1.929, allocations: 9.234 MB / 0.8506 GB, free: 174.7 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.01263/1.942, allocations: 6.602 MB / 0.857 GB, free: 172.1 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.597e-05/1.942, allocations: 1.75 kB / 0.857 GB, free: 172.1 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.006312/1.948, allocations: 3.205 MB / 0.8602 GB, free: 170.6 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007411/1.955, allocations: 1.182 MB / 0.8613 GB, free: 170.2 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09684/2.052, allocations: 61.47 MB / 0.9214 GB, free: 121.5 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009708/2.062, allocations: 6.56 MB / 0.9278 GB, free: 115.8 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.005438/2.067, allocations: 1.846 MB / 0.9296 GB, free: 114 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005626/2.073, allocations: 4.061 MB / 0.9335 GB, free: 109.9 MB / 0.5607 GB Notification: Performance of SimCode: time 1.412e-06/2.073, allocations: 0 / 0.9335 GB, free: 109.9 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4459/2.519, allocations: 141.1 MB / 1.071 GB, free: 174.8 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.86/25.37, allocations: 14.75 kB / 1.071 GB, free: 174.8 MB / 0.5763 GB " [Timeout remaining time 634] (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: 28.333391213789582] 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.546492900699377 25.564465916 24.926452268 Calling exit ...