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.001824/0.001824, allocations: 121.4 kB / 18.51 MB, free: 4.539 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.002127/0.002127, allocations: 213.6 kB / 21.46 MB, free: 1.59 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.557/1.557, allocations: 230.5 MB / 254.8 MB, free: 15.09 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.002024/0.002024, allocations: 71.83 kB / 373.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.127/0.129, allocations: 53.33 MB / 427 MB, free: 4.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.2881/0.4171, allocations: 15.87 MB / 442.9 MB, free: 2.238 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01177/0.4289, allocations: 5.357 MB / 448.3 MB, free: 14.76 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004561/0.4334, allocations: 128.1 kB / 448.4 MB, free: 14.71 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004774/0.4382, allocations: 1.147 MB / 449.5 MB, free: 14.09 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006622/0.4448, allocations: 1.281 MB / 450.8 MB, free: 13.25 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003146/0.448, allocations: 0.9298 MB / 451.7 MB, free: 12.67 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007508/0.4555, allocations: 3.645 MB / 455.4 MB, free: 10.78 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005239/0.4607, allocations: 2.37 MB / 457.8 MB, free: 9.664 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004128/0.4649, allocations: 1.785 MB / 459.5 MB, free: 8.789 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004886/0.4697, allocations: 2.144 MB / 461.7 MB, free: 7.762 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001925/0.4717, allocations: 483.9 kB / 462.2 MB, free: 7.758 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003365/0.475, allocations: 0.7054 MB / 462.9 MB, free: 7.672 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002284/0.4773, allocations: 1.156 MB / 464 MB, free: 6.957 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005508/0.4828, allocations: 2.049 MB / 466.1 MB, free: 5.578 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01164/0.4945, allocations: 6.32 MB / 472.4 MB, free: 0.8359 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.865e-06/0.4945, allocations: 1.094 kB / 472.4 MB, free: 0.8359 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.993e-06/0.4945, allocations: 0 / 472.4 MB, free: 0.8359 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002391/0.4947, allocations: 0 / 472.4 MB, free: 0.8359 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.0164/0.5111, allocations: 4.359 MB / 476.7 MB, free: 13.83 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.98e-05/0.5112, allocations: 13.91 kB / 476.8 MB, free: 13.82 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001245/0.5124, allocations: 445.3 kB / 477.2 MB, free: 13.49 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003607/0.516, allocations: 0.6384 MB / 477.8 MB, free: 13.16 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005509/0.5215, allocations: 2.308 MB / 480.1 MB, free: 11.49 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000228/0.5217, allocations: 233.9 kB / 480.4 MB, free: 11.38 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008752/0.5226, allocations: 319.8 kB / 480.7 MB, free: 11.1 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008301/0.5309, allocations: 4.051 MB / 484.7 MB, free: 6.988 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.653e-05/0.531, allocations: 7.938 kB / 484.7 MB, free: 6.98 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003146/0.5313, allocations: 128 kB / 484.9 MB, free: 6.855 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000169/0.5315, allocations: 154.2 kB / 485 MB, free: 6.703 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006833/0.5383, allocations: 3.386 MB / 488.4 MB, free: 3.305 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02539/0.5637, allocations: 13.39 MB / 0.49 GB, free: 5.465 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005269/0.569, allocations: 4.166 MB / 0.4941 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001869/0.5708, allocations: 0.9299 MB / 0.495 GB, free: 15.84 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005841/0.5767, allocations: 2.863 MB / 0.4978 GB, free: 12.85 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.058e-05/0.5767, allocations: 47.5 kB / 0.4978 GB, free: 12.8 MB / 414.1 MB Notification: Performance of pre-optimization done (n=108): time 3.076e-06/0.5767, allocations: 0 / 0.4978 GB, free: 12.8 MB / 414.1 MB Notification: Performance of matching and sorting (n=142): time 0.01361/0.5904, allocations: 6.047 MB / 0.5038 GB, free: 6.66 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.13e-05/0.5904, allocations: 64.72 kB / 0.5038 GB, free: 6.582 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003235/0.5936, allocations: 1.909 MB / 0.5057 GB, free: 4.629 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002018/0.5939, allocations: 53.7 kB / 0.5057 GB, free: 4.57 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001273/0.5951, allocations: 1.556 MB / 0.5072 GB, free: 3 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005134/0.5956, allocations: 0.4958 MB / 0.5077 GB, free: 2.5 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005556/0.5962, allocations: 335.4 kB / 0.5081 GB, free: 2.164 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001333/0.5963, allocations: 313.1 kB / 0.5084 GB, free: 1.855 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001332/0.5977, allocations: 0.7652 MB / 0.5091 GB, free: 1.09 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001851/0.5995, allocations: 1.375 MB / 0.5104 GB, free: 15.45 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003345/0.6029, allocations: 2.32 MB / 0.5127 GB, free: 12.86 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.606e-05/0.6029, allocations: 15.88 kB / 0.5127 GB, free: 12.85 MB / 430.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004453/0.6073, allocations: 2.482 MB / 0.5151 GB, free: 10.35 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.067e-05/0.6074, allocations: 12 kB / 0.5152 GB, free: 10.34 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.568e-05/0.6074, allocations: 20 kB / 0.5152 GB, free: 10.32 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003927/0.6078, allocations: 126.5 kB / 0.5153 GB, free: 10.18 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001829/0.6096, allocations: 483.5 kB / 0.5158 GB, free: 9.711 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001332/0.6109, allocations: 1.411 MB / 0.5171 GB, free: 8.156 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001756/0.6127, allocations: 115.8 kB / 0.5172 GB, free: 8.043 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001579/0.6128, allocations: 87.97 kB / 0.5173 GB, free: 7.957 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.001918/0.6148, allocations: 0.9852 MB / 0.5183 GB, free: 6.961 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005744/0.6153, allocations: 214.6 kB / 0.5185 GB, free: 6.75 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003699/0.619, allocations: 1.963 MB / 0.5204 GB, free: 4.766 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.891e-05/0.6191, allocations: 12.75 kB / 0.5204 GB, free: 4.754 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/0.6191, allocations: 4 kB / 0.5204 GB, free: 4.75 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.678e-05/0.6191, allocations: 7.969 kB / 0.5204 GB, free: 4.742 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009538/0.6286, allocations: 4.997 MB / 0.5253 GB, free: 15.64 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-05/0.6286, allocations: 4 kB / 0.5253 GB, free: 15.63 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001442/0.6301, allocations: 311.5 kB / 0.5256 GB, free: 15.33 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003495/0.6304, allocations: 94.78 kB / 0.5257 GB, free: 15.23 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001046/0.6305, allocations: 35.98 kB / 0.5257 GB, free: 15.19 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001136/0.6317, allocations: 1.371 MB / 0.5271 GB, free: 13.68 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.54e-06/0.6317, allocations: 7.938 kB / 0.5271 GB, free: 13.68 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005205/0.6369, allocations: 3.095 MB / 0.5301 GB, free: 10.53 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001217/0.6381, allocations: 468.6 kB / 0.5306 GB, free: 10.05 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003165/0.6384, allocations: 27.94 kB / 0.5306 GB, free: 10.02 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001022/0.6394, allocations: 79.91 kB / 0.5307 GB, free: 9.945 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001924/0.6396, allocations: 97.06 kB / 0.5308 GB, free: 9.852 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.91e-05/0.6397, allocations: 44.05 kB / 0.5308 GB, free: 9.809 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002108/0.6418, allocations: 1.294 MB / 0.5321 GB, free: 8.492 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.6418, allocations: 0 / 0.5321 GB, free: 8.492 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00205/0.6439, allocations: 0.5351 MB / 0.5326 GB, free: 7.957 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.005548/0.6494, allocations: 3.715 MB / 0.5362 GB, free: 4.176 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003799/0.6532, allocations: 2.126 MB / 0.5383 GB, free: 1.996 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.6532, allocations: 0 / 0.5383 GB, free: 1.996 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001759/0.655, allocations: 1.108 MB / 0.5394 GB, free: 0.832 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002817/0.6578, allocations: 0.5215 MB / 0.5399 GB, free: 328 kB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03633/0.6941, allocations: 20.08 MB / 0.5595 GB, free: 11.45 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002413/0.6965, allocations: 2.268 MB / 0.5617 GB, free: 9.148 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001796/0.6983, allocations: 0.5133 MB / 0.5622 GB, free: 8.633 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001746/0.7001, allocations: 1.185 MB / 0.5634 GB, free: 7.449 MB / 478.1 MB Notification: Performance of SimCode: time 1.041e-06/0.7001, allocations: 0 / 0.5634 GB, free: 7.449 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1118/0.8119, allocations: 50.43 MB / 0.6126 GB, free: 5.465 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.32/15.13, allocations: 11.95 kB / 0.6126 GB, free: 5.453 MB / 0.5137 GB " [Timeout remaining time 645] (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.067816209979355] Failed to read output from testmodel.py, exit status != 0: ['time', 'smpm.is[1]', 'smpm.is[2]', 'inertiaLoad.w', 'speedSensor.flange.phi'] 15.252183069009334 15.473728660999999 14.976504687 Calling exit ...