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.001478/0.001478, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001532/0.001532, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.321/1.321, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001139/0.001139, allocations: 56.25 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08134/0.0825, allocations: 50.53 MB / 358.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening): time 0.1664/0.2489, allocations: 24.69 MB / 383.6 MB, free: 8.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01415/0.2631, allocations: 7.868 MB / 391.5 MB, free: 3.125 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004893/0.268, allocations: 167.6 kB / 391.6 MB, free: 3.094 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01245/0.2805, allocations: 5.691 MB / 397.3 MB, free: 15.72 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009923/0.2905, allocations: 2.551 MB / 399.9 MB, free: 14.03 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005637/0.2961, allocations: 1.834 MB / 401.7 MB, free: 12.59 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01078/0.3069, allocations: 7.861 MB / 409.6 MB, free: 7.777 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01998/0.3269, allocations: 14.49 MB / 424.1 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006246/0.3332, allocations: 3.958 MB / 428 MB, free: 6.637 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007053/0.3403, allocations: 4.543 MB / 432.6 MB, free: 2.078 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002768/0.3431, allocations: 1.109 MB / 433.7 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004273/0.3474, allocations: 1.461 MB / 435.1 MB, free: 15.51 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002811/0.3502, allocations: 2.24 MB / 437.4 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00653/0.3568, allocations: 4.334 MB / 441.7 MB, free: 8.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01336/0.3701, allocations: 15.04 MB / 456.8 MB, free: 9.824 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.3702, allocations: 7.938 kB / 456.8 MB, free: 9.816 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3702, allocations: 0 / 456.8 MB, free: 9.816 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002114/0.3704, allocations: 0 / 456.8 MB, free: 9.816 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: 1903 * Number of variables: 1903 Notification: Performance of Generate backend data structure: time 0.0215/0.3919, allocations: 9.198 MB / 466 MB, free: 0.5312 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.937e-05/0.392, allocations: 12.03 kB / 466 MB, free: 0.5195 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02812/0.4201, allocations: 5.325 MB / 471.3 MB, free: 11.18 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01023/0.4303, allocations: 4.742 MB / 476 MB, free: 6.379 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003401/0.4307, allocations: 0.5058 MB / 476.5 MB, free: 5.871 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001425/0.4321, allocations: 0.6639 MB / 477.2 MB, free: 5.207 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01888/0.451, allocations: 11.16 MB / 488.4 MB, free: 9.961 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001472/0.4512, allocations: 11.91 kB / 488.4 MB, free: 9.949 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007173/0.4519, allocations: 284 kB / 488.7 MB, free: 9.672 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003775/0.4523, allocations: 434.4 kB / 489.1 MB, free: 9.246 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01797/0.4703, allocations: 10.72 MB / 499.8 MB, free: 14.51 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05249/0.5228, allocations: 35.86 MB / 0.5231 GB, free: 9.668 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1663/0.6891, allocations: 11.9 MB / 0.5347 GB, free: 130.7 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004695/0.6939, allocations: 2.847 MB / 0.5375 GB, free: 130.7 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003589/0.6943, allocations: 248.8 kB / 0.5377 GB, free: 130.5 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.021e-05/0.6943, allocations: 75.47 kB / 0.5378 GB, free: 130.4 MB / 446.1 MB Notification: Performance of pre-optimization done (n=365): time 5.109e-06/0.6943, allocations: 0 / 0.5378 GB, free: 130.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=375): time 0.03556/0.7299, allocations: 15.82 MB / 0.5533 GB, free: 125 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.676e-05/0.73, allocations: 144.8 kB / 0.5534 GB, free: 124.9 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003381/0.7334, allocations: 2.796 MB / 0.5561 GB, free: 123.8 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002272/0.7336, allocations: 88.42 kB / 0.5562 GB, free: 123.8 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00114/0.7348, allocations: 2.879 MB / 0.559 GB, free: 121.6 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007156/0.7355, allocations: 1.27 MB / 0.5603 GB, free: 120.6 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001134/0.7366, allocations: 0.8859 MB / 0.5611 GB, free: 120.2 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.755e-05/0.7367, allocations: 309.1 kB / 0.5614 GB, free: 119.9 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002957/0.7396, allocations: 2.314 MB / 0.5637 GB, free: 119 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003299/0.7429, allocations: 3.914 MB / 0.5675 GB, free: 116.1 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006434/0.7494, allocations: 6.712 MB / 0.5741 GB, free: 111.7 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.292e-05/0.7494, allocations: 19.56 kB / 0.5741 GB, free: 111.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=611) (initialization): time 0.009032/0.7585, allocations: 7.087 MB / 0.581 GB, free: 107.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.775e-05/0.7585, allocations: 26.19 kB / 0.581 GB, free: 107.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.385e-05/0.7586, allocations: 52 kB / 0.5811 GB, free: 107.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003297/0.7619, allocations: 1.23 MB / 0.5823 GB, free: 106.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003656/0.7655, allocations: 1.061 MB / 0.5833 GB, free: 105.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0027/0.7683, allocations: 2.365 MB / 0.5856 GB, free: 103.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00295/0.7712, allocations: 291.1 kB / 0.5859 GB, free: 103.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003347/0.7716, allocations: 228 kB / 0.5861 GB, free: 103 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.005567/0.7771, allocations: 4.518 MB / 0.5905 GB, free: 98.45 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003285/0.7804, allocations: 3.907 MB / 0.5944 GB, free: 93.8 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006306/0.7868, allocations: 6.679 MB / 0.6009 GB, free: 86.38 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.981e-05/0.7868, allocations: 12 kB / 0.6009 GB, free: 86.37 MB / 446.1 MB Notification: Performance of matching and sorting (n=611) (initialization_lambda0): time 0.008791/0.7956, allocations: 7.045 MB / 0.6078 GB, free: 79.29 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.979e-05/0.7956, allocations: 24 kB / 0.6078 GB, free: 79.27 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.768e-05/0.7957, allocations: 52 kB / 0.6078 GB, free: 79.21 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003032/0.7987, allocations: 1.182 MB / 0.609 GB, free: 78.03 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003437/0.8022, allocations: 1.072 MB / 0.61 GB, free: 76.96 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002364/0.8046, allocations: 2.288 MB / 0.6123 GB, free: 74.64 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002996/0.8076, allocations: 275.7 kB / 0.6125 GB, free: 74.38 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003323/0.8079, allocations: 231.8 kB / 0.6128 GB, free: 74.15 MB / 446.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.0008163/0.8087, allocations: 491.6 kB / 0.6132 GB, free: 73.66 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006448/0.8094, allocations: 355.7 kB / 0.6136 GB, free: 73.31 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008072/0.8175, allocations: 5.852 MB / 0.6193 GB, free: 67.45 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.119e-05/0.8175, allocations: 47.92 kB / 0.6193 GB, free: 67.4 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.747e-06/0.8175, allocations: 0 / 0.6193 GB, free: 67.4 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.789e-05/0.8176, allocations: 15.94 kB / 0.6193 GB, free: 67.38 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01703/0.8346, allocations: 12.66 MB / 0.6317 GB, free: 54.71 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.083e-05/0.8346, allocations: 0 / 0.6317 GB, free: 54.71 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002466/0.8371, allocations: 0.6678 MB / 0.6324 GB, free: 54.04 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002798/0.8399, allocations: 0.9857 MB / 0.6333 GB, free: 53.06 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002596/0.8402, allocations: 79.98 kB / 0.6334 GB, free: 52.98 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002174/0.8424, allocations: 2.054 MB / 0.6354 GB, free: 50.91 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.8424, allocations: 0 / 0.6354 GB, free: 50.91 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01024/0.8526, allocations: 8.496 MB / 0.6437 GB, free: 42.33 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002016/0.8547, allocations: 0.8363 MB / 0.6445 GB, free: 41.47 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004681/0.8552, allocations: 64 kB / 0.6446 GB, free: 41.41 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001742/0.8569, allocations: 215.8 kB / 0.6448 GB, free: 41.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003673/0.8573, allocations: 226.8 kB / 0.645 GB, free: 40.98 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002033/0.8575, allocations: 108 kB / 0.6451 GB, free: 40.87 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002209/0.8597, allocations: 1.871 MB / 0.6469 GB, free: 39 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.8597, allocations: 0 / 0.6469 GB, free: 39 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005202/0.8649, allocations: 2.086 MB / 0.649 GB, free: 36.91 MB / 446.1 MB 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.0004657/0.8654, allocations: 257 kB / 0.6492 GB, free: 36.66 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0128/0.8782, allocations: 9.188 MB / 0.6582 GB, free: 27.48 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.775e-06/0.8783, allocations: 5.938 kB / 0.6582 GB, free: 27.48 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003866/0.8821, allocations: 2.63 MB / 0.6608 GB, free: 24.86 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003304/0.8855, allocations: 0.7976 MB / 0.6615 GB, free: 24.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01751/0.903, allocations: 12.4 MB / 0.6737 GB, free: 11.67 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003252/0.9063, allocations: 4.443 MB / 0.678 GB, free: 7.199 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.005185/0.9115, allocations: 2.287 MB / 0.6802 GB, free: 4.902 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008403/0.9123, allocations: 287.4 kB / 0.6805 GB, free: 4.621 MB / 446.1 MB Notification: Performance of SimCode: time 9.32e-07/0.9124, allocations: 4 kB / 0.6805 GB, free: 4.617 MB / 446.1 MB Notification: Performance of Templates: time 0.2429/1.155, allocations: 57.74 MB / 0.7369 GB, free: 122.6 MB / 462.1 MB 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 -s gbode -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.pipe 2>&1)