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.001369/0.001369, allocations: 116.4 kB / 18.5 MB, free: 4.602 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.001458/0.001458, allocations: 208.9 kB / 21.46 MB, free: 1.648 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.551/1.551, allocations: 230.5 MB / 254.7 MB, free: 15.02 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.001984/0.001984, allocations: 67.83 kB / 373.6 MB, free: 10.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1155, allocations: 53.32 MB / 426.9 MB, free: 4.832 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.2517/0.3672, allocations: 15.87 MB / 442.8 MB, free: 2.316 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01392/0.3811, allocations: 5.363 MB / 448.1 MB, free: 14.82 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00567/0.3868, allocations: 99.91 kB / 448.2 MB, free: 14.8 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006456/0.3932, allocations: 1.152 MB / 449.4 MB, free: 14.18 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006815/0.4001, allocations: 1.276 MB / 450.7 MB, free: 13.34 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003564/0.4036, allocations: 0.9239 MB / 451.6 MB, free: 12.77 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007425/0.411, allocations: 3.64 MB / 455.2 MB, free: 10.88 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004305/0.4153, allocations: 2.375 MB / 457.6 MB, free: 9.758 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003793/0.4191, allocations: 1.751 MB / 459.4 MB, free: 8.883 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004976/0.4241, allocations: 2.143 MB / 461.5 MB, free: 7.855 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001531/0.4256, allocations: 480.1 kB / 462 MB, free: 7.855 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003046/0.4287, allocations: 0.7095 MB / 462.7 MB, free: 7.766 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001773/0.4305, allocations: 1.152 MB / 463.8 MB, free: 7.055 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004883/0.4354, allocations: 2.048 MB / 465.9 MB, free: 5.676 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01155/0.4469, allocations: 6.32 MB / 472.2 MB, free: 0.9297 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.416e-06/0.4469, allocations: 0 / 472.2 MB, free: 0.9297 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.677e-06/0.4469, allocations: 1.688 kB / 472.2 MB, free: 0.9297 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002817/0.4472, allocations: 0 / 472.2 MB, free: 0.9297 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.01597/0.4632, allocations: 4.362 MB / 476.6 MB, free: 13.91 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.515e-05/0.4632, allocations: 12.53 kB / 476.6 MB, free: 13.91 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001505/0.4647, allocations: 452.1 kB / 477 MB, free: 13.57 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003711/0.4684, allocations: 0.6334 MB / 477.7 MB, free: 13.25 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006716/0.4751, allocations: 2.304 MB / 480 MB, free: 11.58 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002654/0.4754, allocations: 238.2 kB / 480.2 MB, free: 11.47 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009459/0.4764, allocations: 318.4 kB / 480.5 MB, free: 11.24 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009335/0.4857, allocations: 4.054 MB / 484.6 MB, free: 7.121 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.169e-05/0.4858, allocations: 3.953 kB / 484.6 MB, free: 7.117 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004055/0.4862, allocations: 128 kB / 484.7 MB, free: 6.992 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001713/0.4864, allocations: 146.2 kB / 484.8 MB, free: 6.848 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007276/0.4936, allocations: 3.39 MB / 488.2 MB, free: 3.445 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02994/0.5236, allocations: 13.39 MB / 0.4898 GB, free: 5.605 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00522/0.5288, allocations: 4.159 MB / 0.4939 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001872/0.5307, allocations: 0.9338 MB / 0.4948 GB, free: 15.98 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006639/0.5373, allocations: 2.859 MB / 0.4976 GB, free: 12.99 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.803e-05/0.5374, allocations: 47.44 kB / 0.4977 GB, free: 12.94 MB / 414.1 MB Notification: Performance of pre-optimization done (n=108): time 5.54e-06/0.5374, allocations: 1.828 kB / 0.4977 GB, free: 12.94 MB / 414.1 MB Notification: Performance of matching and sorting (n=142): time 0.01369/0.5511, allocations: 6.054 MB / 0.5036 GB, free: 6.801 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.765e-05/0.5511, allocations: 68.7 kB / 0.5036 GB, free: 6.719 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003232/0.5544, allocations: 1.91 MB / 0.5055 GB, free: 4.766 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001917/0.5545, allocations: 49.7 kB / 0.5056 GB, free: 4.711 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001254/0.5558, allocations: 1.552 MB / 0.5071 GB, free: 3.145 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005615/0.5564, allocations: 0.5036 MB / 0.5076 GB, free: 2.637 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005583/0.5569, allocations: 335.4 kB / 0.5079 GB, free: 2.301 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.5571, allocations: 305.1 kB / 0.5082 GB, free: 2 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001306/0.5584, allocations: 0.7691 MB / 0.5089 GB, free: 1.23 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001859/0.5602, allocations: 1.383 MB / 0.5103 GB, free: 15.58 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003301/0.5635, allocations: 2.312 MB / 0.5125 GB, free: 13 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.551e-05/0.5635, allocations: 11.94 kB / 0.5125 GB, free: 12.99 MB / 430.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004508/0.568, allocations: 2.483 MB / 0.515 GB, free: 10.49 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.493e-05/0.5681, allocations: 12 kB / 0.515 GB, free: 10.48 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.918e-05/0.5681, allocations: 24.06 kB / 0.515 GB, free: 10.46 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004547/0.5686, allocations: 122.5 kB / 0.5151 GB, free: 10.33 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001821/0.5704, allocations: 483.2 kB / 0.5156 GB, free: 9.855 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001316/0.5717, allocations: 1.406 MB / 0.5169 GB, free: 8.305 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001759/0.5735, allocations: 121.4 kB / 0.5171 GB, free: 8.188 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001868/0.5737, allocations: 83.98 kB / 0.5171 GB, free: 8.105 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.002294/0.5759, allocations: 0.9899 MB / 0.5181 GB, free: 7.105 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006478/0.5766, allocations: 218.7 kB / 0.5183 GB, free: 6.891 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003668/0.5803, allocations: 1.962 MB / 0.5202 GB, free: 4.91 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-05/0.5803, allocations: 12 kB / 0.5202 GB, free: 4.898 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.316e-06/0.5803, allocations: 4 kB / 0.5203 GB, free: 4.895 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.351e-05/0.5803, allocations: 7.969 kB / 0.5203 GB, free: 4.887 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009367/0.5897, allocations: 4.995 MB / 0.5251 GB, free: 15.78 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.719e-06/0.5897, allocations: 4.844 kB / 0.5251 GB, free: 15.78 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001373/0.591, allocations: 303.6 kB / 0.5254 GB, free: 15.48 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003159/0.5914, allocations: 98.45 kB / 0.5255 GB, free: 15.38 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.961e-05/0.5915, allocations: 39.98 kB / 0.5256 GB, free: 15.34 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001128/0.5926, allocations: 1.371 MB / 0.5269 GB, free: 13.83 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.5926, allocations: 4 kB / 0.5269 GB, free: 13.82 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004954/0.5975, allocations: 3.095 MB / 0.5299 GB, free: 10.68 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001293/0.5988, allocations: 467.6 kB / 0.5304 GB, free: 10.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000283/0.5991, allocations: 24 kB / 0.5304 GB, free: 10.18 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000965/0.6001, allocations: 83.97 kB / 0.5305 GB, free: 10.09 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000236/0.6003, allocations: 97 kB / 0.5306 GB, free: 10 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.792e-05/0.6004, allocations: 40 kB / 0.5306 GB, free: 9.961 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002081/0.6025, allocations: 1.294 MB / 0.5319 GB, free: 8.645 MB / 446.1 MB Notification: Performance of sort global known variables: time 6e-08/0.6025, allocations: 0 / 0.5319 GB, free: 8.645 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001931/0.6044, allocations: 0.539 MB / 0.5324 GB, free: 8.105 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.005216/0.6096, allocations: 3.728 MB / 0.536 GB, free: 4.312 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003696/0.6133, allocations: 2.122 MB / 0.5381 GB, free: 2.137 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/0.6133, allocations: 0 / 0.5381 GB, free: 2.137 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00189/0.6152, allocations: 1.109 MB / 0.5392 GB, free: 0.9727 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002738/0.618, allocations: 0.5274 MB / 0.5397 GB, free: 468 kB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03726/0.6552, allocations: 20.07 MB / 0.5593 GB, free: 11.59 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002349/0.6576, allocations: 2.264 MB / 0.5615 GB, free: 9.293 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001956/0.6595, allocations: 0.5133 MB / 0.562 GB, free: 8.777 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001978/0.6615, allocations: 1.185 MB / 0.5632 GB, free: 7.594 MB / 478.1 MB Notification: Performance of SimCode: time 1.222e-06/0.6615, allocations: 0 / 0.5632 GB, free: 7.594 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1282/0.7897, allocations: 50.43 MB / 0.6124 GB, free: 5.609 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.86/14.65, allocations: 15.95 kB / 0.6124 GB, free: 5.594 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 & /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.437180590815842] Failed to read output from testmodel.py, exit status != 0: ['time', 'smpm.is[1]', 'smpm.is[2]', 'inertiaLoad.w', 'speedSensor.flange.phi'] 14.766350550111383 14.974491178 14.524337183 Calling exit ...