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: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001436/0.001436, allocations: 117.6 kB / 17.78 MB, free: 5.238 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001822/0.001822, allocations: 203.9 kB / 18.73 MB, free: 4.297 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.319/1.319, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001105/0.001105, allocations: 63.88 kB / 358.7 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2308/0.232, allocations: 50.55 MB / 409.3 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening): time 0.0245/0.2565, allocations: 24.67 MB / 434 MB, free: 8.801 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01373/0.2703, allocations: 7.874 MB / 441.8 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003377/0.2737, allocations: 167.5 kB / 442 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01154/0.2852, allocations: 5.692 MB / 447.7 MB, free: 11.04 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007227/0.2925, allocations: 2.556 MB / 450.2 MB, free: 8.469 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004666/0.2972, allocations: 1.827 MB / 452.1 MB, free: 6.645 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009156/0.3063, allocations: 7.858 MB / 459.9 MB, free: 14.75 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01844/0.3248, allocations: 14.5 MB / 474.4 MB, free: 116 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004704/0.3295, allocations: 3.97 MB / 478.4 MB, free: 12.13 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005848/0.3354, allocations: 4.547 MB / 482.9 MB, free: 7.57 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001432/0.3368, allocations: 1.113 MB / 484.1 MB, free: 6.457 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002408/0.3392, allocations: 1.461 MB / 485.5 MB, free: 4.996 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00156/0.3408, allocations: 2.24 MB / 487.8 MB, free: 2.75 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003906/0.3447, allocations: 4.33 MB / 492.1 MB, free: 14.4 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0122/0.3569, allocations: 15.05 MB / 0.4952 GB, free: 15.31 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.3569, allocations: 0 / 0.4952 GB, free: 15.31 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.357, allocations: 0 / 0.4952 GB, free: 15.31 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002103/0.3572, allocations: 0 / 0.4952 GB, free: 15.31 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.02374/0.3809, allocations: 9.204 MB / 0.5042 GB, free: 6.02 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/0.381, allocations: 12.03 kB / 0.5042 GB, free: 6.008 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02915/0.4101, allocations: 5.322 MB / 0.5094 GB, free: 0.6719 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008814/0.419, allocations: 4.741 MB / 0.5141 GB, free: 11.87 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003263/0.4193, allocations: 0.5019 MB / 0.5146 GB, free: 11.37 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002266/0.4216, allocations: 0.6717 MB / 0.5152 GB, free: 10.7 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0273/0.4489, allocations: 11.16 MB / 0.5261 GB, free: 15.44 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002103/0.4492, allocations: 15.78 kB / 0.5261 GB, free: 15.43 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008793/0.4501, allocations: 284 kB / 0.5264 GB, free: 15.15 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003881/0.4505, allocations: 426.4 kB / 0.5268 GB, free: 14.73 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02172/0.4722, allocations: 10.72 MB / 0.5373 GB, free: 4 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2835/0.7557, allocations: 35.86 MB / 0.5723 GB, free: 95.78 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008323/0.764, allocations: 11.89 MB / 0.5839 GB, free: 85.44 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003116/0.7672, allocations: 2.851 MB / 0.5867 GB, free: 83.07 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002752/0.7675, allocations: 248.3 kB / 0.5869 GB, free: 82.8 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.668e-05/0.7675, allocations: 69.44 kB / 0.587 GB, free: 82.72 MB / 462.1 MB Notification: Performance of pre-optimization done (n=365): time 5.079e-06/0.7675, allocations: 0 / 0.587 GB, free: 82.72 MB / 462.1 MB Notification: Performance of matching and sorting (n=375): time 0.03165/0.7992, allocations: 15.83 MB / 0.6025 GB, free: 66.9 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.472e-05/0.7993, allocations: 145.7 kB / 0.6026 GB, free: 66.73 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003313/0.8026, allocations: 2.797 MB / 0.6053 GB, free: 63.92 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000213/0.8028, allocations: 85.7 kB / 0.6054 GB, free: 63.83 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001145/0.804, allocations: 2.88 MB / 0.6082 GB, free: 60.93 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006297/0.8046, allocations: 1.269 MB / 0.6095 GB, free: 59.67 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001038/0.8056, allocations: 0.8945 MB / 0.6103 GB, free: 58.77 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.599e-05/0.8057, allocations: 301.1 kB / 0.6106 GB, free: 58.47 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002787/0.8085, allocations: 2.318 MB / 0.6129 GB, free: 56.13 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003304/0.8118, allocations: 3.913 MB / 0.6167 GB, free: 51.48 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006613/0.8184, allocations: 6.711 MB / 0.6233 GB, free: 44.03 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.115e-05/0.8184, allocations: 16 kB / 0.6233 GB, free: 44.01 MB / 462.1 MB Notification: Performance of matching and sorting (n=611) (initialization): time 0.00906/0.8275, allocations: 7.088 MB / 0.6302 GB, free: 36.89 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.879e-05/0.8276, allocations: 24 kB / 0.6302 GB, free: 36.87 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.504e-05/0.8276, allocations: 52 kB / 0.6303 GB, free: 36.82 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003317/0.831, allocations: 1.229 MB / 0.6315 GB, free: 35.58 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003437/0.8344, allocations: 1.065 MB / 0.6325 GB, free: 34.52 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002699/0.8371, allocations: 2.369 MB / 0.6348 GB, free: 32.12 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002907/0.84, allocations: 287.5 kB / 0.6351 GB, free: 31.84 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002864/0.8403, allocations: 224 kB / 0.6353 GB, free: 31.62 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.005406/0.8458, allocations: 4.518 MB / 0.6397 GB, free: 27.09 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003259/0.849, allocations: 3.9 MB / 0.6435 GB, free: 22.45 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00638/0.8554, allocations: 6.691 MB / 0.6501 GB, free: 15.02 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.892e-05/0.8555, allocations: 16 kB / 0.6501 GB, free: 15.01 MB / 462.1 MB Notification: Performance of matching and sorting (n=611) (initialization_lambda0): time 0.00872/0.8642, allocations: 7.038 MB / 0.657 GB, free: 7.934 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.848e-05/0.8642, allocations: 28 kB / 0.657 GB, free: 7.906 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.895e-05/0.8643, allocations: 48.56 kB / 0.657 GB, free: 7.859 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003092/0.8674, allocations: 1.185 MB / 0.6582 GB, free: 6.676 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003237/0.8706, allocations: 1.072 MB / 0.6592 GB, free: 5.602 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002331/0.873, allocations: 2.285 MB / 0.6615 GB, free: 3.289 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00296/0.8759, allocations: 279.9 kB / 0.6617 GB, free: 3.016 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002869/0.8762, allocations: 228 kB / 0.6619 GB, free: 2.793 MB / 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.000889/0.8771, allocations: 0.4906 MB / 0.6624 GB, free: 2.293 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005313/0.8777, allocations: 359.9 kB / 0.6628 GB, free: 1.938 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009085/0.8868, allocations: 5.847 MB / 0.6685 GB, free: 12.05 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.901e-05/0.8868, allocations: 47.94 kB / 0.6685 GB, free: 12.01 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.367e-06/0.8868, allocations: 0 / 0.6685 GB, free: 12.01 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.158e-05/0.8869, allocations: 19.92 kB / 0.6685 GB, free: 11.99 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01915/0.906, allocations: 12.66 MB / 0.6809 GB, free: 15.3 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.006e-05/0.9061, allocations: 128 / 0.6809 GB, free: 15.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002688/0.9087, allocations: 0.667 MB / 0.6816 GB, free: 14.64 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003102/0.9119, allocations: 0.985 MB / 0.6825 GB, free: 13.65 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002155/0.9121, allocations: 75.98 kB / 0.6826 GB, free: 13.58 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002728/0.9148, allocations: 2.062 MB / 0.6846 GB, free: 11.49 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.9148, allocations: 0 / 0.6846 GB, free: 11.49 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01205/0.9269, allocations: 8.497 MB / 0.6929 GB, free: 2.918 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001567/0.9285, allocations: 0.8363 MB / 0.6937 GB, free: 2.059 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004388/0.9289, allocations: 64 kB / 0.6938 GB, free: 1.996 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001806/0.9307, allocations: 223.8 kB / 0.694 GB, free: 1.777 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004271/0.9312, allocations: 222.8 kB / 0.6942 GB, free: 1.559 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002087/0.9314, allocations: 108 kB / 0.6943 GB, free: 1.453 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002545/0.9339, allocations: 1.871 MB / 0.6961 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9339, allocations: 0 / 0.6961 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005237/0.9392, allocations: 2.089 MB / 0.6982 GB, free: 13.49 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.0004891/0.9397, allocations: 246 kB / 0.6984 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01497/0.9547, allocations: 9.188 MB / 0.7074 GB, free: 4.074 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.204e-06/0.9547, allocations: 0 / 0.7074 GB, free: 4.074 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.004434/0.9591, allocations: 2.634 MB / 0.71 GB, free: 1.445 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003629/0.9628, allocations: 0.8035 MB / 0.7107 GB, free: 0.6641 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02221/0.985, allocations: 12.39 MB / 0.7228 GB, free: 4.25 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004484/0.9895, allocations: 4.449 MB / 0.7272 GB, free: 15.77 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006186/0.9958, allocations: 2.287 MB / 0.7294 GB, free: 13.48 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009326/0.9967, allocations: 291.4 kB / 0.7297 GB, free: 13.19 MB / 0.5294 GB Notification: Performance of SimCode: time 3.727e-06/0.9967, allocations: 0 / 0.7297 GB, free: 13.19 MB / 0.5294 GB Notification: Performance of Templates: time 0.3286/1.325, allocations: 59.6 MB / 0.7879 GB, free: 153 MB / 0.5294 GB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.makefile (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 & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.pipe 2>&1)