Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.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.001874/0.001874, allocations: 110.5 kB / 21.23 MB, free: 0.6641 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.002278/0.002278, allocations: 213.2 kB / 24.54 MB, free: 4.02 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.49/1.49, allocations: 230.6 MB / 258.3 MB, free: 8.039 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.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL",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.00198/0.00198, allocations: 63.89 kB / 378.6 MB, free: 3.176 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2941/0.2961, allocations: 53.37 MB / 431.9 MB, free: 6.914 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.01454/0.3106, allocations: 10.33 MB / 442.3 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007848/0.3185, allocations: 3.333 MB / 445.6 MB, free: 9.207 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002209/0.3207, allocations: 75.5 kB / 445.7 MB, free: 9.133 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00257/0.3232, allocations: 0.7414 MB / 446.4 MB, free: 8.387 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003914/0.3272, allocations: 0.8933 MB / 447.3 MB, free: 7.488 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001341/0.3285, allocations: 431.4 kB / 447.7 MB, free: 7.066 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004806/0.3333, allocations: 2.988 MB / 450.7 MB, free: 4.066 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002282/0.3356, allocations: 1.384 MB / 452.1 MB, free: 2.617 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002635/0.3382, allocations: 1.39 MB / 453.5 MB, free: 1.223 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003547/0.3418, allocations: 1.74 MB / 455.2 MB, free: 15.48 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009187/0.3427, allocations: 352 kB / 455.6 MB, free: 15.13 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001372/0.3441, allocations: 471.8 kB / 456 MB, free: 14.67 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001226/0.3453, allocations: 1.044 MB / 457.1 MB, free: 13.62 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002257/0.3475, allocations: 1.606 MB / 458.7 MB, free: 12.01 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006276/0.3538, allocations: 4.721 MB / 463.4 MB, free: 7.273 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/0.3538, allocations: 0 / 463.4 MB, free: 7.273 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.395e-06/0.3538, allocations: 0 / 463.4 MB, free: 7.273 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001483/0.354, allocations: 3.938 kB / 463.4 MB, free: 7.27 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 606 * Number of variables: 606 Notification: Performance of Generate backend data structure: time 0.008522/0.3625, allocations: 3.276 MB / 466.7 MB, free: 3.941 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.977e-05/0.3625, allocations: 8.031 kB / 466.7 MB, free: 3.934 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006375/0.3632, allocations: 337.6 kB / 467 MB, free: 3.594 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001376/0.3646, allocations: 378.9 kB / 467.4 MB, free: 3.223 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004095/0.3687, allocations: 1.717 MB / 469.1 MB, free: 1.469 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001861/0.3688, allocations: 180.5 kB / 469.3 MB, free: 1.289 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006224/0.3695, allocations: 228 kB / 469.5 MB, free: 1.066 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006405/0.3759, allocations: 3.137 MB / 472.6 MB, free: 13.84 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.484e-05/0.3759, allocations: 7.953 kB / 472.6 MB, free: 13.83 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002639/0.3762, allocations: 96 kB / 472.7 MB, free: 13.74 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001529/0.3763, allocations: 112.5 kB / 472.9 MB, free: 13.62 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005679/0.382, allocations: 2.696 MB / 475.5 MB, free: 10.91 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02032/0.4023, allocations: 9.491 MB / 485 MB, free: 1.133 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002992/0.4053, allocations: 1.406 MB / 486.4 MB, free: 15.73 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002148/0.4075, allocations: 1.039 MB / 487.5 MB, free: 14.7 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002793/0.4078, allocations: 52.95 kB / 487.5 MB, free: 14.64 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.8e-05/0.4078, allocations: 51.55 kB / 487.6 MB, free: 14.58 MB / 398.1 MB Notification: Performance of pre-optimization done (n=116): time 3.527e-06/0.4078, allocations: 0 / 487.6 MB, free: 14.58 MB / 398.1 MB Notification: Performance of matching and sorting (n=131): time 0.01697/0.4248, allocations: 6.351 MB / 493.9 MB, free: 8.191 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.617e-05/0.4249, allocations: 64.72 kB / 494 MB, free: 8.117 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003652/0.4285, allocations: 1.763 MB / 495.8 MB, free: 6.352 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000186/0.4287, allocations: 49.7 kB / 495.8 MB, free: 6.297 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001196/0.4299, allocations: 1.19 MB / 497 MB, free: 5.094 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005599/0.4305, allocations: 476 kB / 497.5 MB, free: 4.625 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006055/0.4311, allocations: 287.5 kB / 497.7 MB, free: 4.336 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.4312, allocations: 301.1 kB / 498 MB, free: 4.039 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001468/0.4327, allocations: 0.7886 MB / 498.8 MB, free: 3.25 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001891/0.4346, allocations: 1.201 MB / 0.4883 GB, free: 1.879 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003469/0.438, allocations: 2.098 MB / 0.4904 GB, free: 15.61 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.167e-05/0.438, allocations: 4 kB / 0.4904 GB, free: 15.6 MB / 414.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.00522/0.4433, allocations: 2.596 MB / 0.4929 GB, free: 12.98 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.78e-05/0.4433, allocations: 20.02 kB / 0.4929 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.747e-05/0.4433, allocations: 15.98 kB / 0.4929 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001097/0.4444, allocations: 415 kB / 0.4933 GB, free: 12.54 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001491/0.4459, allocations: 359.4 kB / 0.4937 GB, free: 12.18 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00835/0.4543, allocations: 6.778 MB / 0.5003 GB, free: 5.07 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001635/0.4559, allocations: 115.8 kB / 0.5004 GB, free: 4.957 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002883/0.4562, allocations: 63.98 kB / 0.5005 GB, free: 4.895 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 3 (idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (174): * Single equations (assignments): 170 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 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): 3 systems {(3,11,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001779/0.458, allocations: 0.7978 MB / 0.5012 GB, free: 4.086 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005786/0.4585, allocations: 194.8 kB / 0.5014 GB, free: 3.895 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004644/0.4632, allocations: 2.288 MB / 0.5037 GB, free: 1.582 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.657e-05/0.4632, allocations: 16 kB / 0.5037 GB, free: 1.566 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.503e-05/0.4632, allocations: 4 kB / 0.5037 GB, free: 1.562 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.655e-05/0.4632, allocations: 11.97 kB / 0.5037 GB, free: 1.551 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01083/0.4741, allocations: 4.997 MB / 0.5086 GB, free: 12.44 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.495e-05/0.4741, allocations: 4 kB / 0.5086 GB, free: 12.44 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001053/0.4751, allocations: 231.7 kB / 0.5088 GB, free: 12.21 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001331/0.4765, allocations: 459.4 kB / 0.5092 GB, free: 11.75 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001355/0.4766, allocations: 39.98 kB / 0.5093 GB, free: 11.71 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009866/0.4865, allocations: 8.222 MB / 0.5173 GB, free: 3.035 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.232e-06/0.4865, allocations: 4 kB / 0.5173 GB, free: 3.031 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007466/0.4939, allocations: 3.443 MB / 0.5207 GB, free: 15.52 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00162/0.4956, allocations: 370.7 kB / 0.521 GB, free: 15.15 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007027/0.4963, allocations: 32 kB / 0.5211 GB, free: 15.12 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001353/0.4976, allocations: 83.91 kB / 0.5211 GB, free: 15.04 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003999/0.498, allocations: 120.7 kB / 0.5212 GB, free: 14.92 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001492/0.4982, allocations: 43.98 kB / 0.5213 GB, free: 14.88 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002811/0.501, allocations: 1.207 MB / 0.5225 GB, free: 13.68 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.501, allocations: 4 kB / 0.5225 GB, free: 13.68 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002688/0.5037, allocations: 0.5038 MB / 0.523 GB, free: 13.17 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 6 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],loadInertia.phi) * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,11,100.0%), (1,1,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.007561/0.5112, allocations: 4.083 MB / 0.527 GB, free: 9 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004647/0.5159, allocations: 2.319 MB / 0.5292 GB, free: 6.645 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.406e-06/0.5159, allocations: 0 / 0.5292 GB, free: 6.645 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002987/0.5189, allocations: 1.548 MB / 0.5307 GB, free: 5.047 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003061/0.5219, allocations: 487.5 kB / 0.5312 GB, free: 4.578 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2402/0.7621, allocations: 19.4 MB / 0.5501 GB, free: 96.05 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001245/0.7633, allocations: 2.005 MB / 0.5521 GB, free: 94.98 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001107/0.7645, allocations: 448.5 kB / 0.5525 GB, free: 94.69 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001045/0.7655, allocations: 0.9297 MB / 0.5534 GB, free: 93.83 MB / 446.1 MB Notification: Performance of SimCode: time 1.372e-06/0.7655, allocations: 0 / 0.5534 GB, free: 93.83 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09034/0.8558, allocations: 49.6 MB / 0.6019 GB, free: 44.77 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 26.44/27.29, allocations: 7.609 kB / 0.6019 GB, free: 44.77 MB / 446.1 MB " [Timeout remaining time 633] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.csv --start-time 0 --stop-time 2.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 29.91242170892656] Failed to read output from testmodel.py, exit status != 0: ['time', 'loadInertia.phi', 'loadInertia.w', 'smr.is[1]', 'smr.is[2]', 'smr.idq_rr[1]', 'smr.idq_rr[2]', 'smr.idq_sr[1]', 'smr.idq_sr[2]'] 27.412289442960173 27.431101986 27.073359613 Calling exit ...