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.001701/0.001701, allocations: 105.1 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.00217/0.00217, allocations: 213.9 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.051 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.001954/0.001954, allocations: 67.89 kB / 378.6 MB, free: 3.125 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2467/0.2487, allocations: 53.37 MB / 432 MB, free: 6.871 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.04355/0.2922, allocations: 38.13 MB / 470.1 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02402/0.3163, allocations: 10.34 MB / 480.4 MB, free: 6.203 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00769/0.324, allocations: 334.2 kB / 480.8 MB, free: 5.875 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02369/0.3476, allocations: 9.271 MB / 490 MB, free: 12.58 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0149/0.3625, allocations: 4.096 MB / 494.1 MB, free: 8.465 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008168/0.3707, allocations: 2.497 MB / 496.6 MB, free: 5.977 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02144/0.3921, allocations: 14.34 MB / 0.499 GB, free: 7.594 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03148/0.4236, allocations: 17.13 MB / 0.5157 GB, free: 6.309 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01331/0.4369, allocations: 7.379 MB / 0.5229 GB, free: 14.91 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01368/0.4506, allocations: 8.16 MB / 0.5309 GB, free: 6.723 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005645/0.4563, allocations: 2.023 MB / 0.5329 GB, free: 4.699 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008113/0.4644, allocations: 2.46 MB / 0.5353 GB, free: 2.238 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.4636/0.928, allocations: 4.042 MB / 0.5392 GB, free: 32.54 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01929/0.9473, allocations: 7.826 MB / 0.5469 GB, free: 32.06 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03527/0.9825, allocations: 27.06 MB / 0.5733 GB, free: 24.72 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/0.9825, allocations: 5.5 kB / 0.5733 GB, free: 24.72 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.9825, allocations: 0 / 0.5733 GB, free: 24.72 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0008792/0.9834, allocations: 0 / 0.5733 GB, free: 24.72 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: 3330 * Number of variables: 3330 Notification: Performance of Generate backend data structure: time 0.05081/1.034, allocations: 16.1 MB / 0.589 GB, free: 14.5 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.737e-05/1.034, allocations: 11.72 kB / 0.589 GB, free: 14.5 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007746/1.042, allocations: 1.929 MB / 0.5909 GB, free: 13.26 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.036/1.078, allocations: 6.434 MB / 0.5972 GB, free: 10.3 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02149/1.1, allocations: 8.666 MB / 0.6057 GB, free: 3.73 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008684/1.1, allocations: 0.9024 MB / 0.6065 GB, free: 2.836 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005533/1.106, allocations: 1.195 MB / 0.6077 GB, free: 1.652 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05539/1.161, allocations: 18.81 MB / 0.6261 GB, free: 14.77 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007771/1.162, allocations: 19.91 kB / 0.6261 GB, free: 14.75 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006279/1.168, allocations: 0.489 MB / 0.6266 GB, free: 14.28 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009126/1.169, allocations: 0.6498 MB / 0.6272 GB, free: 13.62 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04491/1.214, allocations: 17.04 MB / 0.6438 GB, free: 12.58 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1369/1.351, allocations: 60.41 MB / 0.7028 GB, free: 15.98 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02485/1.376, allocations: 10.96 MB / 0.7135 GB, free: 6.133 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008406/1.384, allocations: 3.676 MB / 0.7171 GB, free: 2.453 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02781/1.412, allocations: 10.02 MB / 0.7269 GB, free: 8.559 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.777e-05/1.412, allocations: 73.8 kB / 0.727 GB, free: 8.477 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=402): time 6.813e-06/1.412, allocations: 0 / 0.727 GB, free: 8.477 MB / 0.5607 GB Notification: Performance of matching and sorting (n=412): time 0.05731/1.47, allocations: 19.73 MB / 0.7463 GB, free: 4.672 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001244/1.47, allocations: 116.4 kB / 0.7464 GB, free: 4.535 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2711/1.741, allocations: 5.186 MB / 0.7514 GB, free: 201.1 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.001039/1.742, allocations: 94.86 kB / 0.7515 GB, free: 201.1 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.005628/1.747, allocations: 5.545 MB / 0.7569 GB, free: 199.4 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.002481/1.75, allocations: 1.497 MB / 0.7584 GB, free: 198.4 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004343/1.754, allocations: 1.268 MB / 0.7596 GB, free: 198.3 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 5.873e-05/1.754, allocations: 303.1 kB / 0.7599 GB, free: 198 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005093/1.759, allocations: 2.856 MB / 0.7627 GB, free: 198 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006833/1.766, allocations: 5.352 MB / 0.7679 GB, free: 194.5 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0109/1.777, allocations: 8.752 MB / 0.7765 GB, free: 188.4 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000157/1.777, allocations: 23.06 kB / 0.7765 GB, free: 188.4 MB / 0.5763 GB Notification: Performance of matching and sorting (n=828) (initialization): time 0.01877/1.796, allocations: 9.628 MB / 0.7859 GB, free: 184.4 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 9.156e-05/1.796, allocations: 38.88 kB / 0.786 GB, free: 184.4 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001475/1.796, allocations: 85.78 kB / 0.786 GB, free: 184.4 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003144/1.799, allocations: 1.119 MB / 0.7871 GB, free: 184.1 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005961/1.805, allocations: 1.453 MB / 0.7886 GB, free: 184 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01498/1.82, allocations: 13.07 MB / 0.8013 GB, free: 175 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006756/1.827, allocations: 355.4 kB / 0.8017 GB, free: 174.9 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001761/1.829, allocations: 325.1 kB / 0.802 GB, free: 174.8 MB / 0.5763 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.009328/1.838, allocations: 4.237 MB / 0.8061 GB, free: 172.7 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001893/1.84, allocations: 0.5611 MB / 0.8067 GB, free: 172.3 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01376/1.854, allocations: 6.916 MB / 0.8134 GB, free: 166.4 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007332/1.861, allocations: 4.211 MB / 0.8175 GB, free: 162.8 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.042e-05/1.861, allocations: 20 kB / 0.8175 GB, free: 162.8 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.684e-05/1.861, allocations: 22.36 kB / 0.8176 GB, free: 162.8 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03629/1.898, allocations: 16.85 MB / 0.834 GB, free: 147.8 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-05/1.898, allocations: 4 kB / 0.834 GB, free: 147.8 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003285/1.901, allocations: 0.6949 MB / 0.8347 GB, free: 147.1 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003355/1.904, allocations: 1.18 MB / 0.8358 GB, free: 145.9 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008666/1.905, allocations: 104 kB / 0.8359 GB, free: 145.8 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01592/1.921, allocations: 16.78 MB / 0.8523 GB, free: 128.4 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/1.921, allocations: 4 kB / 0.8523 GB, free: 128.3 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01505/1.936, allocations: 10.14 MB / 0.8622 GB, free: 118.1 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003204/1.939, allocations: 1.086 MB / 0.8633 GB, free: 117 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001738/1.941, allocations: 87.7 kB / 0.8634 GB, free: 116.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003702/1.945, allocations: 203.8 kB / 0.8636 GB, free: 116.7 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009796/1.946, allocations: 323.2 kB / 0.8639 GB, free: 116.4 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004155/1.946, allocations: 132 kB / 0.864 GB, free: 116.2 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.005873/1.952, allocations: 3.485 MB / 0.8674 GB, free: 112.8 MB / 0.5763 GB Notification: Performance of sort global known variables: time 1.9e-07/1.952, allocations: 4 kB / 0.8674 GB, free: 112.8 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.008872/1.961, allocations: 1.957 MB / 0.8693 GB, free: 110.8 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.01763/1.979, allocations: 10.88 MB / 0.8799 GB, free: 99.8 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01331/1.992, allocations: 7.34 MB / 0.8871 GB, free: 92.4 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.252e-05/1.992, allocations: 6.062 kB / 0.8871 GB, free: 92.4 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.006753/1.999, allocations: 3.88 MB / 0.8909 GB, free: 88.45 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00918/2.008, allocations: 1.45 MB / 0.8923 GB, free: 87.05 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1244/2.132, allocations: 66.8 MB / 0.9576 GB, free: 17.02 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01472/2.147, allocations: 7.385 MB / 0.9648 GB, free: 9.594 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.007128/2.154, allocations: 2.001 MB / 0.9667 GB, free: 7.586 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008733/2.163, allocations: 4.42 MB / 0.971 GB, free: 3.164 MB / 0.5763 GB Notification: Performance of SimCode: time 1.703e-06/2.163, allocations: 0 / 0.971 GB, free: 3.164 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4865/2.649, allocations: 164.8 MB / 1.132 GB, free: 73.97 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.27/27.91, allocations: 11.06 kB / 1.132 GB, free: 73.96 MB / 0.5763 GB " [Timeout remaining time 632] (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: 30.61714943870902] 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'] 28.095483746845275 28.108134293 27.122778506 Calling exit ...