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.001666/0.001666, allocations: 106.5 kB / 21.23 MB, free: 0.6562 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.002056/0.002056, allocations: 212 kB / 24.54 MB, free: 4.016 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.469/1.469, allocations: 230.6 MB / 258.3 MB, free: 8.047 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.001974/0.001974, allocations: 64.78 kB / 378.6 MB, free: 3.137 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2913/0.2933, allocations: 53.37 MB / 432 MB, free: 6.895 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01904/0.3123, allocations: 15.93 MB / 447.9 MB, free: 6.895 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01173/0.3241, allocations: 5.378 MB / 453.3 MB, free: 1.496 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003594/0.3276, allocations: 123.2 kB / 453.4 MB, free: 1.375 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003898/0.3315, allocations: 1.145 MB / 454.5 MB, free: 232 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005149/0.3367, allocations: 1.297 MB / 455.8 MB, free: 14.92 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002787/0.3395, allocations: 0.9421 MB / 456.8 MB, free: 13.98 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005627/0.3451, allocations: 3.656 MB / 460.4 MB, free: 10.31 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003148/0.3483, allocations: 1.909 MB / 462.3 MB, free: 8.332 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00329/0.3515, allocations: 1.791 MB / 464.1 MB, free: 6.535 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003789/0.3553, allocations: 2.149 MB / 466.3 MB, free: 4.379 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001054/0.3564, allocations: 480 kB / 466.7 MB, free: 3.91 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002056/0.3584, allocations: 0.7067 MB / 467.4 MB, free: 3.203 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001386/0.3598, allocations: 1.165 MB / 468.6 MB, free: 2.035 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0033/0.3631, allocations: 2.046 MB / 470.7 MB, free: 15.98 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008978/0.3721, allocations: 6.322 MB / 477 MB, free: 9.633 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.3721, allocations: 0 / 477 MB, free: 9.633 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3721, allocations: 4 kB / 477 MB, free: 9.629 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001806/0.3723, allocations: 0 / 477 MB, free: 9.629 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.3847, allocations: 4.287 MB / 481.3 MB, free: 5.281 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.177e-05/0.3847, allocations: 12.03 kB / 481.3 MB, free: 5.27 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008694/0.3856, allocations: 451.2 kB / 481.7 MB, free: 4.816 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003041/0.3887, allocations: 0.6349 MB / 482.4 MB, free: 4.18 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00488/0.3935, allocations: 2.226 MB / 484.6 MB, free: 1.91 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002419/0.3938, allocations: 242.7 kB / 484.8 MB, free: 1.672 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005688/0.3943, allocations: 315.9 kB / 485.1 MB, free: 1.363 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007706/0.402, allocations: 4.054 MB / 489.2 MB, free: 13.25 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.742e-05/0.4021, allocations: 3.953 kB / 489.2 MB, free: 13.24 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003008/0.4024, allocations: 128 kB / 489.3 MB, free: 13.12 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001567/0.4026, allocations: 142.2 kB / 489.4 MB, free: 12.98 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006597/0.4092, allocations: 3.393 MB / 492.8 MB, free: 9.574 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02384/0.433, allocations: 12.87 MB / 0.4939 GB, free: 12.29 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003805/0.4368, allocations: 1.767 MB / 0.4956 GB, free: 10.57 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001763/0.4386, allocations: 0.9376 MB / 0.4965 GB, free: 9.633 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005308/0.4439, allocations: 2.458 MB / 0.4989 GB, free: 7.148 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.562e-05/0.4439, allocations: 51.5 kB / 0.4989 GB, free: 7.09 MB / 414.1 MB Notification: Performance of pre-optimization done (n=108): time 3.236e-06/0.4439, allocations: 0 / 0.4989 GB, free: 7.09 MB / 414.1 MB Notification: Performance of matching and sorting (n=142): time 0.01353/0.4575, allocations: 5.807 MB / 0.5046 GB, free: 1.25 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.001e-05/0.4575, allocations: 68.72 kB / 0.5047 GB, free: 1.172 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004116/0.4616, allocations: 1.91 MB / 0.5065 GB, free: 15.22 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000179/0.4618, allocations: 49.7 kB / 0.5066 GB, free: 15.16 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001564/0.4634, allocations: 1.556 MB / 0.5081 GB, free: 13.59 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006428/0.464, allocations: 0.5113 MB / 0.5086 GB, free: 13.08 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006653/0.4647, allocations: 335.4 kB / 0.5089 GB, free: 12.74 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001669/0.4649, allocations: 305.1 kB / 0.5092 GB, free: 12.44 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001469/0.4663, allocations: 0.773 MB / 0.51 GB, free: 11.67 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002115/0.4684, allocations: 1.379 MB / 0.5113 GB, free: 10.02 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003653/0.4721, allocations: 2.312 MB / 0.5136 GB, free: 7.438 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.975e-05/0.4721, allocations: 4 kB / 0.5136 GB, free: 7.434 MB / 430.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004955/0.4771, allocations: 2.494 MB / 0.516 GB, free: 4.922 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.933e-05/0.4771, allocations: 12 kB / 0.516 GB, free: 4.91 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.587e-05/0.4771, allocations: 20.59 kB / 0.5161 GB, free: 4.891 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004261/0.4776, allocations: 118.5 kB / 0.5162 GB, free: 4.766 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001858/0.4794, allocations: 491.2 kB / 0.5166 GB, free: 4.285 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00134/0.4808, allocations: 1.299 MB / 0.5179 GB, free: 2.875 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001657/0.4824, allocations: 124 kB / 0.518 GB, free: 2.754 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001732/0.4826, allocations: 79.98 kB / 0.5181 GB, free: 2.676 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.00215/0.4847, allocations: 0.9928 MB / 0.5191 GB, free: 1.672 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000656/0.4854, allocations: 210.6 kB / 0.5193 GB, free: 1.465 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004055/0.4895, allocations: 1.973 MB / 0.5212 GB, free: 15.47 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.382e-05/0.4895, allocations: 12 kB / 0.5212 GB, free: 15.46 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.282e-05/0.4895, allocations: 4 kB / 0.5212 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.839e-05/0.4895, allocations: 7.969 kB / 0.5212 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01069/0.5002, allocations: 4.975 MB / 0.5261 GB, free: 10.37 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.427e-06/0.5002, allocations: 0 / 0.5261 GB, free: 10.37 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00144/0.5017, allocations: 303.8 kB / 0.5264 GB, free: 10.07 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003516/0.502, allocations: 98.45 kB / 0.5265 GB, free: 9.969 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000122/0.5021, allocations: 35.98 kB / 0.5265 GB, free: 9.934 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001244/0.5034, allocations: 1.271 MB / 0.5277 GB, free: 8.543 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.5034, allocations: 4.156 kB / 0.5277 GB, free: 8.539 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005493/0.5089, allocations: 3.091 MB / 0.5308 GB, free: 5.391 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001211/0.5101, allocations: 390.4 kB / 0.5311 GB, free: 5.008 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005797/0.5107, allocations: 28 kB / 0.5312 GB, free: 4.98 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001367/0.512, allocations: 87.89 kB / 0.5312 GB, free: 4.895 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001969/0.5122, allocations: 97.02 kB / 0.5313 GB, free: 4.801 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.588e-05/0.5123, allocations: 39.98 kB / 0.5314 GB, free: 4.762 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002796/0.5151, allocations: 1.297 MB / 0.5326 GB, free: 3.441 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5151, allocations: 0 / 0.5326 GB, free: 3.441 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002219/0.5173, allocations: 0.5312 MB / 0.5332 GB, free: 2.91 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.248/0.7653, allocations: 3.714 MB / 0.5368 GB, free: 99.89 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003693/0.769, allocations: 1.971 MB / 0.5387 GB, free: 99.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.722e-06/0.769, allocations: 1.281 kB / 0.5387 GB, free: 99.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001467/0.7705, allocations: 0.9568 MB / 0.5396 GB, free: 98.87 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002627/0.7731, allocations: 0.5242 MB / 0.5402 GB, free: 98.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02745/0.8005, allocations: 20.12 MB / 0.5598 GB, free: 86.29 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001495/0.802, allocations: 2.268 MB / 0.562 GB, free: 84.15 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001442/0.8035, allocations: 0.5094 MB / 0.5625 GB, free: 83.64 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001115/0.8046, allocations: 1.19 MB / 0.5637 GB, free: 82.45 MB / 446.1 MB Notification: Performance of SimCode: time 1.022e-06/0.8046, allocations: 0 / 0.5637 GB, free: 82.45 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09218/0.8968, allocations: 51.72 MB / 0.6142 GB, free: 31.15 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.51/15.41, allocations: 4 kB / 0.6142 GB, free: 31.15 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 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: 17.96948732668534] Failed to read output from testmodel.py, exit status != 0: ['time', 'smpm.is[1]', 'smpm.is[2]', 'inertiaLoad.w', 'speedSensor.flange.phi'] 15.53078263392672 15.550477914 15.174283911 Calling exit ...