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.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.001714/0.001714, allocations: 118.6 kB / 18.5 MB, free: 4.434 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.001978/0.001978, allocations: 218.6 kB / 21.47 MB, free: 1.473 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.412/1.412, allocations: 230.4 MB / 254.7 MB, free: 15 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.SMPM_CurrentSource,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_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.001847/0.001847, allocations: 59.91 kB / 373.6 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09422/0.09606, allocations: 53.31 MB / 426.9 MB, free: 4.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.1979/0.2939, allocations: 11 MB / 437.9 MB, free: 5.523 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006322/0.3003, allocations: 3.683 MB / 441.6 MB, free: 3.578 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002057/0.3023, allocations: 65.09 kB / 441.6 MB, free: 3.562 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002402/0.3047, allocations: 0.8785 MB / 442.5 MB, free: 3.086 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003202/0.3079, allocations: 0.9104 MB / 443.4 MB, free: 2.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001243/0.3092, allocations: 465.2 kB / 443.9 MB, free: 2.215 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003933/0.3131, allocations: 2.942 MB / 446.8 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00265/0.3157, allocations: 1.989 MB / 448.8 MB, free: 15.84 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002719/0.3185, allocations: 1.394 MB / 450.2 MB, free: 15.16 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00333/0.3218, allocations: 1.791 MB / 452 MB, free: 14.35 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008724/0.3227, allocations: 373.7 kB / 452.4 MB, free: 14.35 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001452/0.3241, allocations: 482.3 kB / 452.8 MB, free: 14.32 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00144/0.3256, allocations: 1.087 MB / 453.9 MB, free: 13.73 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002797/0.3284, allocations: 1.675 MB / 455.6 MB, free: 12.62 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006685/0.335, allocations: 4.913 MB / 460.5 MB, free: 9.742 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.594e-06/0.335, allocations: 0 / 460.5 MB, free: 9.742 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.3351, allocations: 4 kB / 460.5 MB, free: 9.738 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001562/0.3352, allocations: 1.344 kB / 460.5 MB, free: 9.738 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.009249/0.3445, allocations: 3.472 MB / 464 MB, free: 7.32 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.131e-05/0.3445, allocations: 14.12 kB / 464 MB, free: 7.316 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005996/0.3451, allocations: 371.5 kB / 464.4 MB, free: 7.039 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001117/0.3462, allocations: 365.2 kB / 464.7 MB, free: 6.852 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00405/0.3503, allocations: 1.828 MB / 466.5 MB, free: 5.551 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001764/0.3505, allocations: 195.6 kB / 466.7 MB, free: 5.457 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004718/0.3509, allocations: 250.6 kB / 467 MB, free: 5.371 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006062/0.357, allocations: 3.288 MB / 470.3 MB, free: 3.422 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.819e-05/0.3571, allocations: 3.406 kB / 470.3 MB, free: 3.422 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000234/0.3573, allocations: 105.7 kB / 470.4 MB, free: 3.34 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001221/0.3574, allocations: 126.2 kB / 470.5 MB, free: 3.316 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004667/0.3621, allocations: 2.751 MB / 473.3 MB, free: 1.914 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0172/0.3793, allocations: 10.41 MB / 483.7 MB, free: 7.656 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001931/0.3812, allocations: 1.31 MB / 485 MB, free: 6.281 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001198/0.3824, allocations: 0.6998 MB / 485.7 MB, free: 5.578 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003087/0.3827, allocations: 203.2 kB / 485.9 MB, free: 5.344 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.991e-05/0.3828, allocations: 43.56 kB / 485.9 MB, free: 5.289 MB / 382.1 MB Notification: Performance of pre-optimization done (n=98): time 3.106e-06/0.3828, allocations: 0 / 485.9 MB, free: 5.289 MB / 382.1 MB Notification: Performance of matching and sorting (n=123): time 0.01517/0.3979, allocations: 6.946 MB / 492.9 MB, free: 14.23 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.573e-05/0.398, allocations: 64.41 kB / 492.9 MB, free: 14.16 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002972/0.4009, allocations: 1.794 MB / 494.7 MB, free: 12.37 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001468/0.4011, allocations: 45.7 kB / 494.8 MB, free: 12.32 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001048/0.4021, allocations: 1.31 MB / 496.1 MB, free: 10.99 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004284/0.4026, allocations: 456.1 kB / 496.5 MB, free: 10.54 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004694/0.403, allocations: 291.5 kB / 496.8 MB, free: 10.25 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001368/0.4032, allocations: 309.1 kB / 497.1 MB, free: 9.945 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001217/0.4044, allocations: 0.773 MB / 497.9 MB, free: 9.172 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00167/0.4061, allocations: 1.296 MB / 499.2 MB, free: 7.652 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003057/0.4091, allocations: 2.206 MB / 0.4896 GB, free: 5.219 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.197e-06/0.4091, allocations: 7.938 kB / 0.4896 GB, free: 5.211 MB / 398.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004268/0.4134, allocations: 2.487 MB / 0.4921 GB, free: 2.703 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.898e-05/0.4134, allocations: 16.16 kB / 0.4921 GB, free: 2.688 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.28e-05/0.4135, allocations: 16 kB / 0.4921 GB, free: 2.672 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006096/0.4141, allocations: 232.1 kB / 0.4923 GB, free: 2.434 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001423/0.4155, allocations: 415.3 kB / 0.4927 GB, free: 2.027 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002932/0.4184, allocations: 3.244 MB / 0.4959 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001492/0.4199, allocations: 135.8 kB / 0.496 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001226/0.42, allocations: 68 kB / 0.4961 GB, free: 14.3 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001559/0.4216, allocations: 0.8212 MB / 0.4969 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004081/0.422, allocations: 190.8 kB / 0.4971 GB, free: 13.28 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003429/0.4254, allocations: 2.043 MB / 0.4991 GB, free: 11.22 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.164e-05/0.4254, allocations: 12 kB / 0.4991 GB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.4254, allocations: 4 kB / 0.4991 GB, free: 11.2 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.276e-05/0.4255, allocations: 7.969 kB / 0.4991 GB, free: 11.2 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00813/0.4336, allocations: 4.74 MB / 0.5037 GB, free: 6.355 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.417e-06/0.4336, allocations: 4 kB / 0.5037 GB, free: 6.352 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001057/0.4347, allocations: 263.9 kB / 0.504 GB, free: 6.094 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005485/0.4352, allocations: 207.2 kB / 0.5042 GB, free: 5.879 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.94e-05/0.4353, allocations: 24 kB / 0.5042 GB, free: 5.855 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002877/0.4382, allocations: 3.21 MB / 0.5073 GB, free: 2.367 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.115e-06/0.4382, allocations: 8.844 kB / 0.5073 GB, free: 2.359 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004754/0.4429, allocations: 3.148 MB / 0.5104 GB, free: 15.15 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001146/0.4441, allocations: 431.8 kB / 0.5108 GB, free: 14.71 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000248/0.4443, allocations: 24 kB / 0.5108 GB, free: 14.69 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008988/0.4452, allocations: 103.9 kB / 0.5109 GB, free: 14.59 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001729/0.4454, allocations: 76.88 kB / 0.511 GB, free: 14.51 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.491e-05/0.4455, allocations: 36 kB / 0.511 GB, free: 14.48 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001895/0.4474, allocations: 1.228 MB / 0.5122 GB, free: 13.26 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4474, allocations: 0 / 0.5122 GB, free: 13.26 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001625/0.449, allocations: 495.9 kB / 0.5127 GB, free: 12.77 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (121): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {(2,1,100.0%), (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.00504/0.454, allocations: 3.786 MB / 0.5164 GB, free: 8.926 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003554/0.4576, allocations: 2.272 MB / 0.5186 GB, free: 6.586 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.4576, allocations: 0 / 0.5186 GB, free: 6.586 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001822/0.4594, allocations: 1.269 MB / 0.5199 GB, free: 5.246 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002174/0.4616, allocations: 0.4884 MB / 0.5203 GB, free: 4.773 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03095/0.4925, allocations: 18.78 MB / 0.5387 GB, free: 1.246 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002389/0.4949, allocations: 2.01 MB / 0.5406 GB, free: 15.2 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001571/0.4965, allocations: 0.4999 MB / 0.5411 GB, free: 14.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001527/0.498, allocations: 1.011 MB / 0.5421 GB, free: 13.68 MB / 462.1 MB Notification: Performance of SimCode: time 1.272e-06/0.498, allocations: 0 / 0.5421 GB, free: 13.68 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09824/0.5963, allocations: 46.51 MB / 0.5875 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.98/13.58, allocations: 8 kB / 0.5876 GB, free: 15.64 MB / 0.4981 GB " [Timeout remaining time 646] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.993352113757282] Failed to read output from testmodel.py, exit status != 0: ['time', 'smpm.is[1]', 'smpm.is[2]', 'inertiaLoad.w', 'multiSensor.flange_a.phi'] 13.690185863059014 13.71065052 13.371470375 Calling exit ...