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_MTPA.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.001336/0.001336, allocations: 117.3 kB / 18.5 MB, free: 4.434 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.001385/0.001385, allocations: 218.6 kB / 21.47 MB, free: 1.473 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.499/1.499, allocations: 230.4 MB / 254.7 MB, free: 15 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_MTPA,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",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.001939/0.001939, allocations: 71.88 kB / 373.6 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1064, allocations: 53.3 MB / 426.9 MB, free: 4.816 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.2332/0.3397, allocations: 28.74 MB / 455.7 MB, free: 9.328 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02115/0.3608, allocations: 8.518 MB / 464.2 MB, free: 3.25 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007363/0.3682, allocations: 211.8 kB / 464.4 MB, free: 3.211 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02067/0.3889, allocations: 8.268 MB / 472.6 MB, free: 13.91 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01132/0.4002, allocations: 2.848 MB / 475.5 MB, free: 11.64 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006859/0.4071, allocations: 1.898 MB / 477.4 MB, free: 10.14 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01539/0.4224, allocations: 10.02 MB / 487.4 MB, free: 3.965 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03055/0.453, allocations: 16.33 MB / 0.4919 GB, free: 4.07 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009493/0.4625, allocations: 5.373 MB / 0.4972 GB, free: 14.68 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01091/0.4734, allocations: 6.128 MB / 0.5032 GB, free: 8.535 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004446/0.4778, allocations: 1.543 MB / 0.5047 GB, free: 6.992 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007102/0.4849, allocations: 1.918 MB / 0.5065 GB, free: 5.074 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006575/0.4915, allocations: 2.993 MB / 0.5095 GB, free: 2.074 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01265/0.5042, allocations: 5.852 MB / 0.5152 GB, free: 12.2 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02906/0.5332, allocations: 20.69 MB / 0.5354 GB, free: 7.438 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.5332, allocations: 4 kB / 0.5354 GB, free: 7.434 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.5332, allocations: 0 / 0.5354 GB, free: 7.434 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006627/0.5339, allocations: 0 / 0.5354 GB, free: 7.434 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: 2599 * Number of variables: 2599 Notification: Performance of Generate backend data structure: time 0.03659/0.5705, allocations: 12.09 MB / 0.5472 GB, free: 11.23 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.157e-05/0.5705, allocations: 12.03 kB / 0.5472 GB, free: 11.22 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005162/0.5757, allocations: 1.543 MB / 0.5487 GB, free: 9.668 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0301/0.6058, allocations: 5.597 MB / 0.5542 GB, free: 4.062 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01581/0.6216, allocations: 6.338 MB / 0.5604 GB, free: 13.66 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007371/0.6223, allocations: 0.7024 MB / 0.5611 GB, free: 12.96 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003773/0.6261, allocations: 0.9296 MB / 0.562 GB, free: 12.04 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0383/0.6644, allocations: 15.11 MB / 0.5767 GB, free: 12.84 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003361/0.6648, allocations: 15.95 kB / 0.5767 GB, free: 12.83 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00281/0.6676, allocations: 388 kB / 0.5771 GB, free: 12.45 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005908/0.6682, allocations: 0.5195 MB / 0.5776 GB, free: 11.93 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02983/0.698, allocations: 13.78 MB / 0.5911 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4984/1.196, allocations: 47.7 MB / 0.6377 GB, free: 127.9 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.018/1.214, allocations: 28.23 MB / 0.6652 GB, free: 102.7 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004668/1.219, allocations: 2.807 MB / 0.668 GB, free: 102.6 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004076/1.219, allocations: 348.2 kB / 0.6683 GB, free: 102.3 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.053e-05/1.219, allocations: 70.58 kB / 0.6684 GB, free: 102.3 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=384): time 5.59e-06/1.219, allocations: 4.281 kB / 0.6684 GB, free: 102.3 MB / 0.5138 GB Notification: Performance of matching and sorting (n=392): time 0.02754/1.247, allocations: 14.91 MB / 0.6829 GB, free: 96.99 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.784e-05/1.247, allocations: 95.98 kB / 0.683 GB, free: 96.92 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00542/1.252, allocations: 3.607 MB / 0.6865 GB, free: 95.62 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0006957/1.253, allocations: 89.8 kB / 0.6866 GB, free: 95.54 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002412/1.256, allocations: 4.2 MB / 0.6907 GB, free: 92.88 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001495/1.257, allocations: 1.404 MB / 0.6921 GB, free: 91.79 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001536/1.259, allocations: 1.181 MB / 0.6933 GB, free: 91.21 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.594e-05/1.259, allocations: 304.6 kB / 0.6935 GB, free: 90.92 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003222/1.262, allocations: 2.592 MB / 0.6961 GB, free: 89.91 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00434/1.266, allocations: 5.091 MB / 0.701 GB, free: 85.13 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007881/1.274, allocations: 8.354 MB / 0.7092 GB, free: 78.46 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.963e-05/1.274, allocations: 25.78 kB / 0.7092 GB, free: 78.46 MB / 0.5138 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01267/1.287, allocations: 8.65 MB / 0.7177 GB, free: 73.64 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 5.367e-05/1.287, allocations: 40 kB / 0.7177 GB, free: 73.6 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001069/1.287, allocations: 84 kB / 0.7178 GB, free: 73.52 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001954/1.289, allocations: 0.85 MB / 0.7186 GB, free: 72.66 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003814/1.293, allocations: 1.374 MB / 0.72 GB, free: 71.29 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008532/1.301, allocations: 7.683 MB / 0.7275 GB, free: 63.47 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004718/1.306, allocations: 327.5 kB / 0.7278 GB, free: 63.15 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009822/1.307, allocations: 308 kB / 0.7281 GB, free: 62.85 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 378 * 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 (722): * Single equations (assignments): 721 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,40,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005676/1.313, allocations: 3.517 MB / 0.7315 GB, free: 59.32 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001042/1.314, allocations: 437.2 kB / 0.7319 GB, free: 58.89 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008223/1.322, allocations: 5.953 MB / 0.7377 GB, free: 52.9 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-05/1.322, allocations: 40 kB / 0.7378 GB, free: 52.86 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.215e-05/1.322, allocations: 8 kB / 0.7378 GB, free: 52.86 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.023e-05/1.322, allocations: 27.91 kB / 0.7378 GB, free: 52.83 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0242/1.346, allocations: 14.96 MB / 0.7524 GB, free: 37.82 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.581e-05/1.346, allocations: 8.375 kB / 0.7524 GB, free: 37.82 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0025/1.349, allocations: 0.6982 MB / 0.7531 GB, free: 37.12 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001793/1.351, allocations: 0.7093 MB / 0.7538 GB, free: 36.41 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000526/1.351, allocations: 95.97 kB / 0.7539 GB, free: 36.31 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007603/1.359, allocations: 6.713 MB / 0.7604 GB, free: 29.47 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/1.359, allocations: 4 kB / 0.7605 GB, free: 29.47 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01237/1.371, allocations: 8.777 MB / 0.769 GB, free: 20.56 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002903/1.374, allocations: 0.9042 MB / 0.7699 GB, free: 19.64 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001087/1.375, allocations: 79.92 kB / 0.77 GB, free: 19.56 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002154/1.377, allocations: 183.9 kB / 0.7702 GB, free: 19.38 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004927/1.378, allocations: 266.7 kB / 0.7704 GB, free: 19.12 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003185/1.378, allocations: 124 kB / 0.7705 GB, free: 19 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.003207/1.381, allocations: 2.42 MB / 0.7729 GB, free: 16.59 MB / 0.5138 GB Notification: Performance of sort global known variables: time 8e-08/1.381, allocations: 0 / 0.7729 GB, free: 16.59 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.005614/1.387, allocations: 1.547 MB / 0.7744 GB, free: 15.04 MB / 0.5138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 1 (smpmQS.phiMechanical) * 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 (377): * Single equations (assignments): 376 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,38,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01052/1.397, allocations: 9.493 MB / 0.7837 GB, free: 5.422 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.008788/1.406, allocations: 6.293 MB / 0.7898 GB, free: 15.12 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.023e-06/1.406, allocations: 0 / 0.7898 GB, free: 15.12 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005241/1.411, allocations: 2.737 MB / 0.7925 GB, free: 12.38 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004859/1.416, allocations: 0.9634 MB / 0.7934 GB, free: 11.45 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3334/1.75, allocations: 52.57 MB / 0.8448 GB, free: 187.2 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01083/1.76, allocations: 5.974 MB / 0.8506 GB, free: 185 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.005975/1.766, allocations: 1.891 MB / 0.8524 GB, free: 184.9 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005324/1.772, allocations: 3.231 MB / 0.8556 GB, free: 182.2 MB / 0.5607 GB Notification: Performance of SimCode: time 2.344e-06/1.772, allocations: 0 / 0.8556 GB, free: 182.2 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1775/1.949, allocations: 121.1 MB / 0.9739 GB, free: 77.8 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.39/21.33, allocations: 3.953 kB / 0.9739 GB, free: 77.8 MB / 0.5607 GB " [Timeout remaining time 639] (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 24.02067072223872] Failed to read output from testmodel.py, exit status != 0: ['time', 'quadraticSpeedDependentTorqueQS.phi'] 21.485210335813463 21.503915682 20.967202626 Calling exit ...