Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_FieldWeakening,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_FieldWeakening",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_FieldWeakening",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001517/0.001517, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001509/0.001509, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.471/1.471, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001422/0.001422, allocations: 55.91 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3533/0.3548, allocations: 50.56 MB / 408.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening): time 0.02959/0.3844, allocations: 24.67 MB / 433.5 MB, free: 8.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01791/0.4024, allocations: 7.868 MB / 441.3 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006148/0.4086, allocations: 171.5 kB / 441.5 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01491/0.4236, allocations: 5.688 MB / 447.2 MB, free: 10.99 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01039/0.434, allocations: 2.553 MB / 449.7 MB, free: 8.426 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006597/0.4406, allocations: 1.838 MB / 451.6 MB, free: 6.59 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01274/0.4533, allocations: 7.851 MB / 459.4 MB, free: 14.71 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02709/0.4805, allocations: 14.5 MB / 473.9 MB, free: 64 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008171/0.4887, allocations: 3.97 MB / 477.9 MB, free: 12.08 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008671/0.4974, allocations: 4.551 MB / 482.5 MB, free: 7.516 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004451/0.5019, allocations: 1.109 MB / 483.6 MB, free: 6.406 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006245/0.5082, allocations: 1.457 MB / 485 MB, free: 4.949 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004309/0.5126, allocations: 2.24 MB / 487.3 MB, free: 2.703 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01011/0.5227, allocations: 4.334 MB / 491.6 MB, free: 14.35 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02098/0.5438, allocations: 15.06 MB / 0.4948 GB, free: 15.25 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.065e-06/0.5438, allocations: 0 / 0.4948 GB, free: 15.25 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.796e-06/0.5438, allocations: 0 / 0.4948 GB, free: 15.25 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005164/0.5444, allocations: 0 / 0.4948 GB, free: 15.25 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1903 * Number of variables: 1903 Notification: Performance of Generate backend data structure: time 0.03318/0.5775, allocations: 9.194 MB / 0.5038 GB, free: 5.969 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.275e-05/0.5776, allocations: 8.031 kB / 0.5038 GB, free: 5.961 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00471/0.5824, allocations: 0.9796 MB / 0.5047 GB, free: 4.969 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03/0.6124, allocations: 5.337 MB / 0.5099 GB, free: 15.62 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01066/0.6231, allocations: 4.738 MB / 0.5146 GB, free: 10.82 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000524/0.6237, allocations: 0.498 MB / 0.515 GB, free: 10.32 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003212/0.6269, allocations: 0.6717 MB / 0.5157 GB, free: 9.648 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.034/0.661, allocations: 11.16 MB / 0.5266 GB, free: 14.39 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005155/0.6615, allocations: 11.91 kB / 0.5266 GB, free: 14.38 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003494/0.6651, allocations: 284 kB / 0.5269 GB, free: 14.11 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005676/0.6657, allocations: 426.4 kB / 0.5273 GB, free: 13.69 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02809/0.6938, allocations: 10.73 MB / 0.5378 GB, free: 2.945 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3369/1.031, allocations: 35.85 MB / 0.5728 GB, free: 93.33 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01022/1.041, allocations: 11.9 MB / 0.5844 GB, free: 82.98 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004502/1.046, allocations: 2.853 MB / 0.5872 GB, free: 80.31 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005144/1.046, allocations: 251.8 kB / 0.5874 GB, free: 80.04 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.999e-05/1.046, allocations: 69.44 kB / 0.5875 GB, free: 79.96 MB / 462.1 MB Notification: Performance of pre-optimization done (n=365): time 8.566e-06/1.046, allocations: 0 / 0.5875 GB, free: 79.96 MB / 462.1 MB Notification: Performance of matching and sorting (n=375): time 0.03876/1.085, allocations: 15.82 MB / 0.6029 GB, free: 64.14 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.665e-05/1.085, allocations: 149.7 kB / 0.6031 GB, free: 63.97 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004946/1.09, allocations: 2.797 MB / 0.6058 GB, free: 61.16 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006937/1.091, allocations: 85.7 kB / 0.6059 GB, free: 61.07 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001573/1.092, allocations: 2.884 MB / 0.6087 GB, free: 58.16 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001316/1.094, allocations: 1.266 MB / 0.6099 GB, free: 56.91 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002327/1.096, allocations: 0.8944 MB / 0.6108 GB, free: 56 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.413e-05/1.096, allocations: 305.1 kB / 0.6111 GB, free: 55.7 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003723/1.1, allocations: 2.306 MB / 0.6134 GB, free: 53.37 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004652/1.105, allocations: 3.92 MB / 0.6172 GB, free: 48.71 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008792/1.113, allocations: 6.711 MB / 0.6237 GB, free: 41.26 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.706e-05/1.113, allocations: 16 kB / 0.6238 GB, free: 41.24 MB / 462.1 MB Notification: Performance of matching and sorting (n=611) (initialization): time 0.01475/1.128, allocations: 7.081 MB / 0.6307 GB, free: 34.13 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.412e-05/1.128, allocations: 36.09 kB / 0.6307 GB, free: 34.09 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001018/1.129, allocations: 52 kB / 0.6308 GB, free: 34.04 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003735/1.132, allocations: 1.233 MB / 0.632 GB, free: 32.81 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004072/1.136, allocations: 1.065 MB / 0.633 GB, free: 31.74 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003284/1.14, allocations: 2.359 MB / 0.6353 GB, free: 29.36 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00369/1.143, allocations: 287.5 kB / 0.6356 GB, free: 29.07 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009668/1.144, allocations: 236 kB / 0.6358 GB, free: 28.84 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.008188/1.153, allocations: 4.518 MB / 0.6402 GB, free: 24.31 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.004897/1.158, allocations: 3.896 MB / 0.644 GB, free: 19.68 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.008963/1.167, allocations: 6.687 MB / 0.6506 GB, free: 12.25 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.733e-05/1.167, allocations: 12 kB / 0.6506 GB, free: 12.24 MB / 462.1 MB Notification: Performance of matching and sorting (n=611) (initialization_lambda0): time 0.01355/1.18, allocations: 7.046 MB / 0.6574 GB, free: 5.16 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.129e-05/1.18, allocations: 28.16 kB / 0.6575 GB, free: 5.133 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.469e-05/1.181, allocations: 52 kB / 0.6575 GB, free: 5.082 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00356/1.184, allocations: 1.182 MB / 0.6587 GB, free: 3.898 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0041/1.188, allocations: 1.065 MB / 0.6597 GB, free: 2.832 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002869/1.191, allocations: 2.292 MB / 0.662 GB, free: 0.5117 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003896/1.195, allocations: 275.7 kB / 0.6622 GB, free: 248 kB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001028/1.196, allocations: 232 kB / 0.6624 GB, free: 16 kB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 232 * Number of states: 0 () * Number of discrete variables: 1 (fieldWeakeningController.PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (546): * Single equations (assignments): 545 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(11,55)} Notification: Performance of prepare postOptimizeDAE: time 0.001909/1.198, allocations: 486.6 kB / 0.6629 GB, free: 15.53 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001348/1.199, allocations: 353.7 kB / 0.6632 GB, free: 15.18 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01339/1.213, allocations: 5.855 MB / 0.669 GB, free: 9.293 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.59e-05/1.213, allocations: 43.94 kB / 0.669 GB, free: 9.25 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.606e-05/1.213, allocations: 3.938 kB / 0.669 GB, free: 9.246 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.588e-05/1.213, allocations: 23.92 kB / 0.669 GB, free: 9.223 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03016/1.243, allocations: 12.65 MB / 0.6814 GB, free: 12.54 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.432e-05/1.243, allocations: 0 / 0.6814 GB, free: 12.54 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003155/1.246, allocations: 0.6711 MB / 0.682 GB, free: 11.87 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003556/1.25, allocations: 0.9891 MB / 0.683 GB, free: 10.88 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007568/1.251, allocations: 79.97 kB / 0.6831 GB, free: 10.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00312/1.254, allocations: 2.046 MB / 0.6851 GB, free: 8.73 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.522e-06/1.254, allocations: 96 / 0.6851 GB, free: 8.73 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01638/1.27, allocations: 8.501 MB / 0.6934 GB, free: 160 kB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002567/1.273, allocations: 0.8363 MB / 0.6942 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001164/1.274, allocations: 64 kB / 0.6943 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002611/1.277, allocations: 211.8 kB / 0.6945 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007899/1.278, allocations: 234.8 kB / 0.6947 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004858/1.278, allocations: 104 kB / 0.6948 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003899/1.282, allocations: 1.871 MB / 0.6966 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.2e-07/1.282, allocations: 0 / 0.6966 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.009159/1.291, allocations: 2.092 MB / 0.6987 GB, free: 10.73 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (speedSource.phi,fieldWeakeningController.PID.I.y) * 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 (346): * Single equations (assignments): 345 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(9,50)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01684/1.308, allocations: 9.2 MB / 0.7076 GB, free: 1.465 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.02011/1.328, allocations: 9.193 MB / 0.7166 GB, free: 8.285 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.546e-05/1.328, allocations: 4 kB / 0.7166 GB, free: 8.281 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.005911/1.334, allocations: 2.628 MB / 0.7192 GB, free: 5.656 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005906/1.34, allocations: 0.8039 MB / 0.72 GB, free: 4.875 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3516/1.692, allocations: 42.6 MB / 0.7616 GB, free: 175.5 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005406/1.697, allocations: 4.446 MB / 0.7659 GB, free: 173.8 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006244/1.704, allocations: 2.282 MB / 0.7681 GB, free: 172.2 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003791/1.708, allocations: 2.424 MB / 0.7705 GB, free: 169.8 MB / 0.5294 GB Notification: Performance of SimCode: time 1.964e-06/1.708, allocations: 0 / 0.7705 GB, free: 169.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.152/1.86, allocations: 106.4 MB / 0.8744 GB, free: 63.98 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.25/21.11, allocations: 24.17 kB / 0.8744 GB, free: 63.96 MB / 0.5294 GB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_FieldWeakening_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_FieldWeakening.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.pipe 2>&1)