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.001417/0.001417, allocations: 105.7 kB / 19.74 MB, free: 2.453 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.001583/0.001583, allocations: 214.7 kB / 22.92 MB, free: 5.195 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.274/1.274, allocations: 230.5 MB / 256.4 MB, free: 8.254 MB / 206.1 MB " [Timeout remaining time 179] 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.001781/0.001781, allocations: 75.81 kB / 376.1 MB, free: 4.094 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2008/0.2025, allocations: 53.33 MB / 429.4 MB, free: 7.465 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01684/0.2194, allocations: 15.92 MB / 445.4 MB, free: 7.473 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00911/0.2285, allocations: 5.366 MB / 450.7 MB, free: 2.086 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001794/0.2303, allocations: 99.62 kB / 450.8 MB, free: 1.988 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002456/0.2327, allocations: 1.145 MB / 452 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003032/0.2358, allocations: 1.285 MB / 453.3 MB, free: 15.55 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001975/0.2378, allocations: 0.9389 MB / 454.2 MB, free: 14.61 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004174/0.2419, allocations: 3.647 MB / 457.8 MB, free: 10.94 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002321/0.2442, allocations: 1.912 MB / 459.7 MB, free: 8.957 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002061/0.2463, allocations: 1.748 MB / 461.5 MB, free: 7.203 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002571/0.2489, allocations: 2.148 MB / 463.6 MB, free: 5.047 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005604/0.2494, allocations: 480 kB / 464.1 MB, free: 4.578 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001178/0.2506, allocations: 0.7067 MB / 464.8 MB, free: 3.871 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001/0.2516, allocations: 1.169 MB / 466 MB, free: 2.699 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001866/0.2535, allocations: 2.042 MB / 468 MB, free: 0.6484 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006014/0.2595, allocations: 6.318 MB / 474.3 MB, free: 10.31 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.2595, allocations: 0 / 474.3 MB, free: 10.31 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2595, allocations: 0 / 474.3 MB, free: 10.31 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.45e-05/0.2596, allocations: 3.938 kB / 474.4 MB, free: 10.3 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.008549/0.2681, allocations: 4.359 MB / 478.7 MB, free: 5.867 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.526e-05/0.2682, allocations: 15.97 kB / 478.7 MB, free: 5.852 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005273/0.2687, allocations: 447.3 kB / 479.2 MB, free: 5.402 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002591/0.2713, allocations: 0.631 MB / 479.8 MB, free: 4.77 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003584/0.2749, allocations: 2.309 MB / 482.1 MB, free: 2.406 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001757/0.275, allocations: 246.6 kB / 482.3 MB, free: 2.164 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000437/0.2755, allocations: 315.9 kB / 482.7 MB, free: 1.855 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00606/0.2815, allocations: 4.051 MB / 486.7 MB, free: 13.74 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.334e-05/0.2816, allocations: 7.891 kB / 486.7 MB, free: 13.73 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000278/0.2819, allocations: 128 kB / 486.8 MB, free: 13.61 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001346/0.282, allocations: 142.2 kB / 487 MB, free: 13.47 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005282/0.2873, allocations: 3.397 MB / 490.4 MB, free: 10.06 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01716/0.3045, allocations: 13.39 MB / 0.492 GB, free: 12.2 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004187/0.3086, allocations: 4.16 MB / 0.496 GB, free: 7.484 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001503/0.3101, allocations: 0.9337 MB / 0.4969 GB, free: 6.555 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004119/0.3143, allocations: 2.859 MB / 0.4997 GB, free: 3.57 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.185e-05/0.3143, allocations: 43.56 kB / 0.4998 GB, free: 3.52 MB / 414.1 MB Notification: Performance of pre-optimization done (n=108): time 2.114e-06/0.3143, allocations: 0 / 0.4998 GB, free: 3.52 MB / 414.1 MB Notification: Performance of matching and sorting (n=142): time 0.01065/0.3249, allocations: 6.051 MB / 0.5057 GB, free: 13.38 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.559e-05/0.325, allocations: 72.7 kB / 0.5057 GB, free: 13.29 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002541/0.3275, allocations: 1.909 MB / 0.5076 GB, free: 11.34 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.65e-05/0.3276, allocations: 49.7 kB / 0.5077 GB, free: 11.29 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001091/0.3287, allocations: 1.552 MB / 0.5092 GB, free: 9.719 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003843/0.3291, allocations: 0.5035 MB / 0.5097 GB, free: 9.211 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004993/0.3296, allocations: 339.4 kB / 0.51 GB, free: 8.871 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001046/0.3297, allocations: 301.1 kB / 0.5103 GB, free: 8.574 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00115/0.3308, allocations: 0.7691 MB / 0.511 GB, free: 7.805 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001557/0.3324, allocations: 1.387 MB / 0.5124 GB, free: 6.152 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002898/0.3353, allocations: 2.316 MB / 0.5146 GB, free: 3.57 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.368e-06/0.3353, allocations: 8 kB / 0.5146 GB, free: 3.562 MB / 430.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003845/0.3392, allocations: 2.487 MB / 0.5171 GB, free: 1.059 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.41e-05/0.3392, allocations: 15.94 kB / 0.5171 GB, free: 1.043 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.487e-05/0.3392, allocations: 20 kB / 0.5171 GB, free: 1.023 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003377/0.3395, allocations: 118.5 kB / 0.5172 GB, free: 0.8984 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001659/0.3412, allocations: 491.2 kB / 0.5177 GB, free: 428 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001085/0.3423, allocations: 1.41 MB / 0.5191 GB, free: 14.86 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001282/0.3436, allocations: 115.8 kB / 0.5192 GB, free: 14.75 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001163/0.3437, allocations: 80 kB / 0.5193 GB, free: 14.67 MB / 446.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.001488/0.3452, allocations: 0.9891 MB / 0.5202 GB, free: 13.67 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000324/0.3455, allocations: 214.6 kB / 0.5204 GB, free: 13.46 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003173/0.3487, allocations: 1.958 MB / 0.5223 GB, free: 11.48 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-05/0.3487, allocations: 15.94 kB / 0.5223 GB, free: 11.47 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/0.3487, allocations: 4 kB / 0.5224 GB, free: 11.46 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.453e-05/0.3487, allocations: 11.95 kB / 0.5224 GB, free: 11.45 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007106/0.3558, allocations: 5.007 MB / 0.5273 GB, free: 6.336 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/0.3558, allocations: 0 / 0.5273 GB, free: 6.336 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001276/0.3571, allocations: 299.6 kB / 0.5275 GB, free: 6.043 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002861/0.3574, allocations: 102.8 kB / 0.5276 GB, free: 5.934 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.667e-05/0.3575, allocations: 31.98 kB / 0.5277 GB, free: 5.902 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009701/0.3584, allocations: 1.371 MB / 0.529 GB, free: 4.395 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.52e-06/0.3584, allocations: 7.938 kB / 0.529 GB, free: 4.387 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004268/0.3627, allocations: 3.099 MB / 0.532 GB, free: 1.23 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000722/0.3634, allocations: 467.6 kB / 0.5325 GB, free: 0.7539 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001992/0.3636, allocations: 28.06 kB / 0.5325 GB, free: 0.7266 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000882/0.3645, allocations: 79.91 kB / 0.5326 GB, free: 0.6484 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001532/0.3647, allocations: 93.06 kB / 0.5327 GB, free: 0.5586 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.958e-05/0.3647, allocations: 40 kB / 0.5327 GB, free: 0.5195 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001786/0.3665, allocations: 1.297 MB / 0.534 GB, free: 15.2 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3665, allocations: 4 kB / 0.534 GB, free: 15.19 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001476/0.368, allocations: 0.5312 MB / 0.5345 GB, free: 14.66 MB / 462.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.004573/0.3726, allocations: 3.715 MB / 0.5381 GB, free: 10.88 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003088/0.3757, allocations: 2.125 MB / 0.5402 GB, free: 8.699 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3757, allocations: 0 / 0.5402 GB, free: 8.699 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001453/0.3771, allocations: 1.109 MB / 0.5413 GB, free: 7.539 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001948/0.3791, allocations: 0.5278 MB / 0.5418 GB, free: 7.02 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1779/0.5569, allocations: 20.1 MB / 0.5614 GB, free: 111.4 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001256/0.5582, allocations: 2.265 MB / 0.5637 GB, free: 110.3 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001151/0.5593, allocations: 0.5171 MB / 0.5642 GB, free: 110.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001049/0.5604, allocations: 1.186 MB / 0.5653 GB, free: 109.3 MB / 462.1 MB Notification: Performance of SimCode: time 7.32e-07/0.5604, allocations: 3.391 kB / 0.5653 GB, free: 109.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07236/0.6328, allocations: 50.47 MB / 0.6146 GB, free: 60.01 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.24/12.87, allocations: 7.938 kB / 0.6146 GB, free: 60 MB / 462.1 MB " [Timeout remaining time 647] (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 --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: 14.998400891003257]