Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.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.001439/0.001439, 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.001733/0.001733, allocations: 213.2 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.429/1.429, 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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",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.002208/0.002208, allocations: 64.77 kB / 378.6 MB, free: 3.113 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2768/0.279, allocations: 53.37 MB / 432 MB, free: 6.871 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03334/0.3123, allocations: 28.8 MB / 460.8 MB, free: 9.941 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01851/0.3308, allocations: 8.524 MB / 469.3 MB, free: 1.387 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006495/0.3373, allocations: 258.7 kB / 469.5 MB, free: 1.133 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0207/0.358, allocations: 8.302 MB / 477.8 MB, free: 8.812 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01149/0.3695, allocations: 2.926 MB / 480.8 MB, free: 5.875 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006563/0.3761, allocations: 1.924 MB / 482.7 MB, free: 3.953 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01672/0.3928, allocations: 10.11 MB / 492.8 MB, free: 9.812 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0266/0.4194, allocations: 14.04 MB / 0.495 GB, free: 11.63 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01069/0.4301, allocations: 5.49 MB / 0.5003 GB, free: 6.129 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01173/0.4418, allocations: 6.148 MB / 0.5063 GB, free: 15.96 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004414/0.4462, allocations: 1.543 MB / 0.5078 GB, free: 14.42 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006497/0.4527, allocations: 1.937 MB / 0.5097 GB, free: 12.48 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005225/0.458, allocations: 2.989 MB / 0.5127 GB, free: 9.484 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01142/0.4694, allocations: 5.848 MB / 0.5184 GB, free: 3.613 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.5168/0.9862, allocations: 20.69 MB / 0.5386 GB, free: 37.98 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.568e-06/0.9862, allocations: 0.5312 kB / 0.5386 GB, free: 37.98 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.036e-06/0.9862, allocations: 0 / 0.5386 GB, free: 37.98 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0007373/0.9869, allocations: 0.5312 kB / 0.5386 GB, free: 37.98 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2599 * Number of variables: 2599 Notification: Performance of Generate backend data structure: time 0.0414/1.028, allocations: 12.02 MB / 0.5503 GB, free: 34.66 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.539e-05/1.028, allocations: 9.094 kB / 0.5503 GB, free: 34.66 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006896/1.035, allocations: 1.543 MB / 0.5518 GB, free: 34.54 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03095/1.066, allocations: 5.588 MB / 0.5573 GB, free: 33.97 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01537/1.082, allocations: 6.385 MB / 0.5635 GB, free: 33.09 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008633/1.082, allocations: 0.7078 MB / 0.5642 GB, free: 33.06 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00503/1.087, allocations: 0.9273 MB / 0.5651 GB, free: 33.05 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04179/1.129, allocations: 15.12 MB / 0.5799 GB, free: 23.61 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005799/1.13, allocations: 7.953 kB / 0.5799 GB, free: 23.6 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004379/1.134, allocations: 396.9 kB / 0.5803 GB, free: 23.22 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005397/1.135, allocations: 0.5205 MB / 0.5808 GB, free: 22.7 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02977/1.165, allocations: 13.78 MB / 0.5942 GB, free: 8.898 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09187/1.256, allocations: 46.6 MB / 0.6397 GB, free: 10.1 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01496/1.271, allocations: 8.067 MB / 0.6476 GB, free: 3.336 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00501/1.276, allocations: 2.8 MB / 0.6503 GB, free: 0.5391 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003954/1.277, allocations: 110.9 kB / 0.6505 GB, free: 460 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.87e-05/1.277, allocations: 73.58 kB / 0.6505 GB, free: 376 kB / 494.1 MB Notification: Performance of pre-optimization done (n=384): time 6.232e-06/1.277, allocations: 0 / 0.6505 GB, free: 376 kB / 494.1 MB Notification: Performance of matching and sorting (n=392): time 0.03359/1.31, allocations: 14.76 MB / 0.6649 GB, free: 1.613 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.915e-05/1.311, allocations: 98.42 kB / 0.665 GB, free: 1.504 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00633/1.317, allocations: 3.611 MB / 0.6686 GB, free: 13.9 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0007397/1.318, allocations: 87.78 kB / 0.6686 GB, free: 13.81 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.003414/1.321, allocations: 4.198 MB / 0.6727 GB, free: 9.602 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.002184/1.323, allocations: 1.405 MB / 0.6741 GB, free: 8.215 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002263/1.325, allocations: 1.176 MB / 0.6753 GB, free: 7.027 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.0001208/1.326, allocations: 301.1 kB / 0.6755 GB, free: 6.73 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004456/1.33, allocations: 2.6 MB / 0.6781 GB, free: 4.125 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006863/1.337, allocations: 5.088 MB / 0.683 GB, free: 13.91 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01241/1.349, allocations: 8.349 MB / 0.6912 GB, free: 4.711 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.079e-05/1.349, allocations: 24 kB / 0.6912 GB, free: 4.688 MB / 0.5294 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01925/1.369, allocations: 8.653 MB / 0.6997 GB, free: 12.53 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.059e-05/1.369, allocations: 44 kB / 0.6997 GB, free: 12.48 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001624/1.369, allocations: 80 kB / 0.6998 GB, free: 12.41 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002547/1.371, allocations: 0.8539 MB / 0.7006 GB, free: 11.55 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005427/1.377, allocations: 1.372 MB / 0.702 GB, free: 10.28 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01278/1.39, allocations: 7.583 MB / 0.7094 GB, free: 2.629 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004987/1.395, allocations: 338 kB / 0.7097 GB, free: 2.301 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001432/1.396, allocations: 304 kB / 0.71 GB, free: 2.004 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 378 * 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 (722): * Single equations (assignments): 721 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,40,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008269/1.404, allocations: 3.515 MB / 0.7134 GB, free: 14.58 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001594/1.406, allocations: 425.3 kB / 0.7138 GB, free: 14.16 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01363/1.42, allocations: 5.964 MB / 0.7196 GB, free: 8.191 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.05e-05/1.42, allocations: 40 kB / 0.7197 GB, free: 8.152 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.498e-05/1.42, allocations: 8 kB / 0.7197 GB, free: 8.145 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.136e-05/1.42, allocations: 23.92 kB / 0.7197 GB, free: 8.121 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03404/1.454, allocations: 14.98 MB / 0.7343 GB, free: 9.219 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.096e-05/1.454, allocations: 4 kB / 0.7343 GB, free: 9.215 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003067/1.457, allocations: 0.6968 MB / 0.735 GB, free: 8.555 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002223/1.459, allocations: 0.7126 MB / 0.7357 GB, free: 7.844 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006243/1.46, allocations: 99.91 kB / 0.7358 GB, free: 7.746 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01017/1.47, allocations: 6.611 MB / 0.7423 GB, free: 1.051 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.161e-06/1.47, allocations: 4 kB / 0.7423 GB, free: 1.047 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01724/1.487, allocations: 8.772 MB / 0.7508 GB, free: 8.18 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003654/1.491, allocations: 0.8524 MB / 0.7517 GB, free: 7.324 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001768/1.493, allocations: 79.97 kB / 0.7518 GB, free: 7.246 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003168/1.496, allocations: 179.9 kB / 0.7519 GB, free: 7.07 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001086/1.497, allocations: 286.3 kB / 0.7522 GB, free: 6.793 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007829/1.498, allocations: 116 kB / 0.7523 GB, free: 6.68 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.006037/1.504, allocations: 2.416 MB / 0.7547 GB, free: 4.277 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.3e-07/1.504, allocations: 4 kB / 0.7547 GB, free: 4.273 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.008045/1.512, allocations: 1.551 MB / 0.7562 GB, free: 2.723 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 1 (smpmQS.phiMechanical) * 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 (377): * Single equations (assignments): 376 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,38,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.2975/1.809, allocations: 9.492 MB / 0.7655 GB, free: 225.4 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01225/1.821, allocations: 6.279 MB / 0.7716 GB, free: 223.1 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.171e-05/1.821, allocations: 3.938 kB / 0.7716 GB, free: 223.1 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.00573/1.827, allocations: 2.742 MB / 0.7743 GB, free: 222 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008015/1.835, allocations: 0.9648 MB / 0.7752 GB, free: 221.7 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08943/1.925, allocations: 52.7 MB / 0.8267 GB, free: 180.4 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009177/1.934, allocations: 5.975 MB / 0.8325 GB, free: 174.4 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.005264/1.939, allocations: 1.885 MB / 0.8344 GB, free: 172.5 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004608/1.944, allocations: 3.229 MB / 0.8375 GB, free: 169.2 MB / 0.5919 GB Notification: Performance of SimCode: time 1.433e-06/1.944, allocations: 0 / 0.8375 GB, free: 169.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.175/2.119, allocations: 126.3 MB / 0.9608 GB, free: 43.53 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.51/22.63, allocations: 7.875 kB / 0.9608 GB, free: 43.52 MB / 0.5919 GB " [Timeout remaining time 637] (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 25.343115728814155] Failed to read output from testmodel.py, exit status != 0: ['time', 'quadraticSpeedDependentTorqueQS.phi'] 22.78832503501326 22.813132359 21.821849486 Calling exit ...