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.SMPM_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.00193/0.00193, 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.002306/0.002306, allocations: 211.9 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.566/1.566, allocations: 230.6 MB / 258.3 MB, free: 8.012 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.SMPM_CurrentSource,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_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.002107/0.002107, allocations: 76.73 kB / 378.6 MB, free: 3.113 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2895/0.2916, allocations: 53.36 MB / 431.9 MB, free: 7.035 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.0211/0.3127, allocations: 15.93 MB / 447.9 MB, free: 7.031 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01218/0.3249, allocations: 5.369 MB / 453.2 MB, free: 1.641 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003438/0.3283, allocations: 131.2 kB / 453.4 MB, free: 1.512 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003983/0.3323, allocations: 1.146 MB / 454.5 MB, free: 368 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00561/0.3379, allocations: 1.305 MB / 455.8 MB, free: 15.05 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00322/0.3411, allocations: 0.9341 MB / 456.8 MB, free: 14.11 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006786/0.3479, allocations: 3.658 MB / 460.4 MB, free: 10.44 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004181/0.3521, allocations: 1.913 MB / 462.3 MB, free: 8.457 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003865/0.356, allocations: 1.78 MB / 464.1 MB, free: 6.672 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004258/0.3602, allocations: 2.16 MB / 466.3 MB, free: 4.504 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001443/0.3617, allocations: 476 kB / 466.7 MB, free: 4.039 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002161/0.3638, allocations: 0.7106 MB / 467.4 MB, free: 3.328 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001413/0.3652, allocations: 1.161 MB / 468.6 MB, free: 2.164 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003047/0.3683, allocations: 2.05 MB / 470.7 MB, free: 108 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008728/0.377, allocations: 6.318 MB / 477 MB, free: 9.762 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.623e-06/0.377, allocations: 0 / 477 MB, free: 9.762 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.377, allocations: 0 / 477 MB, free: 9.762 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001745/0.3772, allocations: 0 / 477 MB, free: 9.762 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.0124/0.3896, allocations: 4.291 MB / 481.3 MB, free: 5.41 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.907e-05/0.3896, allocations: 12.03 kB / 481.3 MB, free: 5.398 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001074/0.3907, allocations: 443.3 kB / 481.7 MB, free: 4.953 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003463/0.3942, allocations: 0.6349 MB / 482.3 MB, free: 4.316 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005312/0.3995, allocations: 2.23 MB / 484.6 MB, free: 2.043 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00026/0.3998, allocations: 234.7 kB / 484.8 MB, free: 1.812 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008491/0.4006, allocations: 323.9 kB / 485.1 MB, free: 1.496 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008605/0.4092, allocations: 4.047 MB / 489.2 MB, free: 13.39 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.762e-05/0.4093, allocations: 7.891 kB / 489.2 MB, free: 13.38 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003256/0.4096, allocations: 132 kB / 489.3 MB, free: 13.25 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001709/0.4098, allocations: 146.2 kB / 489.4 MB, free: 13.11 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007021/0.4168, allocations: 3.393 MB / 492.8 MB, free: 9.703 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02578/0.4426, allocations: 12.87 MB / 0.4939 GB, free: 12.42 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00388/0.4465, allocations: 1.752 MB / 0.4956 GB, free: 10.71 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001875/0.4483, allocations: 0.9337 MB / 0.4965 GB, free: 9.781 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005603/0.4539, allocations: 2.47 MB / 0.4989 GB, free: 7.285 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.437e-05/0.454, allocations: 43.56 kB / 0.4989 GB, free: 7.234 MB / 414.1 MB Notification: Performance of pre-optimization done (n=108): time 3.386e-06/0.454, allocations: 0 / 0.4989 GB, free: 7.234 MB / 414.1 MB Notification: Performance of matching and sorting (n=142): time 0.01327/0.4673, allocations: 5.827 MB / 0.5046 GB, free: 1.375 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.295e-05/0.4673, allocations: 68.72 kB / 0.5047 GB, free: 1.297 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003619/0.4709, allocations: 1.906 MB / 0.5065 GB, free: 15.35 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002512/0.4712, allocations: 45.7 kB / 0.5066 GB, free: 15.3 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001441/0.4726, allocations: 1.556 MB / 0.5081 GB, free: 13.73 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00066/0.4733, allocations: 0.5113 MB / 0.5086 GB, free: 13.21 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006032/0.4739, allocations: 335.4 kB / 0.5089 GB, free: 12.88 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.4741, allocations: 309.1 kB / 0.5092 GB, free: 12.57 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001457/0.4755, allocations: 0.7691 MB / 0.51 GB, free: 11.8 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001979/0.4775, allocations: 1.379 MB / 0.5113 GB, free: 10.15 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003588/0.4811, allocations: 2.32 MB / 0.5136 GB, free: 7.562 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.55e-05/0.4811, allocations: 4 kB / 0.5136 GB, free: 7.559 MB / 430.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004849/0.4859, allocations: 2.486 MB / 0.516 GB, free: 5.055 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.607e-05/0.486, allocations: 15.98 kB / 0.516 GB, free: 5.039 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.099e-05/0.486, allocations: 20 kB / 0.5161 GB, free: 5.02 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004189/0.4864, allocations: 122.8 kB / 0.5162 GB, free: 4.891 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002005/0.4884, allocations: 487.2 kB / 0.5166 GB, free: 4.414 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00161/0.4901, allocations: 1.306 MB / 0.5179 GB, free: 2.996 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001933/0.492, allocations: 111.8 kB / 0.518 GB, free: 2.887 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002332/0.4922, allocations: 83.98 kB / 0.5181 GB, free: 2.805 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (232): * Single equations (assignments): 229 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002255/0.4945, allocations: 0.9929 MB / 0.5191 GB, free: 1.801 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006344/0.4951, allocations: 214.6 kB / 0.5193 GB, free: 1.59 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004059/0.4992, allocations: 1.966 MB / 0.5212 GB, free: 15.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-05/0.4992, allocations: 12 kB / 0.5212 GB, free: 15.59 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.4992, allocations: 7.938 kB / 0.5212 GB, free: 15.58 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.677e-05/0.4992, allocations: 11.97 kB / 0.5212 GB, free: 15.57 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009906/0.5091, allocations: 4.959 MB / 0.5261 GB, free: 10.51 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.572e-05/0.5091, allocations: 7.922 kB / 0.5261 GB, free: 10.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001467/0.5106, allocations: 307.8 kB / 0.5264 GB, free: 10.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003437/0.5109, allocations: 98.52 kB / 0.5265 GB, free: 10.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001181/0.5111, allocations: 31.98 kB / 0.5265 GB, free: 10.07 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001165/0.5122, allocations: 1.271 MB / 0.5277 GB, free: 8.676 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/0.5122, allocations: 3.938 kB / 0.5277 GB, free: 8.672 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005409/0.5176, allocations: 3.095 MB / 0.5308 GB, free: 5.52 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001282/0.5189, allocations: 390.5 kB / 0.5311 GB, free: 5.137 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003116/0.5192, allocations: 24 kB / 0.5312 GB, free: 5.113 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001003/0.5202, allocations: 79.91 kB / 0.5312 GB, free: 5.035 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000209/0.5204, allocations: 109 kB / 0.5313 GB, free: 4.93 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.736e-05/0.5205, allocations: 36 kB / 0.5314 GB, free: 4.895 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002371/0.5229, allocations: 1.297 MB / 0.5326 GB, free: 3.574 MB / 446.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.5229, allocations: 0 / 0.5326 GB, free: 3.574 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001994/0.5249, allocations: 0.539 MB / 0.5332 GB, free: 3.035 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.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 (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(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.2766/0.8015, allocations: 3.706 MB / 0.5368 GB, free: 100 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004369/0.8059, allocations: 1.976 MB / 0.5387 GB, free: 99.46 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.967e-06/0.8059, allocations: 0 / 0.5387 GB, free: 99.46 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001816/0.8077, allocations: 0.9541 MB / 0.5396 GB, free: 99.04 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002964/0.8107, allocations: 0.5221 MB / 0.5402 GB, free: 98.88 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03384/0.8445, allocations: 20.13 MB / 0.5598 GB, free: 86.55 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00182/0.8464, allocations: 2.258 MB / 0.562 GB, free: 84.45 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00191/0.8483, allocations: 0.5172 MB / 0.5625 GB, free: 83.93 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00167/0.8499, allocations: 1.183 MB / 0.5637 GB, free: 82.75 MB / 446.1 MB Notification: Performance of SimCode: time 1.573e-06/0.8499, allocations: 0 / 0.5637 GB, free: 82.75 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1004/0.9504, allocations: 51.71 MB / 0.6142 GB, free: 31.45 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.57/15.52, allocations: 7.984 kB / 0.6142 GB, free: 31.44 MB / 446.1 MB " [Timeout remaining time 644] (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 18.320771905593574] Failed to read output from testmodel.py, exit status != 0: ['time', 'smpm.is[1]', 'smpm.is[2]', 'inertiaLoad.w', 'speedSensor.flange.phi'] 15.642999314237386 15.660365971 15.279157624 Calling exit ...