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.SMR_CurrentSource.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.001396/0.001396, allocations: 109.4 kB / 19.8 MB, free: 2.516 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.001476/0.001476, allocations: 219.7 kB / 23 MB, free: 5.605 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.435/1.435, allocations: 230.5 MB / 256.5 MB, free: 8.418 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.SMR_CurrentSource,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",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.002208/0.002208, allocations: 63.84 kB / 376.3 MB, free: 3.977 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2856/0.2878, allocations: 53.32 MB / 429.6 MB, free: 7.383 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.0501/0.3379, allocations: 40.33 MB / 469.9 MB, free: 14.88 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02524/0.3631, allocations: 10.69 MB / 480.6 MB, free: 4.16 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009658/0.3728, allocations: 307 kB / 480.9 MB, free: 3.859 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02218/0.395, allocations: 8.633 MB / 489.5 MB, free: 11.21 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0137/0.4087, allocations: 3.489 MB / 493 MB, free: 7.703 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008344/0.417, allocations: 2.393 MB / 495.4 MB, free: 5.312 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02025/0.4372, allocations: 12.97 MB / 0.4965 GB, free: 8.297 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03854/0.4758, allocations: 16.2 MB / 0.5123 GB, free: 7.957 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01347/0.4893, allocations: 6.841 MB / 0.519 GB, free: 1.098 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01476/0.504, allocations: 7.923 MB / 0.5267 GB, free: 9.148 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006239/0.5103, allocations: 1.949 MB / 0.5286 GB, free: 7.199 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007658/0.5179, allocations: 2.363 MB / 0.5309 GB, free: 4.836 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006615/0.5245, allocations: 3.978 MB / 0.5348 GB, free: 0.8477 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2547/0.7793, allocations: 7.561 MB / 0.5422 GB, free: 29.97 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02903/0.8083, allocations: 25.96 MB / 0.5675 GB, free: 24.4 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.8083, allocations: 0 / 0.5675 GB, free: 24.4 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.8083, allocations: 1.312 kB / 0.5675 GB, free: 24.4 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0007909/0.8091, allocations: 0 / 0.5675 GB, free: 24.4 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: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.04561/0.8547, allocations: 15.33 MB / 0.5825 GB, free: 15.22 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.503e-05/0.8547, allocations: 10.47 kB / 0.5825 GB, free: 15.22 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006073/0.8608, allocations: 1.718 MB / 0.5842 GB, free: 14 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03645/0.8973, allocations: 6.124 MB / 0.5902 GB, free: 11.18 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01671/0.914, allocations: 8.107 MB / 0.5981 GB, free: 5.965 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007462/0.9147, allocations: 0.9049 MB / 0.599 GB, free: 5.535 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004812/0.9195, allocations: 1.198 MB / 0.6001 GB, free: 4.348 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05196/0.9715, allocations: 18.69 MB / 0.6184 GB, free: 1.605 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000388/0.9719, allocations: 23.91 kB / 0.6184 GB, free: 1.582 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003434/0.9753, allocations: 0.4923 MB / 0.6189 GB, free: 1.102 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000736/0.976, allocations: 0.646 MB / 0.6195 GB, free: 464 kB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04058/1.017, allocations: 16.8 MB / 0.6359 GB, free: 15.65 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1167/1.133, allocations: 58.99 MB / 0.6935 GB, free: 4.148 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03336/1.167, allocations: 32.79 MB / 0.7256 GB, free: 15.45 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006986/1.174, allocations: 3.413 MB / 0.7289 GB, free: 12.02 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01752/1.191, allocations: 8.885 MB / 0.7376 GB, free: 3.156 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.082e-05/1.191, allocations: 81.25 kB / 0.7377 GB, free: 3.066 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=349): time 4.809e-06/1.191, allocations: 0 / 0.7377 GB, free: 3.066 MB / 0.5762 GB Notification: Performance of matching and sorting (n=389): time 0.0416/1.233, allocations: 17.74 MB / 0.755 GB, free: 1.246 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.115e-05/1.233, allocations: 90.47 kB / 0.7551 GB, free: 1.145 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2494/1.482, allocations: 5.035 MB / 0.76 GB, free: 222.3 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0008358/1.483, allocations: 93.27 kB / 0.7601 GB, free: 222.3 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.00372/1.487, allocations: 5.639 MB / 0.7656 GB, free: 220.3 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.001482/1.488, allocations: 1.416 MB / 0.767 GB, free: 219.4 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002165/1.491, allocations: 1.336 MB / 0.7683 GB, free: 219.3 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 4.572e-05/1.491, allocations: 303.2 kB / 0.7686 GB, free: 219 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004459/1.495, allocations: 2.913 MB / 0.7714 GB, free: 219 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00515/1.5, allocations: 5.883 MB / 0.7771 GB, free: 214.1 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009523/1.51, allocations: 9.449 MB / 0.7864 GB, free: 207.1 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.536e-05/1.51, allocations: 32.62 kB / 0.7864 GB, free: 207.1 MB / 0.5919 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01522/1.525, allocations: 9.871 MB / 0.796 GB, free: 203 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 8.585e-05/1.525, allocations: 46.12 kB / 0.7961 GB, free: 203 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001639/1.525, allocations: 103.5 kB / 0.7962 GB, free: 203 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002297/1.528, allocations: 0.9381 MB / 0.7971 GB, free: 202.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00544/1.533, allocations: 1.59 MB / 0.7987 GB, free: 202.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01015/1.543, allocations: 10.18 MB / 0.8086 GB, free: 192.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00582/1.549, allocations: 404.5 kB / 0.809 GB, free: 192.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001231/1.55, allocations: 363.1 kB / 0.8093 GB, free: 191.9 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 455 * 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 (816): * Single equations (assignments): 811 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007593/1.558, allocations: 4.245 MB / 0.8135 GB, free: 188.2 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001354/1.559, allocations: 0.5393 MB / 0.814 GB, free: 187.7 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01055/1.57, allocations: 6.468 MB / 0.8203 GB, free: 182.2 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.539e-05/1.57, allocations: 40 kB / 0.8204 GB, free: 182.2 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.499e-05/1.57, allocations: 8.844 kB / 0.8204 GB, free: 182.2 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.424e-05/1.57, allocations: 19.03 kB / 0.8204 GB, free: 182.2 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02543/1.595, allocations: 15.72 MB / 0.8357 GB, free: 168.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-05/1.595, allocations: 4 kB / 0.8357 GB, free: 168.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002977/1.598, allocations: 0.7454 MB / 0.8365 GB, free: 168 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00196/1.6, allocations: 0.7995 MB / 0.8372 GB, free: 167.2 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002654/1.6, allocations: 83.97 kB / 0.8373 GB, free: 167.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008405/1.609, allocations: 9.354 MB / 0.8465 GB, free: 157.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.908e-06/1.609, allocations: 6.406 kB / 0.8465 GB, free: 157.3 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01255/1.621, allocations: 9.526 MB / 0.8558 GB, free: 147.7 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002306/1.624, allocations: 1.09 MB / 0.8568 GB, free: 146.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007908/1.624, allocations: 68 kB / 0.8569 GB, free: 146.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002519/1.627, allocations: 219.8 kB / 0.8571 GB, free: 146.3 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005387/1.628, allocations: 262.7 kB / 0.8574 GB, free: 146.1 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002459/1.628, allocations: 120 kB / 0.8575 GB, free: 145.9 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.005109/1.633, allocations: 3.363 MB / 0.8608 GB, free: 142.6 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.11e-07/1.633, allocations: 7.938 kB / 0.8608 GB, free: 142.6 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0078/1.641, allocations: 1.879 MB / 0.8626 GB, free: 140.7 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.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 (368): * Single equations (assignments): 363 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 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): 3 systems {(1,1,100.0%), (8,38,59.4%), (1,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.01366/1.654, allocations: 10.24 MB / 0.8726 GB, free: 130.4 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01174/1.666, allocations: 7.369 MB / 0.8798 GB, free: 122.9 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 8.756e-06/1.666, allocations: 4.25 kB / 0.8798 GB, free: 122.9 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.006023/1.672, allocations: 3.339 MB / 0.8831 GB, free: 119.5 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008006/1.68, allocations: 1.295 MB / 0.8843 GB, free: 118.2 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1045/1.785, allocations: 65.28 MB / 0.9481 GB, free: 49.11 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01096/1.796, allocations: 7.329 MB / 0.9552 GB, free: 41.75 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.006085/1.802, allocations: 2.16 MB / 0.9573 GB, free: 39.58 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006617/1.808, allocations: 4.35 MB / 0.9616 GB, free: 35.23 MB / 0.5919 GB Notification: Performance of SimCode: time 2.014e-06/1.808, allocations: 0 / 0.9616 GB, free: 35.23 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4261/2.234, allocations: 149.5 MB / 1.108 GB, free: 114.1 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.85/25.09, allocations: 64 / 1.108 GB, free: 114.1 MB / 0.5919 GB " [Timeout remaining time 635] (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 27.902741449011955] Failed to read output from testmodel.py, exit status != 0: ['time', 'inertiaLoad.phi', 'inertiaLoad.w', 'inertiaLoadQS.phi', 'inertiaLoadQS.w', 'dqToThreePhase.y[1]', 'dqToThreePhase.y[2]', 'dqToThreePhase.y[3]'] 25.255987152981106 25.264817073 24.453491256 Calling exit ...