Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.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.001796/0.001796, allocations: 106.5 kB / 21.23 MB, free: 0.6562 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.002427/0.002427, allocations: 213.2 kB / 24.54 MB, free: 4.016 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.45/1.45, allocations: 230.6 MB / 258.3 MB, free: 8.062 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.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_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.002288/0.002288, allocations: 63.89 kB / 378.6 MB, free: 3.121 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2743/0.2766, allocations: 53.37 MB / 432 MB, free: 6.871 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.02904/0.3056, allocations: 24.91 MB / 456.9 MB, free: 13.86 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01649/0.3221, allocations: 7.428 MB / 464.3 MB, free: 6.402 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005471/0.3276, allocations: 179 kB / 464.5 MB, free: 6.227 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005748/0.3333, allocations: 1.65 MB / 466.1 MB, free: 4.562 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009475/0.3428, allocations: 2.38 MB / 468.5 MB, free: 2.168 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004899/0.3477, allocations: 1.518 MB / 470 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01186/0.3596, allocations: 7.267 MB / 477.3 MB, free: 9.359 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006784/0.3663, allocations: 3.177 MB / 480.5 MB, free: 6.098 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00626/0.3726, allocations: 3.286 MB / 483.7 MB, free: 2.801 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007403/0.38, allocations: 4.032 MB / 487.8 MB, free: 14.75 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002785/0.3828, allocations: 0.8711 MB / 488.7 MB, free: 13.88 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004238/0.387, allocations: 1.374 MB / 490 MB, free: 12.51 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00346/0.3905, allocations: 2.146 MB / 492.2 MB, free: 10.36 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006932/0.3974, allocations: 3.796 MB / 496 MB, free: 6.543 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01682/0.4142, allocations: 11.55 MB / 0.4956 GB, free: 10.95 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.962e-06/0.4142, allocations: 0 / 0.4956 GB, free: 10.95 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.4142, allocations: 0 / 0.4956 GB, free: 10.95 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003297/0.4146, allocations: 0 / 0.4956 GB, free: 10.95 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.02207/0.4367, allocations: 7.559 MB / 0.503 GB, free: 3.32 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.094e-05/0.4367, allocations: 8.031 kB / 0.503 GB, free: 3.312 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002396/0.4391, allocations: 0.774 MB / 0.5038 GB, free: 2.527 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007478/0.4466, allocations: 1.265 MB / 0.505 GB, free: 1.258 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01103/0.4576, allocations: 4.1 MB / 0.509 GB, free: 13.08 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005566/0.4582, allocations: 427.8 kB / 0.5094 GB, free: 12.66 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002197/0.4604, allocations: 0.5546 MB / 0.51 GB, free: 12.11 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01941/0.4798, allocations: 7.296 MB / 0.5171 GB, free: 4.758 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002295/0.48, allocations: 15.88 kB / 0.5171 GB, free: 4.742 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001328/0.4813, allocations: 232 kB / 0.5173 GB, free: 4.516 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003309/0.4817, allocations: 259.3 kB / 0.5176 GB, free: 4.262 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01618/0.4978, allocations: 6.131 MB / 0.5236 GB, free: 14.12 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2791/0.777, allocations: 23.1 MB / 0.5461 GB, free: 83.34 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006543/0.7835, allocations: 3.925 MB / 0.5499 GB, free: 82.82 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003917/0.7874, allocations: 2.282 MB / 0.5522 GB, free: 82.02 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01201/0.7994, allocations: 6.308 MB / 0.5583 GB, free: 79.23 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.598e-05/0.7995, allocations: 60.16 kB / 0.5584 GB, free: 79.18 MB / 446.1 MB Notification: Performance of pre-optimization done (n=238): time 5.29e-06/0.7995, allocations: 3.875 kB / 0.5584 GB, free: 79.18 MB / 446.1 MB Notification: Performance of matching and sorting (n=282): time 0.03079/0.8303, allocations: 13.22 MB / 0.5713 GB, free: 72.69 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.953e-05/0.8303, allocations: 82.78 kB / 0.5714 GB, free: 72.62 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005748/0.836, allocations: 3.455 MB / 0.5748 GB, free: 69.48 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000479/0.8365, allocations: 69.7 kB / 0.5748 GB, free: 69.4 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00157/0.8381, allocations: 2.77 MB / 0.5775 GB, free: 66.97 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009815/0.8391, allocations: 1.02 MB / 0.5785 GB, free: 65.98 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001655/0.8407, allocations: 0.6414 MB / 0.5792 GB, free: 65.33 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.72e-05/0.8408, allocations: 305.1 kB / 0.5794 GB, free: 65.03 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002576/0.8434, allocations: 1.545 MB / 0.581 GB, free: 63.48 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002849/0.8462, allocations: 2.748 MB / 0.5836 GB, free: 60.2 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005623/0.8518, allocations: 4.606 MB / 0.5881 GB, free: 55.02 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.484e-05/0.8519, allocations: 12 kB / 0.5881 GB, free: 55.01 MB / 446.1 MB Notification: Performance of matching and sorting (n=472) (initialization): time 0.009239/0.8611, allocations: 5.349 MB / 0.5934 GB, free: 49.59 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.871e-05/0.8611, allocations: 20.66 kB / 0.5934 GB, free: 49.57 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.918e-05/0.8612, allocations: 44 kB / 0.5934 GB, free: 49.53 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001485/0.8627, allocations: 0.6781 MB / 0.5941 GB, free: 48.84 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003181/0.8659, allocations: 0.8541 MB / 0.5949 GB, free: 47.98 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008467/0.8743, allocations: 10.08 MB / 0.6048 GB, free: 37.46 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003608/0.8779, allocations: 223.8 kB / 0.605 GB, free: 37.25 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005132/0.8784, allocations: 179.7 kB / 0.6052 GB, free: 37.07 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 175 * 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 (427): * Single equations (assignments): 417 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {(2,100.0%), (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 {(3,12,100.0%), (1,6,100.0%), (2,13,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002809/0.8813, allocations: 1.629 MB / 0.6067 GB, free: 35.43 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009562/0.8822, allocations: 409.4 kB / 0.6071 GB, free: 35.03 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006934/0.8891, allocations: 4.27 MB / 0.6113 GB, free: 30.7 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.966e-05/0.8892, allocations: 35.94 kB / 0.6113 GB, free: 30.66 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.582e-05/0.8892, allocations: 8 kB / 0.6114 GB, free: 30.65 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.669e-05/0.8892, allocations: 23.88 kB / 0.6114 GB, free: 30.63 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0178/0.907, allocations: 9.663 MB / 0.6208 GB, free: 20.86 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.19e-05/0.907, allocations: 4.656 kB / 0.6208 GB, free: 20.85 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002163/0.9092, allocations: 0.4954 MB / 0.6213 GB, free: 20.36 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001823/0.911, allocations: 0.7485 MB / 0.622 GB, free: 19.59 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003381/0.9114, allocations: 67.97 kB / 0.6221 GB, free: 19.52 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01079/0.9222, allocations: 13.64 MB / 0.6354 GB, free: 5.215 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.622e-06/0.9222, allocations: 11.88 kB / 0.6354 GB, free: 5.203 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01124/0.9334, allocations: 6.39 MB / 0.6417 GB, free: 14.62 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002562/0.936, allocations: 0.7237 MB / 0.6424 GB, free: 13.89 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00116/0.9371, allocations: 63.92 kB / 0.6424 GB, free: 13.83 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002965/0.9401, allocations: 163.8 kB / 0.6426 GB, free: 13.67 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007783/0.9409, allocations: 217.6 kB / 0.6428 GB, free: 13.46 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004048/0.9413, allocations: 83.91 kB / 0.6429 GB, free: 13.38 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005398/0.9467, allocations: 2.334 MB / 0.6452 GB, free: 11.06 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.9467, allocations: 0 / 0.6452 GB, free: 11.06 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005876/0.9525, allocations: 1.097 MB / 0.6462 GB, free: 9.965 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.stray.Phi.re,smeeM.stator.stray.Phi.im,smeeE.phiMechanical,smeeE.idq_sr[1],smeeE.idq_sr[2],smeeE.idq_rr[2],smeeE.idq_dr[1]) * 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 (235): * Single equations (assignments): 225 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * 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 {(2,13,100.0%), (1,5,100.0%), (1,8,100.0%), (3,12,100.0%), (1,6,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01531/0.9679, allocations: 7.157 MB / 0.6532 GB, free: 2.613 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.009657/0.9775, allocations: 4.38 MB / 0.6575 GB, free: 14.15 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.167e-06/0.9775, allocations: 0.5 kB / 0.6575 GB, free: 14.15 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005916/0.9834, allocations: 2.722 MB / 0.6602 GB, free: 11.35 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006255/0.9897, allocations: 0.9171 MB / 0.6611 GB, free: 10.45 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09152/1.081, allocations: 39.03 MB / 0.6992 GB, free: 1.891 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007162/1.088, allocations: 3.515 MB / 0.7026 GB, free: 14.34 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004077/1.092, allocations: 0.8564 MB / 0.7034 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004716/1.097, allocations: 2.276 MB / 0.7057 GB, free: 11.2 MB / 0.5137 GB Notification: Performance of SimCode: time 1.223e-06/1.097, allocations: 0 / 0.7057 GB, free: 11.2 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4255/1.523, allocations: 97.73 MB / 0.8011 GB, free: 157.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.42/20.94, allocations: 6.797 kB / 0.8011 GB, free: 157.4 MB / 0.545 GB " [Timeout remaining time 639] (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.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_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 23.739058217965066] Failed to read output from testmodel.py, exit status != 0: ['time', 'constantSpeedE.phi', 'constantSpeedM.phi', 'smeeE.is[1]', 'smeeE.is[2]', 'smeeE.idq_dr[1]', 'smeeE.idq_rr[2]', 'smeeE.idq_sr[1]', 'smeeE.idq_sr[2]', 'smeeM.is[1]', 'smeeM.is[2]', 'smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter[1].Phi.re', 'smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im', 'smeeM.stator.stray.port_p.Phi.im', 'smeeM.stator.stray.port_p.Phi.re'] 21.095368487760425 21.108152383 20.690481019 Calling exit ...