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.SMPM_Mains.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.001251/0.001251, allocations: 121.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.001372/0.001372, allocations: 206.6 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.467/1.467, allocations: 230.5 MB / 254.8 MB, free: 15.11 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.SMPM_Mains,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains",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.002171/0.002171, allocations: 71.83 kB / 373.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1078, allocations: 53.32 MB / 427 MB, free: 4.758 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.2409/0.3487, allocations: 38.05 MB / 465.1 MB, free: 2.559 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0274/0.3761, allocations: 10.31 MB / 475.4 MB, free: 11.11 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01059/0.3867, allocations: 330.4 kB / 475.7 MB, free: 11 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02426/0.4109, allocations: 9.261 MB / 485 MB, free: 4.051 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01791/0.4289, allocations: 4.016 MB / 489 MB, free: 0.7969 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009817/0.4387, allocations: 2.444 MB / 491.4 MB, free: 14.82 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02464/0.4633, allocations: 14.23 MB / 0.4938 GB, free: 2.254 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03868/0.502, allocations: 19.31 MB / 0.5127 GB, free: 14.78 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01466/0.5166, allocations: 7.344 MB / 0.5199 GB, free: 7.418 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01603/0.5327, allocations: 8.14 MB / 0.5278 GB, free: 15.25 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006782/0.5395, allocations: 2.027 MB / 0.5298 GB, free: 13.22 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009734/0.5492, allocations: 2.445 MB / 0.5322 GB, free: 10.78 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008586/0.5578, allocations: 4.048 MB / 0.5361 GB, free: 6.719 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01822/0.576, allocations: 7.825 MB / 0.5438 GB, free: 14.86 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04238/0.6184, allocations: 27.05 MB / 0.5702 GB, free: 3.723 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/0.6184, allocations: 0 / 0.5702 GB, free: 3.723 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.6184, allocations: 0 / 0.5702 GB, free: 3.723 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0008545/0.6192, allocations: 4 kB / 0.5702 GB, free: 3.719 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: 3330 * Number of variables: 3330 Notification: Performance of Generate backend data structure: time 0.05614/0.6754, allocations: 16.18 MB / 0.586 GB, free: 3.402 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.078e-05/0.6754, allocations: 8.031 kB / 0.586 GB, free: 3.395 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007944/0.6834, allocations: 1.927 MB / 0.5879 GB, free: 1.453 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03929/0.7227, allocations: 6.435 MB / 0.5942 GB, free: 11 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02095/0.7436, allocations: 8.643 MB / 0.6026 GB, free: 2.285 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001169/0.7448, allocations: 0.907 MB / 0.6035 GB, free: 1.375 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005583/0.7504, allocations: 1.199 MB / 0.6047 GB, free: 180 kB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4855/1.236, allocations: 18.8 MB / 0.623 GB, free: 138.9 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006281/1.237, allocations: 18.91 kB / 0.623 GB, free: 138.9 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003798/1.24, allocations: 0.4937 MB / 0.6235 GB, free: 138.9 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008285/1.241, allocations: 0.6542 MB / 0.6242 GB, free: 138.9 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03678/1.278, allocations: 17.04 MB / 0.6408 GB, free: 133.1 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.102/1.38, allocations: 63.36 MB / 0.7027 GB, free: 87.93 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02358/1.404, allocations: 29.56 MB / 0.7315 GB, free: 54.89 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006022/1.41, allocations: 3.684 MB / 0.7351 GB, free: 51.2 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01934/1.429, allocations: 10.42 MB / 0.7453 GB, free: 40.89 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.874e-05/1.429, allocations: 77.73 kB / 0.7454 GB, free: 40.8 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=402): time 6.352e-06/1.429, allocations: 11.88 kB / 0.7454 GB, free: 40.79 MB / 0.5138 GB Notification: Performance of matching and sorting (n=412): time 0.04577/1.475, allocations: 20.4 MB / 0.7653 GB, free: 20.57 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.904e-05/1.475, allocations: 124.4 kB / 0.7654 GB, free: 20.43 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008353/1.483, allocations: 5.197 MB / 0.7705 GB, free: 15.3 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0007391/1.484, allocations: 93.7 kB / 0.7706 GB, free: 15.2 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.003035/1.487, allocations: 5.554 MB / 0.776 GB, free: 9.766 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.00192/1.489, allocations: 1.493 MB / 0.7775 GB, free: 8.293 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003864/1.493, allocations: 1.255 MB / 0.7787 GB, free: 7.027 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.075e-05/1.493, allocations: 305.1 kB / 0.779 GB, free: 6.727 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004548/1.497, allocations: 2.859 MB / 0.7818 GB, free: 3.863 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006379/1.504, allocations: 5.358 MB / 0.787 GB, free: 13.35 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01401/1.518, allocations: 8.747 MB / 0.7956 GB, free: 3.422 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.346e-05/1.518, allocations: 24 kB / 0.7956 GB, free: 3.398 MB / 0.5294 GB Notification: Performance of matching and sorting (n=828) (initialization): time 0.02353/1.541, allocations: 9.706 MB / 0.8051 GB, free: 9.613 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.000136/1.541, allocations: 40 kB / 0.8051 GB, free: 9.574 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001865/1.542, allocations: 80 kB / 0.8052 GB, free: 9.496 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003857/1.545, allocations: 1.115 MB / 0.8063 GB, free: 8.367 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006809/1.552, allocations: 1.455 MB / 0.8077 GB, free: 6.91 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02993/1.582, allocations: 13.49 MB / 0.8209 GB, free: 8.875 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006976/1.589, allocations: 359.5 kB / 0.8212 GB, free: 8.523 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001365/1.591, allocations: 324 kB / 0.8215 GB, free: 8.207 MB / 0.5607 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 373 * 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 (764): * Single equations (assignments): 758 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * 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): 4 systems {(1,1,100.0%), (10,46,50.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01198/1.603, allocations: 4.24 MB / 0.8257 GB, free: 3.953 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002714/1.605, allocations: 0.5551 MB / 0.8262 GB, free: 3.395 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0243/1.63, allocations: 7.065 MB / 0.8331 GB, free: 12.22 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01346/1.643, allocations: 4.218 MB / 0.8372 GB, free: 7.953 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.664e-05/1.643, allocations: 16 kB / 0.8372 GB, free: 7.938 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001167/1.643, allocations: 23.86 kB / 0.8373 GB, free: 7.914 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2889/1.932, allocations: 16.95 MB / 0.8538 GB, free: 188.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-05/1.932, allocations: 8.406 kB / 0.8538 GB, free: 188.9 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003507/1.936, allocations: 0.6852 MB / 0.8545 GB, free: 188.9 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003982/1.94, allocations: 1.183 MB / 0.8556 GB, free: 188.6 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000905/1.941, allocations: 101.3 kB / 0.8557 GB, free: 188.5 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0199/1.96, allocations: 17.4 MB / 0.8727 GB, free: 175.6 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.775e-06/1.96, allocations: 9.359 kB / 0.8727 GB, free: 175.6 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01822/1.979, allocations: 10.3 MB / 0.8828 GB, free: 171.1 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003536/1.982, allocations: 1.143 MB / 0.8839 GB, free: 170.7 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002039/1.984, allocations: 81.97 kB / 0.884 GB, free: 170.7 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004166/1.988, allocations: 203.7 kB / 0.8842 GB, free: 170.6 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001445/1.99, allocations: 312.4 kB / 0.8845 GB, free: 170.6 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007817/1.991, allocations: 127.7 kB / 0.8846 GB, free: 170.5 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.008104/1.999, allocations: 3.484 MB / 0.888 GB, free: 169.2 MB / 0.5763 GB Notification: Performance of sort global known variables: time 6.01e-07/1.999, allocations: 0.8125 kB / 0.888 GB, free: 169.2 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.01173/2.01, allocations: 1.96 MB / 0.8899 GB, free: 169.1 MB / 0.5763 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 10 (smpm.inertiaRotor.w,smpm.stator.zeroInductor.i0,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,smpmQS.inertiaRotor.w,smpmQS.rotorCage.port_p.reference.gamma,loadInertiaMQS.phi) * 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 (353): * Single equations (assignments): 346 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,1,100.0%), (1,5,100.0%), (1,8,100.0%), (2,13,100.0%), (1,1,100.0%), (10,46,52.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01894/2.029, allocations: 11.04 MB / 0.9007 GB, free: 164 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01233/2.042, allocations: 7.408 MB / 0.9079 GB, free: 160.8 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 8.215e-06/2.042, allocations: 0 / 0.9079 GB, free: 160.8 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.006761/2.048, allocations: 3.873 MB / 0.9117 GB, free: 157.3 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00945/2.058, allocations: 1.458 MB / 0.9132 GB, free: 156.2 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.116/2.174, allocations: 66.79 MB / 0.9784 GB, free: 89.88 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01247/2.186, allocations: 7.378 MB / 0.9856 GB, free: 82.46 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.006208/2.193, allocations: 2.001 MB / 0.9875 GB, free: 80.45 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006732/2.199, allocations: 4.42 MB / 0.9919 GB, free: 76.03 MB / 0.5763 GB Notification: Performance of SimCode: time 1.824e-06/2.199, allocations: 0 / 0.9919 GB, free: 76.03 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4593/2.659, allocations: 159.4 MB / 1.148 GB, free: 130.3 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.13/26.79, allocations: 5.078 kB / 1.148 GB, free: 130.3 MB / 0.5763 GB " [Timeout remaining time 633] (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 29.561771501787007] Failed to read output from testmodel.py, exit status != 0: ['time', 'Itr', 'Iqs', 'loadInertiaM.phi', 'loadInertiaM.w', 'loadInertiaMQS.phi', 'loadInertiaMQS.w', 'smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[1].Phi.re', 'smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im', 'smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter[1].Phi.re', 'smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im'] 26.967499150894582 26.979868053 26.35836124 Calling exit ...